mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
fbd0197639
- Update audio/sdl_mixer to 1.2.15 - Update graphics/sdl_image to 1.2.12 - Update graphics/sdl_ttf to 2.0.11 - Update graphics/sdl_gfx to 2.0.23 - Update net/sdl_net to 1.2.8 - Bump PORTREVISIONs on ports that depend on one or more packages due to ABI and shared library version changes - Update Mk/bsd.sdl.mk accordingly for the new shared library versions Tested by: exp-run by pav
82 lines
2.0 KiB
Makefile
82 lines
2.0 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= 7
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://heretic.linuxgames.com/heretic/src/:source \
|
|
http://heretic.linuxgames.com/wad/:wad
|
|
DISTNAME= gl${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
COMMENT= Unix source-port of the famous Heretic game by id Software
|
|
|
|
USE_XORG= x11 xi xpm xau
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
|
|
|
|
OPTIONS= X11 "Use X11" on \
|
|
FASTX11 "Use FastX11" off \
|
|
SDL "Use SDL" off \
|
|
WAD "With shareware WAD" on
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (defined(WITH_X11) && (defined(WITH_FASTX11) || defined(WITH_SDL))) || \
|
|
(defined(WITH_FASTX11) && (defined(WITH_X11) || defined(WITH_SDL)))
|
|
IGNORE= you must only define X11, xor FASTX11, xor SDL
|
|
.endif
|
|
|
|
.if defined(WITH_X11)
|
|
ALL_TARGET= x11
|
|
BINARY= xheretic
|
|
.endif
|
|
|
|
.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(WITH_WAD)
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source heretic_share.wad.gz:wad
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
PLIST_SUB= WAD:=""
|
|
.else
|
|
PLIST_SUB= WAD:="@comment "
|
|
.endif
|
|
|
|
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} ${DOCSDIR}
|
|
.for i in "End User License Heretic Source Code.txt" Gamekeys.txt README.txt AUTHORS SourceReadme.txt Changelog README.opengl
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|