1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Update to version 1.3.10

PR:		166030
Submitted by:	Ports Fury
Feature safe:	yes
This commit is contained in:
Martin Wilke 2012-03-24 16:25:23 +00:00
parent 1378a6713f
commit 5ae2a00299
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293750
6 changed files with 45 additions and 107 deletions

View File

@ -6,44 +6,65 @@
#
PORTNAME= scare
PORTVERSION= 1.3.7
PORTVERSION= 1.3.10
CATEGORIES= games
MASTER_SITES= ftp://ftp.ifarchive.org/if-archive/programming/adrift/
MASTER_SITES= http://ifarchive.flavorplex.com/%SUBDIR%/ \
http://ifarchive.heanet.ie/%SUBDIR%/ \
http://ifarchive.jmac.org/%SUBDIR%/ \
http://ifarchive.plover.net/%SUBDIR%/ \
http://ifarchive.wurb.com/%SUBDIR%/ \
http://www.ifarchive.org/%SUBDIR%/ \
ftp://ftp.ifarchive.org/%SUBDIR%/
MASTER_SITE_SUBDIR= if-archive/programming/adrift
MAINTAINER= ports@FreeBSD.org
COMMENT= ADRIFT-compatible interactive games interpreter
LICENSE= GPLv2
OPTIONS= XGLK "Use the xglk graphics library" off
USE_ZIP= yes
MAKE_JOBS_SAFE=yes
.include <bsd.port.pre.mk>
PLIST_FILES= bin/scare
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
BINFILES= scare
.include <bsd.port.options.mk>
.if defined(WITH_XGLK)
PKGNAMESUFFIX= -glk
BUILD_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
RUN_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
ALL_TARGET= all glkscare
EXTRA_PATCHES= ${FILESDIR}/xglk.patch
BINFILES+= glkscare
.else
EXTRA_PATCHES= ${FILESDIR}/no-xglk.patch
ALL_TARGET= scare glkscare
PLIST_FILES+= bin/glkscare
.endif
PLIST_FILES= ${BINFILES:S,^,bin/,}
post-patch:
@${REINPLACE_CMD} -e \
'/^CC/s|= |?= | ; \
/^CFLAGS/s|= -O2|+= | ; \
/^CFLAGS/s|-fPIC|| ; \
/^LDLIBS/s|=.*|= -lz| ; \
/-D__unix/s|^#|| ; \
s|^sinclude.*|.include "$$(GLKPATH)/Make.$$(GLK)"| ; \
s| $$(ZOBJECTS)||' ${WRKSRC}/source/Makefile
do-configure:
@${MKDIR} ${WRKDIR}/xglk
.if defined(WITH_XGLK)
@${LN} -sf ${LOCALBASE}/include/xglk/*.h ${WRKDIR}/xglk
@${LN} -sf ${LOCALBASE}/share/xglk/Make.xglk ${WRKDIR}/xglk
.else
@${TOUCH} ${WRKDIR}/xglk/Make.xglk
.endif
do-install:
${INSTALL_PROGRAM} ${BINFILES:S,^,${WRKSRC}/source/,} ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${PREFIX}/bin
.if defined(WITH_XGLK)
${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${PREFIX}/bin
.endif
test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (scare-1.3.7.zip) = bb4d2ff59304d6674f6e7909bd0e171cb69c151ed859c729f6888aa58a17d4e6
SIZE (scare-1.3.7.zip) = 1313534
SHA256 (scare-1.3.10.zip) = c11410e8474de23d5c8256fd5f303ecac8882e9c4a0e02ece2ea7fb21561a5be
SIZE (scare-1.3.10.zip) = 1338680

View File

@ -1,17 +0,0 @@
Properly disable the use of the xglk library if the port's XGLK option
has been turned off.
--- source/Makefile.orig
+++ source/Makefile
@@ -73,8 +73,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

View File

@ -1,46 +0,0 @@
Only set the Makefile variables conditionally so that they may be
overridden by the FreeBSD port.
--- source/Makefile.orig
+++ source/Makefile
@@ -26,18 +26,19 @@
#
# GCC compiler and linker flags.
-CC = gcc
-DEBUG =
-CEXTRA =
-CFLAGS = -O2 -D__NO_STRING_INLINES -fPIC -ansi -D_STRICT_ANSI_ -Wall -W \
+CC ?= gcc
+DEBUG ?=
+CEXTRA ?=
+CFLAGS ?= -O2 -D__NO_STRING_INLINES -fPIC -ansi -D_STRICT_ANSI_ -Wall -W \
-pedantic -Wshadow -Wpointer-arith -Wstrict-prototypes \
-Wmissing-prototypes -Wmissing-declarations -Wredundant-decls \
-Wwrite-strings -Wundef -Wbad-function-cast -Waggregate-return \
-Wnested-externs \
- $(DEBUG) $(CEXTRA)
-LDLIBS =
-LDEXTRA =
-LDFLAGS = $(DEBUG) $(LDEXTRA)
+ $(DEBUG)
+CFLAGS += $(CEXTRA)
+LDLIBS ?=
+LDEXTRA ?=
+LDFLAGS ?= $(DEBUG) $(LDEXTRA)
# Generic compiler and linker flags.
#CC = cc
@@ -79,9 +80,9 @@
SHELL = /bin/sh
# Miscellaneous tools, overridable by the command line.
-UNZIP = unzip
-RM = rm
-TEST = test
+UNZIP ?= unzip
+RM ?= rm
+TEST ?= test
# SCARE objects and headers.
OBJECTS = sctafpar.o sctaffil.o scprops.o scvars.o scexpr.o scprintf.o \

View File

@ -1,22 +0,0 @@
Properly enable the xglk build if the XGLK port option has been turned on.
--- source/Makefile.orig
+++ source/Makefile
@@ -73,7 +73,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 "$(LOCALBASE)/share/xglk/Make.$(GLK)"
GLKLIBS = -L$(GLKPATH) $(GLKLIB) $(LINKLIBS)
# Always use the Bourne shell.
@@ -134,7 +134,7 @@
os_glk.o: os_glk.c $(HEADERS)
$(CC) $(GLKARCH) $(CFLAGS) -Wno-write-strings \
- -I $(GLKDIR)/$(GLK) -c -o $@ $<
+ -DLINUX_GRAPHICS -I${LOCALBASE}/include/xglk -c -o $@ $<
# Option to build an IFP plugin version of SCARE.
scare_plugin.c: scare.hdr

View File

@ -1 +1,3 @@
An ADRIFT-compatible interactive games interpreter.
WWW: http://sites.google.com/site/scarehome/