aboutsummaryrefslogtreecommitdiffstats
path: root/games/gracer
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-09-25 21:48:35 +0800
committerTijl Coosemans <tijl@FreeBSD.org>2014-09-25 21:48:35 +0800
commita9e50aef8bc4335b811cc6e9de60fbe8c7f0985c (patch)
tree6352faab3dfe8be6bd5c7cd31ea67c1bb4cba09f /games/gracer
parent7d75c62abd12e6314312cab7ced76004e098f98b (diff)
downloadfreebsd-ports-gnome-a9e50aef8bc4335b811cc6e9de60fbe8c7f0985c.tar.gz
freebsd-ports-gnome-a9e50aef8bc4335b811cc6e9de60fbe8c7f0985c.tar.zst
freebsd-ports-gnome-a9e50aef8bc4335b811cc6e9de60fbe8c7f0985c.zip
- Patch configure instead of configure.in to avoid USE_AUTOTOOLS
- Specify the correct location of libplib
Diffstat (limited to 'games/gracer')
-rw-r--r--games/gracer/Makefile13
-rw-r--r--games/gracer/files/patch-configure.in33
2 files changed, 8 insertions, 38 deletions
diff --git a/games/gracer/Makefile b/games/gracer/Makefile
index 9c3b3913458b..35fd6c4ed751 100644
--- a/games/gracer/Makefile
+++ b/games/gracer/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gracer
PORTVERSION= 0.1.5
-PORTREVISION= 15
+PORTREVISION= 16
CATEGORIES= games
MASTER_SITES= SF
@@ -18,15 +18,18 @@ LIB_DEPENDS= libgif.so:${PORTSDIR}/graphics/giflib \
USE_GL= glut
USES= gmake perl5 tcl:84
USE_PERL5= build
-USE_AUTOTOOLS= autoconf213
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-plib=${LOCALBASE}
CPPFLAGS+= -I${LOCALBASE}/include \
-I${TCL_INCLUDEDIR}
LIBS+= -L${LOCALBASE}/lib
-# for plib (sound):
-CONFIGURE_ARGS+= --with-plib=${LOCALBASE}/plib
-pre-patch:
+post-patch:
@${REINPLACE_CMD} -i '' -e 's|<malloc.h>|<stdlib.h>|' \
${WRKSRC}/common/gr_memory.h
+ @${REINPLACE_CMD} \
+ -e 's|lib/tclConfig.sh|lib/tcl${TCL_VER}/tclConfig.sh|' \
+ -e '/SOUND_LIBS=/s/"$$/ -lplibul"/' \
+ ${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/games/gracer/files/patch-configure.in b/games/gracer/files/patch-configure.in
deleted file mode 100644
index 737df1ee57b2..000000000000
--- a/games/gracer/files/patch-configure.in
+++ /dev/null
@@ -1,33 +0,0 @@
---- configure.in.orig Wed Nov 24 04:33:25 1999
-+++ configure.in Mon Dec 27 18:07:12 1999
-@@ -237,7 +237,7 @@
- tcl_prefix=$with_tcl)
-
- for tcl_prefix in $tcl_prefix $exec_prefix /usr/local /usr NONE; do
-- if test -r $tcl_prefix/lib/tclConfig.sh; then
-+ if test -r $tcl_prefix/lib/tcl8.4/tclConfig.sh; then
- break;
- fi
- done
-@@ -246,18 +246,18 @@
- AC_MSG_ERROR([could't find tclConfig.sh])
- fi
-
--file=${tcl_prefix}/lib/tclConfig.sh
-+file=${tcl_prefix}/lib/tcl8.4/tclConfig.sh
- if test ! -r ${file}; then
- AC_MSG_ERROR(tclConfig.sh doesn't exist)
- fi
--AC_MSG_RESULT([use tclConfig.sh in $tcl_prefix/lib])
-+AC_MSG_RESULT([use tclConfig.sh in $tcl_prefix/lib/tcl8.4])
- . $file
-
- if test $TCL_MAJOR_VERSION -lt 8; then
- AC_MSG_ERROR([tcl version 8.0 or higher is required.])
- fi
-
--TCL_CFLAGS="-I$TCL_SRC_DIR"
-+TCL_CFLAGS="-I$tcl_prefix/include/tcl8.4"
- TCL_LDFLAGS="$TCL_LIB_SPEC"
- AC_SUBST(TCL_CFLAGS)
- AC_SUBST(TCL_LDFLAGS)