aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2003-08-27 21:41:38 +0800
committermi <mi@FreeBSD.org>2003-08-27 21:41:38 +0800
commit114100d6421862d8f1a6e2664b0c3add5f4d6f06 (patch)
treeb1c176a11d995b94ed8b8596e9042b534a632ba1
parentf7fd896558140ae8752b4d733fea40a0d17c29f1 (diff)
downloadfreebsd-ports-gnome-114100d6421862d8f1a6e2664b0c3add5f4d6f06.tar.gz
freebsd-ports-gnome-114100d6421862d8f1a6e2664b0c3add5f4d6f06.tar.zst
freebsd-ports-gnome-114100d6421862d8f1a6e2664b0c3add5f4d6f06.zip
Respect CFLAGS, use sound (unless WITHOUT_SOUND is requested).
Bump PORTREVISION. Approved by: maintainer
-rw-r--r--games/lgeneral/Makefile7
-rw-r--r--games/lgeneral/files/patch-cflags9
2 files changed, 16 insertions, 0 deletions
diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile
index bb6628793b67..b85ca201d370 100644
--- a/games/lgeneral/Makefile
+++ b/games/lgeneral/Makefile
@@ -7,6 +7,7 @@
PORTNAME= lgeneral
PORTVERSION= 1.1.1
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lgeneral
@@ -19,6 +20,12 @@ LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+.ifndef (WITHOUT_SOUND)
+LIB_DEPENDS+= SDL_mixer:${PORTSDIR}/audio/sdl_mixer
+.else
+CONFIGURE_ARGS+=--disable-sound
+.endif
+
GNU_CONFIGURE= yes
.include <bsd.port.mk>
diff --git a/games/lgeneral/files/patch-cflags b/games/lgeneral/files/patch-cflags
new file mode 100644
index 000000000000..a2bc6f636f7d
--- /dev/null
+++ b/games/lgeneral/files/patch-cflags
@@ -0,0 +1,9 @@
+--- src/Makefile.in Thu Aug 15 04:40:49 2002
++++ src/Makefile.in Tue Aug 26 21:07:10 2003
+@@ -102,5 +102,5 @@
+ campaign.o strat_map.o ai.o engine.o ai_group.o
+ lgeneral_DEPENDENCIES =
+-CFLAGS = @CFLAGS@
++CFLAGS += @CFLAGS@
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ CCLD = $(CC)