1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/games/heretic/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

77 lines
1.8 KiB
Makefile

# New ports collection makefile for: glheretic
# Date created: 04 Feb 2000
# Whom: Will Andrews <andrews@technologist.com>
#
# $FreeBSD$
#
PORTNAME= heretic
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://heretic.linuxgames.com/heretic/src/:source \
http://heretic.linuxgames.com/wad/:wad
DISTNAME= gl${PORTNAME}-${PORTVERSION}
.if !defined(WITHOUT_WAD)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source heretic_share.wad.gz:wad
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= oliver@FreeBSD.org
COMMENT= Unix source-port of the famous Heretic game by id Software
USE_X_PREFIX= yes
USE_GMAKE= yes
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
ALL_TARGET= x11
BINARY= xheretic
.if defined(WITH_FASTX11)
ALL_TARGET= fastx11
BINARY= xaheretic
.endif
.if defined(WITH_SDL)
USE_SDL= yes
ALL_TARGET= sdl
BINARY= sdlheretic
CFLAGS+= `${SDL_CONFIG} --cflags`
.endif
.if defined(WITHOUT_WAD)
PLIST_SUB= WAD:="@comment "
.else
PLIST_SUB= WAD:=""
.endif
pre-everything::
@${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} ""
post-extract:
.if !defined(WITHOUT_WAD)
@${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/heretic_share.wad.gz \
> ${WRKSRC}/heretic_share.wad
.endif
@${FIND} ${WRKSRC} -name .depend -type f -delete
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/heretic
${INSTALL_PROGRAM} ${WRKSRC}/sndserver ${PREFIX}/bin/sndserver
.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>