freebsd-ports/games/heretic/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

78 lines
1.9 KiB
Makefile

# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$
PORTNAME= heretic
PORTVERSION= 1.2
PORTREVISION= 8
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_DEFINE= WAD
OPTIONS_SINGLE= SG1
OPTIONS_SINGLE_SG1= X11 FASTX11 SDL
FASTX11_DESC= Use FastX11
WAD_DESC= With shareware WAD
SG1_DESC= Graphics Selections
OPTIONS_DEFAULT= X11 WAD
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MX11}
ALL_TARGET= x11
BINARY= xheretic
.endif
.if ${PORT_OPTIONS:MFASTX11}
ALL_TARGET= fastx11
BINARY= xaheretic
.endif
.if ${PORT_OPTIONS:MSDL}
USE_SDL= yes
ALL_TARGET= sdl
BINARY= sdlheretic
CFLAGS+= `${SDL_CONFIG} --cflags`
.endif
.if ${PORT_OPTIONS:MWAD}
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 ${PORT_OPTIONS:MWAD}
@${GZIP_CMD} -dc ${_DISTDIR}/heretic_share.wad.gz \
> ${WRKSRC}/heretic_share.wad
.endif
@${FIND} ${WRKSRC} -name .depend -type f -delete
@${RM} ${WRKSRC}/i_ipx.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${PREFIX}/bin/heretic
${INSTALL_PROGRAM} ${WRKSRC}/sndserver ${PREFIX}/bin/sndserver
.if ${PORT_OPTIONS:MWAD}
@${MKDIR} ${PREFIX}/share/heretic
${INSTALL_DATA} ${WRKSRC}/heretic_share.wad ${PREFIX}/share/heretic
.endif
.if ${PORT_OPTIONS:MDOCS}
@${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.mk>