aboutsummaryrefslogtreecommitdiffstats
path: root/games/heretic/Makefile
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2001-01-11 00:09:25 +0800
committerkevlo <kevlo@FreeBSD.org>2001-01-11 00:09:25 +0800
commitb7ab151fec02d37fc0c1c650b76c3bba44607419 (patch)
tree7847bb0d06e248486a58dc0a54a9b74cddea3ee2 /games/heretic/Makefile
parentd5fb7f586408e6f3aa0fc306e292c6574051b20b (diff)
downloadfreebsd-ports-gnome-b7ab151fec02d37fc0c1c650b76c3bba44607419.tar.gz
freebsd-ports-gnome-b7ab151fec02d37fc0c1c650b76c3bba44607419.tar.zst
freebsd-ports-gnome-b7ab151fec02d37fc0c1c650b76c3bba44607419.zip
Upgrade to 1.1
PR: 24201 Submitted by: Ports Fury
Diffstat (limited to 'games/heretic/Makefile')
-rw-r--r--games/heretic/Makefile43
1 files changed, 28 insertions, 15 deletions
diff --git a/games/heretic/Makefile b/games/heretic/Makefile
index d151544868c5..c4318996f1ed 100644
--- a/games/heretic/Makefile
+++ b/games/heretic/Makefile
@@ -6,12 +6,12 @@
#
PORTNAME= heretic
-PORTVERSION= 1.0
+PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://heretic.linuxgames.com/heretic/src/ \
- http://heretic.linuxgames.com/wad/
-DISTNAME= glheretic-1.0
-.if !defined(NO_WAD)
+ http://heretic.linuxgames.com/wad/
+DISTNAME= gl${PORTNAME}-${PORTVERSION}
+.if !defined(WITHOUT_WAD)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} heretic_share.wad.gz
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
@@ -21,23 +21,36 @@ MAINTAINER= ports@FreeBSD.org
FETCH_BEFORE_ARGS+= -b
USE_X_PREFIX= yes
USE_GMAKE= yes
-MAKE_ENV= WANT_OGL="no" WANT_OGL_FULLSCREEN="no" WANT_NICE_OGL="no"
-.if !defined(NO_WAD)
-PLIST= ${PKGDIR}/pkg-plist.nowad
-.endif
-ALL_TARGET= x11
-BINARY= xheretic
+
.if defined(WANT_FASTX11)
-BINARY= xaheretic
ALL_TARGET= fastx11
+BINARY= xaheretic
+.else
+ALL_TARGET= x11
+BINARY= xheretic
+.endif
+
+.if defined(WITHOUT_WAD)
+PLIST_SUB= WAD:="@comment "
+.else
+PLIST_SUB= WAD:=""
+.endif
+
+post-extract:
+.if !defined(WITHOUT_WAD)
+ @${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/heretic_share.wad.gz \
+ > ${WRKSRC}/heretic_share.wad
.endif
do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/heretic
+.if !defined(WITHOUT_WAD)
@${MKDIR} ${PREFIX}/share/heretic
- @${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/heretic
-.if !defined(NO_WAD)
- @${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/heretic_share.wad.gz \
- > ${PREFIX}/share/heretic/heretic_share.wad
+ ${INSTALL_DATA} ${WRKSRC}/heretic_share.wad ${PREFIX}/share/heretic
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/heretic
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/heretic
.endif
.include <bsd.port.mk>