mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
56f1a46f53
- Rename X86_ASM to standard ASM and make it x86/x64 specific - Correct USE_GL setting, sort knobs, shorten very long line - Fix some whitespace in Makefile - Rephrase COMMENT while I am here
66 lines
1.4 KiB
Makefile
66 lines
1.4 KiB
Makefile
# Created by: Igor Pokrovsky <tiamat@comset.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tenebrae
|
|
PORTVERSION= 1.04
|
|
PORTREVISION= 8
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://tenebrae.sourceforge.net/downloads/
|
|
DISTFILES= ${PORTNAME}_src${EXTRACT_SUFX} \
|
|
${PORTNAME}data${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Quake engine with lighting similar to that in Doom III
|
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
|
|
|
USE_ZIP= yes
|
|
USE_DOS2UNIX= yes
|
|
USE_GMAKE= yes
|
|
USE_GL= glu
|
|
USE_SDL= yes
|
|
USE_XORG= xxf86dga
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_0
|
|
BUILD_WRKSRC= ${WRKSRC}/linux
|
|
MAKEFILE= Makefile.i386linux
|
|
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_DEFINE_i386= ASM
|
|
OPTIONS_DEFAULT_i386= ASM
|
|
OPTIONS_DEFINE_amd64= ASM
|
|
OPTIONS_DEFAULT_amd64= ASM
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MASM}
|
|
MAKE_ENV+= USE_ASM=1
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|gray_1_2_4_to_8|expand_&|' \
|
|
${WRKSRC}/gl_warp.c
|
|
|
|
pre-build:
|
|
@cd ${BUILD_WRKSRC} && ${LN} -sf Makefile.i386linux Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/release/bin/${PORTNAME} \
|
|
${PREFIX}/bin
|
|
@${MKDIR} ${Q1DIR}/${PORTNAME}
|
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${Q1DIR}/${PORTNAME}
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
${TR} -d '\r' < ${WRKDIR}/Tenebrae_Readme.txt \
|
|
> ${DOCSDIR}/Tenebrae_Readme.txt
|
|
.endif
|
|
|
|
post-install:
|
|
@${ECHO_CMD}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_CMD}
|
|
|
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
|
.include <bsd.port.mk>
|