2000-03-22 03:32:41 +01:00
|
|
|
# New ports collection makefile for: glheretic
|
|
|
|
# Date created: 04 Feb 2000
|
|
|
|
# Whom: Will Andrews <andrews@technologist.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-14 08:53:26 +02:00
|
|
|
PORTNAME= heretic
|
2001-01-10 17:09:25 +01:00
|
|
|
PORTVERSION= 1.1
|
2002-08-30 06:55:45 +02:00
|
|
|
PORTREVISION= 1
|
2000-03-22 03:32:41 +01:00
|
|
|
CATEGORIES= games
|
2003-07-21 19:42:14 +02:00
|
|
|
MASTER_SITES= http://heretic.linuxgames.com/heretic/src/:source \
|
|
|
|
http://heretic.linuxgames.com/wad/:wad
|
2001-01-10 17:09:25 +01:00
|
|
|
DISTNAME= gl${PORTNAME}-${PORTVERSION}
|
|
|
|
.if !defined(WITHOUT_WAD)
|
2003-07-21 19:42:14 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source heretic_share.wad.gz:wad
|
2000-03-22 03:32:41 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
.endif
|
|
|
|
|
2003-07-21 19:42:14 +02:00
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= Unix source-port of the famous Heretic game by id Software
|
2000-03-22 03:32:41 +01:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
2002-01-14 08:13:33 +01:00
|
|
|
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
|
2001-01-10 17:09:25 +01:00
|
|
|
|
|
|
|
ALL_TARGET= x11
|
|
|
|
BINARY= xheretic
|
2002-01-14 08:13:33 +01:00
|
|
|
|
|
|
|
.if defined(WITH_FASTX11)
|
|
|
|
ALL_TARGET= fastx11
|
|
|
|
BINARY= xaheretic
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SDL)
|
|
|
|
ALL_TARGET= sdl
|
|
|
|
BINARY= sdlheretic
|
2002-04-17 19:58:38 +02:00
|
|
|
SDL_CONFIG= ${LOCALBASE}/bin/sdl11-config
|
2002-08-30 06:55:45 +02:00
|
|
|
LIB_DEPENDS= SDL-1.1:${PORTSDIR}/devel/sdl12
|
2002-04-17 19:58:38 +02:00
|
|
|
MAKE_ENV+= SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
CFLAGS+= `${SDL_CONFIG} --cflags`
|
2001-01-10 17:09:25 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_WAD)
|
|
|
|
PLIST_SUB= WAD:="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB= WAD:=""
|
|
|
|
.endif
|
|
|
|
|
2003-02-28 23:53:02 +01:00
|
|
|
pre-everything::
|
2002-01-14 08:13:33 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_FASTX11=yes Use FastX11 support"
|
|
|
|
@${ECHO} " WITH_SDL=yes Use SDL."
|
|
|
|
@${ECHO} " WITHOUT_WAD=yes Don't install the wad file."
|
|
|
|
@${ECHO} ""
|
|
|
|
|
2001-01-10 17:09:25 +01:00
|
|
|
post-extract:
|
|
|
|
.if !defined(WITHOUT_WAD)
|
|
|
|
@${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/heretic_share.wad.gz \
|
|
|
|
> ${WRKSRC}/heretic_share.wad
|
2000-04-03 06:42:36 +02:00
|
|
|
.endif
|
2000-03-22 03:32:41 +01:00
|
|
|
|
|
|
|
do-install:
|
2001-01-10 17:09:25 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/heretic
|
2002-01-14 08:13:33 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/sndserver ${PREFIX}/bin/sndserver
|
2001-01-10 17:09:25 +01:00
|
|
|
.if !defined(WITHOUT_WAD)
|
2000-03-22 03:32:41 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/heretic
|
2001-01-10 17:09:25 +01:00
|
|
|
${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
|
2000-03-22 03:32:41 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|