mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
7620bfe714
PR: ports/94821 Submitted by: Igor Pokrovsky <ip@doom.homeunix.org> (maintainer) Approved by: lawrance (mentor)
72 lines
1.9 KiB
Makefile
72 lines
1.9 KiB
Makefile
# New ports collection makefile for: deng
|
|
# Date created: 25 Aug 2004
|
|
# Whom: Igor Pokrovsky <ip@doom.homeunix.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= deng
|
|
PORTVERSION= 1.9.0b3
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/b/-beta/}
|
|
|
|
MAINTAINER= ip@doom.homeunix.org
|
|
COMMENT= An enhanced Doom, Heretic and Hexen source port
|
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include"
|
|
USE_SDL= sdl mixer net
|
|
USE_GL= yes
|
|
INSTALLS_SHLIB= yes
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= "PREFIX=${PREFIX}" "DOCSDIR=${DOCSDIR}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${PORTSDIR}/games/doom-data/Makefile.include"
|
|
|
|
.if exists(${LOCALBASE}/lib/libopenal.so.0) || defined(WITH_OPENAL)
|
|
WITH_OPENAL= yes
|
|
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal
|
|
.endif
|
|
|
|
.if !defined(WITH_OPENAL)
|
|
PLIST_SUB= WITH_OPENAL="@comment "
|
|
.else
|
|
PLIST_SUB= WITH_OPENAL=""
|
|
.endif
|
|
|
|
.ifndef (WITH_OPENAL)
|
|
pre-everything::
|
|
@${ECHO_CMD} ""
|
|
@${ECHO_CMD} "Optionally define WITH_OPENAL=yes to build OpenAL sound plugin"
|
|
@${ECHO_CMD} ""
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E -i '' -e 's/-Wunused-.+ / /g; \
|
|
s/SDL(\\|\/)//g' ${WRKSRC}/configure
|
|
@${FIND} ${WRKSRC} -name '*.[ch]' | \
|
|
${XARGS} ${REINPLACE_CMD} -i '' -E -e 's/SDL(\\|\/)//g'
|
|
|
|
post-install:
|
|
.ifndef (NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR}
|
|
. for i in jDoom jHeretic jHexen
|
|
@${MKDIR} ${DOCSDIR}/${i}
|
|
${INSTALL_DATA} ${WRKSRC}/Doc/${i}/*.txt ${DOCSDIR}/${i}
|
|
. endfor
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|