2004-03-17 10:30:31 +01:00
|
|
|
# New ports collection makefile for: tenebrae
|
|
|
|
# Date created: 14 Mar 2004
|
|
|
|
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tenebrae
|
|
|
|
PORTVERSION= 1.04
|
2012-02-18 11:18:33 +01:00
|
|
|
PORTREVISION= 7
|
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
|
2004-03-17 10:30:31 +01:00
|
|
|
COMMENT= Quake 1 source port with advanced graphics
|
|
|
|
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
|
2004-03-17 10:30:31 +01:00
|
|
|
|
|
|
|
USE_ZIP= yes
|
2006-06-17 23:32:32 +02:00
|
|
|
USE_DOS2UNIX= yes
|
2004-03-17 10:30:31 +01:00
|
|
|
USE_GMAKE= yes
|
2008-03-27 14:15:53 +01:00
|
|
|
USE_XORG= xxf86dga
|
|
|
|
USE_GL= gl
|
2004-03-17 10:30:31 +01:00
|
|
|
USE_SDL= yes
|
|
|
|
|
2006-06-17 23:32:32 +02:00
|
|
|
OPTIONS= X86_ASM "Enable use of x86 assembly code" on
|
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
|
|
|
|
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2006-06-17 23:32:32 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2005-11-17 12:50:32 +01:00
|
|
|
|
2006-06-17 23:32:32 +02:00
|
|
|
.if !defined(WITHOUT_X86_ASM)
|
|
|
|
MAKE_ENV+= USE_ASM=1
|
|
|
|
.endif
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2010-03-30 13:22:14 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
|
|
|
|
${WRKSRC}/gl_warp.c
|
|
|
|
|
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} \
|
|
|
|
${PREFIX}/bin
|
|
|
|
@${MKDIR} ${Q1DIR}/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${Q1DIR}/${PORTNAME}
|
2004-03-17 10:30:31 +01:00
|
|
|
.ifndef (NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${TR} -d '\r' <${WRKDIR}/Tenebrae_Readme.txt \
|
|
|
|
>${DOCSDIR}/Tenebrae_Readme.txt
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2006-06-17 23:32:32 +02:00
|
|
|
@${ECHO_CMD}
|
2005-11-17 12:50:32 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-06-17 23:32:32 +02:00
|
|
|
@${ECHO_CMD}
|
|
|
|
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
2004-03-17 10:30:31 +01:00
|
|
|
|
2006-06-17 23:32:32 +02:00
|
|
|
.include <bsd.port.post.mk>
|