2013-03-18 03:45:32 +01:00
|
|
|
# Created by: Igor Pokrovsky <tiamat@comset.net>
|
2004-03-17 10:30:31 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tenebrae
|
|
|
|
PORTVERSION= 1.04
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 10
|
2004-03-17 10:30:31 +01:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= http://tenebrae.sourceforge.net/downloads/
|
|
|
|
DISTFILES= ${PORTNAME}_src${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}data${EXTRACT_SUFX}
|
|
|
|
|
2006-07-22 06:28:27 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-03-18 03:45:32 +01:00
|
|
|
COMMENT= Quake engine with lighting similar to that in Doom III
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2014-12-25 20:04:25 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= gmake dos2unix zip
|
2013-03-18 03:45:32 +01:00
|
|
|
USE_GL= glu
|
2004-03-17 10:30:31 +01:00
|
|
|
USE_SDL= yes
|
2013-03-18 03:45:32 +01:00
|
|
|
USE_XORG= xxf86dga
|
2005-12-12 10:25:24 +01:00
|
|
|
|
2004-03-17 10:30:31 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_0
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/linux
|
2006-06-17 23:32:32 +02:00
|
|
|
MAKEFILE= Makefile.i386linux
|
2015-03-26 00:00:50 +01:00
|
|
|
MAKE_ENV= PTHREAD_LIBS="-lpthread"
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2013-03-18 03:45:32 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
OPTIONS_DEFINE_amd64= ASM
|
|
|
|
OPTIONS_DEFAULT_amd64= ASM
|
|
|
|
|
2013-11-11 04:06:55 +01:00
|
|
|
ASM_MAKE_ENV= USE_ASM=1
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2010-03-30 13:22:14 +02:00
|
|
|
post-patch:
|
2013-03-18 03:45:32 +01:00
|
|
|
${REINPLACE_CMD} -e 's|gray_1_2_4_to_8|expand_&|' \
|
|
|
|
${WRKSRC}/gl_warp.c
|
2010-03-30 13:22:14 +02:00
|
|
|
|
2004-03-17 10:30:31 +01:00
|
|
|
pre-build:
|
2006-06-17 23:32:32 +02:00
|
|
|
@cd ${BUILD_WRKSRC} && ${LN} -sf Makefile.i386linux Makefile
|
2004-03-17 10:30:31 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-06-17 23:32:32 +02:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/bin/${PORTNAME} \
|
2013-11-11 04:06:55 +01:00
|
|
|
${STAGEDIR}${PREFIX}/bin
|
|
|
|
@${MKDIR} ${STAGEDIR}${Q1DIR}/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${STAGEDIR}${Q1DIR}/${PORTNAME}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-03-18 03:45:32 +01:00
|
|
|
${TR} -d '\r' < ${WRKDIR}/Tenebrae_Readme.txt \
|
2013-11-11 04:06:55 +01:00
|
|
|
> ${STAGEDIR}${DOCSDIR}/Tenebrae_Readme.txt
|
2006-06-17 23:32:32 +02:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
2012-06-12 18:35:45 +02:00
|
|
|
.include <bsd.port.mk>
|