From 992948dc5fb6e5ef051e6c57a69ca920acea7d2e Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Wed, 27 Aug 2003 13:41:38 +0000 Subject: Respect CFLAGS, use sound (unless WITHOUT_SOUND is requested). Bump PORTREVISION. Approved by: maintainer --- games/lgeneral/Makefile | 7 +++++++ games/lgeneral/files/patch-cflags | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 games/lgeneral/files/patch-cflags (limited to 'games/lgeneral') 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 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) -- cgit v1.2.3