1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/games/heretic/Makefile

56 lines
1.2 KiB
Makefile

# New ports collection makefile for: glheretic
# Date created: 04 Feb 2000
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= heretic
PORTVERSION= 1.1
CATEGORIES= games
MASTER_SITES= http://heretic.linuxgames.com/heretic/src/ \
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
MAINTAINER= ports@FreeBSD.org
USE_X_PREFIX= yes
USE_GMAKE= yes
.if defined(WANT_FASTX11)
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_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>