mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- Trim the Makefile header
- 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
This commit is contained in:
parent
3ecf13ea49
commit
56f1a46f53
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314521
1 changed files with 15 additions and 18 deletions
|
@ -1,9 +1,5 @@
|
||||||
# New ports collection makefile for: tenebrae
|
# Created by: Igor Pokrovsky <tiamat@comset.net>
|
||||||
# Date created: 14 Mar 2004
|
|
||||||
# Whom: Igor Pokrovsky <tiamat@comset.net>
|
|
||||||
#
|
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
|
||||||
|
|
||||||
PORTNAME= tenebrae
|
PORTNAME= tenebrae
|
||||||
PORTVERSION= 1.04
|
PORTVERSION= 1.04
|
||||||
|
@ -14,35 +10,37 @@ DISTFILES= ${PORTNAME}_src${EXTRACT_SUFX} \
|
||||||
${PORTNAME}data${EXTRACT_SUFX}
|
${PORTNAME}data${EXTRACT_SUFX}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= Quake 1 source port with advanced graphics
|
COMMENT= Quake engine with lighting similar to that in Doom III
|
||||||
|
|
||||||
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
||||||
|
|
||||||
USE_ZIP= yes
|
USE_ZIP= yes
|
||||||
USE_DOS2UNIX= yes
|
USE_DOS2UNIX= yes
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
USE_XORG= xxf86dga
|
USE_GL= glu
|
||||||
USE_GL= gl
|
|
||||||
USE_SDL= yes
|
USE_SDL= yes
|
||||||
|
USE_XORG= xxf86dga
|
||||||
OPTIONS_DEFINE= X86_ASM DOCS
|
|
||||||
OPTIONS_DEFAULT= X86_ASM
|
|
||||||
X86_ASM_DESC= Enable use of x86 assembly code
|
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}_0
|
WRKSRC= ${WRKDIR}/${PORTNAME}_0
|
||||||
BUILD_WRKSRC= ${WRKSRC}/linux
|
BUILD_WRKSRC= ${WRKSRC}/linux
|
||||||
MAKEFILE= Makefile.i386linux
|
MAKEFILE= Makefile.i386linux
|
||||||
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
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>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MX86_ASM}
|
.if ${PORT_OPTIONS:MASM}
|
||||||
MAKE_ENV+= USE_ASM=1
|
MAKE_ENV+= USE_ASM=1
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
|
${REINPLACE_CMD} -e 's|gray_1_2_4_to_8|expand_&|' \
|
||||||
${WRKSRC}/gl_warp.c
|
${WRKSRC}/gl_warp.c
|
||||||
|
|
||||||
pre-build:
|
pre-build:
|
||||||
@cd ${BUILD_WRKSRC} && ${LN} -sf Makefile.i386linux Makefile
|
@cd ${BUILD_WRKSRC} && ${LN} -sf Makefile.i386linux Makefile
|
||||||
|
@ -54,8 +52,8 @@ do-install:
|
||||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${Q1DIR}/${PORTNAME}
|
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}/Pak0.pak ${Q1DIR}/${PORTNAME}
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
${TR} -d '\r' <${WRKDIR}/Tenebrae_Readme.txt \
|
${TR} -d '\r' < ${WRKDIR}/Tenebrae_Readme.txt \
|
||||||
>${DOCSDIR}/Tenebrae_Readme.txt
|
> ${DOCSDIR}/Tenebrae_Readme.txt
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
|
@ -64,5 +62,4 @@ post-install:
|
||||||
@${ECHO_CMD}
|
@${ECHO_CMD}
|
||||||
|
|
||||||
.include "${.CURDIR}/../quake-data/Makefile.include"
|
.include "${.CURDIR}/../quake-data/Makefile.include"
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue