- Changed quake-data/Makefile.include to be more similar to bsd.*.mk files,
also it doesn't override port's variables. - Change dependant ports. PR: ports/90145 Submitted by: maintainer
This commit is contained in:
parent
ca323aed94
commit
506e4ece92
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150963
@ -39,6 +39,8 @@ OPTIONS= GLX "Build GLX client" on \
|
||||
X86_ASM "Enable x86 assembly code" on \
|
||||
XMMS "Enable MP3 Player feature" off
|
||||
|
||||
DATADIR= ${Q1DIR}
|
||||
|
||||
.include "${.CURDIR}/../quake-data/Makefile.include"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
@ -9,6 +9,7 @@ PORTNAME= data
|
||||
PORTVERSION= 1.0.6
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www.libsdl.org/projects/quake/data/:qs
|
||||
PKGNAMEPREFIX= ${Q1PKGNAMEPREFIX}
|
||||
DISTNAME= quakesw-${PORTVERSION}
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:qs
|
||||
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
|
||||
@ -26,6 +27,8 @@ OPTIONS= FULL "Install full version" off \
|
||||
QUAKEWORLD "Install QuakeWorld data" on \
|
||||
QUAKEWORLD_SKINS "Install QuakeWorld skins" on
|
||||
|
||||
DATADIR= ${Q1DIR}
|
||||
|
||||
PROGFILE= qwsv-2.30-glibc-i386-unknown-linux2.0.tar.gz
|
||||
SKINFILES= skinbase.zip qw_skins.zip
|
||||
|
||||
|
@ -1,39 +1,18 @@
|
||||
# Makefile for defining variables used by other Quake related ports.
|
||||
|
||||
# Determine if the port is a Quake engine.
|
||||
# Set variables.
|
||||
|
||||
Q1ENGINES= quakeforge darkplaces fuhquake tenebrae
|
||||
Q1PKGNAMEPREFIX?=quake-
|
||||
Q1DIR?= ${LOCALBASE}/share/quake
|
||||
|
||||
.for f in ${Q1ENGINES}
|
||||
. if ${PORTNAME} == ${f}
|
||||
ENGINE= yes
|
||||
. endif
|
||||
.endfor
|
||||
# Add them to the environment.
|
||||
|
||||
# Package name prefix.
|
||||
MAKE_ENV+= Q1DIR="${Q1DIR}"
|
||||
PLIST_SUB+= Q1DIR="${Q1DIR:S/${LOCALBASE}\///}"
|
||||
SUB_LIST+= Q1DIR="${Q1DIR}"
|
||||
|
||||
Q1PKGNAMEPREFIX=quake-
|
||||
|
||||
.if !defined(ENGINE)
|
||||
PKGNAMEPREFIX?= ${Q1PKGNAMEPREFIX}
|
||||
.endif
|
||||
|
||||
# Dependency to "games/quake-data".
|
||||
# Add the dependency.
|
||||
|
||||
.if ${PORTNAME} != "data"
|
||||
RUN_DEPENDS+= ${Q1DIR}/id1/pak0.pak:${PORTSDIR}/games/quake-data
|
||||
.endif
|
||||
|
||||
# Installation directories.
|
||||
|
||||
Q1DIR= ${LOCALBASE}/share/quake
|
||||
|
||||
.if defined(ENGINE) || ${PORTNAME} == "data"
|
||||
DATADIR?= ${Q1DIR}
|
||||
.else
|
||||
DATADIR?= ${Q1DIR}/${PORTNAME}
|
||||
.endif
|
||||
|
||||
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
||||
|
||||
PLIST_SUB+= Q1DIR="${Q1DIR}"
|
||||
|
@ -9,6 +9,7 @@ PORTNAME= dpmod
|
||||
PORTVERSION= 20050818
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://offload1.icculus.org/twilight/darkplaces/files/
|
||||
PKGNAMEPREFIX= ${Q1PKGNAMEPREFIX}
|
||||
DISTNAME= darkplacesmod${PORTVERSION}
|
||||
|
||||
MAINTAINER= alejandro@varnet.biz
|
||||
@ -20,6 +21,8 @@ USE_ZIP= yes
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
DATDAIR= ${Q1DIR}/${PORTNAME}
|
||||
|
||||
post-extract:
|
||||
# Remove CVS directories
|
||||
@${FIND} ${WRKDIR} -type d -name CVS -print0 | \
|
||||
|
@ -9,6 +9,7 @@ PORTNAME= reaper
|
||||
PORTVERSION= 0.81
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://www.mindspring.com/~win32ch/
|
||||
PKGNAMEPREFIX= ${Q1PKGNAMEPREFIX}
|
||||
DISTNAME= reaprb81
|
||||
|
||||
MAINTAINER= alejandro@varnet.biz
|
||||
@ -19,6 +20,8 @@ USE_REINPLACE= yes
|
||||
NO_BUILD= yes
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
DATADIR= ${Q1DIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${DATADIR}
|
||||
.for f in Autoexec.cfg PROGS.DAT
|
||||
|
@ -26,6 +26,8 @@ USE_SDL= yes
|
||||
USE_REINPLACE= yes
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
DATADIR= ${Q1DIR}
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}_0
|
||||
BUILD_WRKSRC= ${WRKSRC}/linux
|
||||
MAKE_ENV= DATADIR="${DATADIR}" \
|
||||
|
Loading…
Reference in New Issue
Block a user