summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-01-28 17:50:17 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-01-28 17:50:17 +0000
commit7b71dc1d9c58cd1503dcf1c9542a4401012da971 (patch)
tree85ebbd6ef9d4d0832db20c714f8e14f5aefa4f5b /games
parent- Update to 3.40 (diff)
- Add OPTIONS for sound support
- Get rid of deprecated stuff PR: 164157 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=289968
Diffstat (limited to 'games')
-rw-r--r--games/xscorch/Makefile23
1 files changed, 7 insertions, 16 deletions
diff --git a/games/xscorch/Makefile b/games/xscorch/Makefile
index 36432f9ca879..baf853c50c8d 100644
--- a/games/xscorch/Makefile
+++ b/games/xscorch/Makefile
@@ -16,32 +16,23 @@ COMMENT= Multiplayer tank shoot-em-up
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= mikmod.2:${PORTSDIR}/audio/libmikmod
+OPTIONS= MIKMOD "Enable libmikmod support" on
-USE_XORG= xpm
USE_GNOME= gtk20
-WANT_GNOME= yes
USE_PERL5= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-gtk
MAKE_JOBS_SAFE= yes
MAN6= xscorch.6
-NO_MANCOMPRESS= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if ${HAVE_GNOME:Mgnomelibs}!=""
-USE_GNOME+= gnomeprefix gnomelibs
-PKGNAMESUFFIX= -gnome
+.if defined(WITHOUT_MIKMOD)
+CONFIGURE_ARGS+=--disable-sound
.else
-CONFIGURE_ARGS+= --without-gnome
+LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
+CONFIGURE_ARGS+=--with-libmikmod-prefix=${LOCALBASE}
.endif
-post-patch:
- @${REINPLACE_CMD} -e 's,MSG_NOSIGNAL,0,' \
- ${WRKSRC}/snet/tcpnet/tn_internal.c \
- ${WRKSRC}/snet/tcpnet/tn_read.c
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>