mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
Add scare 1.3.3, an ADRIFT interactive adventure interpreter.
This commit is contained in:
parent
2b65b90e34
commit
a5a2a0c909
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128184
@ -411,6 +411,7 @@
|
||||
SUBDIR += rtcw-paks
|
||||
SUBDIR += rubix
|
||||
SUBDIR += sarien
|
||||
SUBDIR += scare
|
||||
SUBDIR += scid
|
||||
SUBDIR += scorched3d-devel
|
||||
SUBDIR += scummvm
|
||||
|
41
games/scare/Makefile
Normal file
41
games/scare/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# New ports collection makefile for: scare
|
||||
# Date created: 6 February 2005
|
||||
# Whom: Peter Pentchev <roam@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= scare
|
||||
PORTVERSION= 1.3.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ftp://ftp.ifarchive.org/if-archive/programming/adrift/ \
|
||||
http://www.geocities.com/legion_if/
|
||||
|
||||
MAINTAINER= roam@FreeBSD.org
|
||||
COMMENT= ADRIFT-compatible interactive games interpreter
|
||||
|
||||
USE_ZIP= yes
|
||||
|
||||
BINFILES= scare
|
||||
|
||||
.if defined(WITH_XGLK)
|
||||
PKGNAMESUFFIX= -glk
|
||||
|
||||
BUILD_DEPENDS= ${X11BASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
|
||||
ALL_TARGET= all glkscare
|
||||
|
||||
EXTRA_PATCHES= ${FILESDIR}/xglk.patch
|
||||
|
||||
BINFILES+= glkscare
|
||||
.else
|
||||
EXTRA_PATCHES= ${FILESDIR}/no-xglk.patch
|
||||
.endif
|
||||
|
||||
PLIST_FILES= ${BINFILES:S,^,bin/,}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${BINFILES:S,^,${WRKSRC}/,} ${PREFIX}/bin/
|
||||
|
||||
.include <bsd.port.mk>
|
2
games/scare/distinfo
Normal file
2
games/scare/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (scare-1.3.3.zip) = 432b809d4ecd217e2dbfd43c09703d15
|
||||
SIZE (scare-1.3.3.zip) = 629739
|
14
games/scare/files/no-xglk.patch
Normal file
14
games/scare/files/no-xglk.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- Makefile Fri Feb 4 22:09:46 2005
|
||||
+++ Makefile.noglk Fri Feb 4 22:09:33 2005
|
||||
@@ -68,8 +68,9 @@
|
||||
# If your make can't handle sinclude or -include, and you're not building
|
||||
# for Glk, comment out the include line.
|
||||
GLKPATH = $(GLKDIR)/$(GLK)
|
||||
-sinclude $(GLKPATH)/Make.$(GLK)
|
||||
-GLKLIBS = -L$(GLKPATH) $(GLKLIB) $(LINKLIBS)
|
||||
+#sinclude $(GLKPATH)/Make.$(GLK)
|
||||
+#GLKLIBS = -L$(GLKPATH) $(GLKLIB) $(LINKLIBS)
|
||||
+GLKLIBS =
|
||||
|
||||
# Always use the Bourne shell.
|
||||
SHELL = /bin/sh
|
47
games/scare/files/patch-Makefile
Normal file
47
games/scare/files/patch-Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
--- Makefile.orig Sun Feb 6 21:18:36 2005
|
||||
+++ Makefile Sun Feb 6 21:22:41 2005
|
||||
@@ -26,16 +26,17 @@
|
||||
#
|
||||
|
||||
# GCC compiler and linker flags.
|
||||
-CC = gcc
|
||||
-DEBUG =
|
||||
-CEXTRA =
|
||||
-CFLAGS = -O3 -D__NO_STRING_INLINES -fPIC -ansi -D_STRICT_ANSI_ -Wall -W \
|
||||
+CC ?= gcc
|
||||
+DEBUG ?=
|
||||
+CEXTRA ?=
|
||||
+CFLAGS ?= -O3 -D__NO_STRING_INLINES -fPIC -ansi -D_STRICT_ANSI_ -Wall -W \
|
||||
-pedantic -Wshadow -Wpointer-arith -Wstrict-prototypes \
|
||||
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
|
||||
- $(DEBUG) $(CEXTRA)
|
||||
-LDLIBS =
|
||||
-LDEXTRA =
|
||||
-LDFLAGS = $(DEBUG) $(LDEXTRA)
|
||||
+ $(DEBUG)
|
||||
+CFLAGS+= ${CEXTRA}
|
||||
+LDLIBS ?=
|
||||
+LDEXTRA ?=
|
||||
+LDFLAGS ?= $(DEBUG) $(LDEXTRA)
|
||||
|
||||
# Generic compiler and linker flags.
|
||||
#CC = cc
|
||||
@@ -77,12 +78,12 @@
|
||||
SHELL = /bin/sh
|
||||
|
||||
# Miscellaneous tools, overridable by the command line.
|
||||
-ZIP = zip
|
||||
-UNZIP = unzip
|
||||
-RM = rm
|
||||
-LN = ln
|
||||
-TAR = tar
|
||||
-TEST = test
|
||||
+ZIP ?= zip
|
||||
+UNZIP ?= unzip
|
||||
+RM ?= rm
|
||||
+LN ?= ln
|
||||
+TAR ?= tar
|
||||
+TEST ?= test
|
||||
|
||||
# SCARE objects and headers.
|
||||
OBJECTS = sctafpar.o sctaffil.o scprops.o scvars.o scexpr.o scprintf.o \
|
40
games/scare/files/patch-os_glk.c
Normal file
40
games/scare/files/patch-os_glk.c
Normal file
@ -0,0 +1,40 @@
|
||||
--- os_glk.c.orig Sat Feb 5 19:58:33 2005
|
||||
+++ os_glk.c Sat Feb 5 20:17:22 2005
|
||||
@@ -899,6 +899,8 @@
|
||||
&& glk_gestalt (gestalt_Graphics, 0))
|
||||
{
|
||||
sc_char *buffer;
|
||||
+ char fname[80];
|
||||
+ int fd;
|
||||
|
||||
/*
|
||||
* Try to extract data with dd. Assuming that works, back-
|
||||
@@ -906,15 +908,23 @@
|
||||
* delay ten seconds and then delete the temporary file
|
||||
* containing the image. Not exactly finessed.
|
||||
*/
|
||||
+ strcpy(fname, "/tmp/scare-XXXXXX.jpg");
|
||||
+ fd = mkstemps(fname, 4);
|
||||
+ if (fd < 0)
|
||||
+ return;
|
||||
+ close(fd);
|
||||
assert (gsclinux_game_file != NULL);
|
||||
buffer = gsc_malloc (strlen (gsclinux_game_file) + 128);
|
||||
- sprintf (buffer, "dd if=%s ibs=1c skip=%ld count=%ld obs=100k"
|
||||
- " of=/tmp/scare.jpg 2>/dev/null",
|
||||
- gsclinux_game_file, offset, length);
|
||||
+ sprintf (buffer, "dd if=%s ibs=1 skip=%ld count=%ld obs=100k"
|
||||
+ " of=%s 2>/dev/null",
|
||||
+ gsclinux_game_file, offset, length,
|
||||
+ fname);
|
||||
+ system (buffer);
|
||||
+ sprintf (buffer, "xv %s >/dev/null 2>&1 &", fname);
|
||||
+ system (buffer);
|
||||
+ sprintf (buffer, "( sleep 10; rm %s ) >/dev/null 2>&1 &", fname);
|
||||
system (buffer);
|
||||
free (buffer);
|
||||
- system ("xv /tmp/scare.jpg >/dev/null 2>&1 &");
|
||||
- system ("( sleep 10; rm /tmp/scare.jpg ) >/dev/null 2>&1 &");
|
||||
}
|
||||
}
|
||||
#else
|
20
games/scare/files/xglk.patch
Normal file
20
games/scare/files/xglk.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- Makefile.orig Fri Apr 30 08:05:12 2004
|
||||
+++ Makefile Fri Feb 4 22:18:07 2005
|
||||
@@ -68,7 +68,7 @@
|
||||
# If your make can't handle sinclude or -include, and you're not building
|
||||
# for Glk, comment out the include line.
|
||||
GLKPATH = $(GLKDIR)/$(GLK)
|
||||
-sinclude $(GLKPATH)/Make.$(GLK)
|
||||
+.include "$(X11BASE)/share/xglk/Make.$(GLK)"
|
||||
GLKLIBS = -L$(GLKPATH) $(GLKLIB) $(LINKLIBS)
|
||||
|
||||
# Always use the Bourne shell.
|
||||
@@ -121,7 +121,7 @@
|
||||
$(LDLIBS) $(GLKLIBS)
|
||||
|
||||
os_glk.o: os_glk.c $(HEADERS)
|
||||
- $(CC) $(GLKARCH) $(CFLAGS) -c -o $@ $<
|
||||
+ $(CC) $(GLKARCH) $(CFLAGS) -DLINUX_GRAPHICS -I${X11BASE}/include/xglk -c -o $@ $<
|
||||
|
||||
# Option to build an IFP plugin version of SCARE.
|
||||
scare_plugin.c: scare.hdr
|
3
games/scare/pkg-descr
Normal file
3
games/scare/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
An ADRIFT-compatible interactive games interpreter.
|
||||
|
||||
WWW: http://www.geocities.com/legion_if/scare.html
|
Loading…
Reference in New Issue
Block a user