diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-03-16 13:33:12 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-03-16 13:33:12 +0000 |
commit | fbb29e3771833fd0a43672001a16a5eb4fdf653a (patch) | |
tree | fdfd3c91c337e4c1f8872972bcdb942827f94e6e /games/quake2-data | |
parent | bbd1d00f94ff5d55c3fa61dadae24bfdda7eb31d (diff) | |
download | freebsd-ports-fbb29e3771833fd0a43672001a16a5eb4fdf653a.zip |
- Trim Makefile header per new style guidelines
- Convert to contemporary OPTIONS framework
- Cleanup Makefiles, fix a typo, reword pkg-descr
- Add a hint where to look for data port logic description to quake3-data
port and terminate an URL with slash while here
Diffstat (limited to 'games/quake2-data')
-rw-r--r-- | games/quake2-data/Makefile | 44 | ||||
-rw-r--r-- | games/quake2-data/Makefile.include | 10 | ||||
-rw-r--r-- | games/quake2-data/files/Makefile | 5 | ||||
-rw-r--r-- | games/quake2-data/pkg-descr | 9 |
4 files changed, 32 insertions, 36 deletions
diff --git a/games/quake2-data/Makefile b/games/quake2-data/Makefile index 7edbe9224b4c..141bc50f7cb4 100644 --- a/games/quake2-data/Makefile +++ b/games/quake2-data/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: quake2-data -# Date created: 28 Sep 2005 -# Whom: Alejandro Pulver <alejandro@varnet.biz> -# +# Created by: Alejandro Pulver <alejandro@varnet.biz> # $FreeBSD$ -# PORTNAME= data PORTVERSION= 3.20 @@ -19,13 +15,15 @@ DISTFILES= ${Q2_UPDATE}:data \ MAINTAINER= danfe@FreeBSD.org COMMENT= Quake II data files -#XXX need info-unzip for q2-314-demo-x86.exe +# XXX we need info-unzip for q2-314-demo-x86.exe USE_ZIP= yes NO_WRKSUBDIR= yes -OPTIONS= MANUAL "Install game manual" off \ - OPTIMIZED_CFLAGS "Enable compilation optimizations" on \ - SHAREWARE "Install demo version of the game data" off +OPTIONS_DEFINE= MANUAL OPTIMIZED_CFLAGS SHAREWARE +OPTIONS_DEFAULT= OPTIMIZED_CFLAGS + +MANUAL_DESC= Install game HTML manual +SHAREWARE_DESC= Install demo version of the game data LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME} DATADIR= ${Q2DIR} @@ -36,24 +34,24 @@ Q2_SRC= q2src${PORTVERSION:S/.//}.shar.Z Q2_UPDATE= q2-${PORTVERSION}-x86-full.exe .include "Makefile.include" +.include <bsd.port.options.mk> -.include <bsd.port.pre.mk> - -.if defined(WITH_MANUAL) || defined(WITH_SHAREWARE) +.if ${PORT_OPTIONS:MMANUAL} || ${PORT_OPTIONS:MSHAREWARE} DISTFILES+= ${Q2_DEMO}:data .endif -.if defined(WITH_MANUAL) +.if ${PORT_OPTIONS:MMANUAL} PLIST_SUB+= MANUAL="" .else PLIST_SUB+= MANUAL="@comment " .endif -.if defined(WITH_OPTIMIZED_CFLAGS) -MAKE_ENV+= WITH_OPTIMIZED_CFLAGS=yes +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} +CFLAGS+= -ffast-math -funroll-loops -fomit-frame-pointer \ + -fexpensive-optimizations .endif -.if defined(WITH_SHAREWARE) +.if ${PORT_OPTIONS:MSHAREWARE} PLIST_SUB+= FULL="@comment " \ SHAREWARE="" .else @@ -69,11 +67,11 @@ do-extract: uncompress -c ${DISTDIR}/${Q2_SRC} | ${TAIL} +434 | ${SH} @${UNZIP_CMD} -q -d ${WRKDIR} \ ${DISTDIR}/${Q2_UPDATE} baseq2/* -x *.dll -.if defined(WITH_MANUAL) +.if ${PORT_OPTIONS:MMANUAL} @${UNZIP_CMD} -ajq -d ${WRKDIR}/DOCS \ ${DISTDIR}/${Q2_DEMO} Install/Data/DOCS/* .endif -.if defined(WITH_SHAREWARE) +.if ${PORT_OPTIONS:MSHAREWARE} @${RM} ${WRKDIR}/baseq2/pak[^0].pak @${UNZIP_CMD} -jq -d ${WRKDIR}/baseq2 \ ${DISTDIR}/${Q2_DEMO} Install/Data/baseq2/pak0.pak @@ -86,19 +84,19 @@ post-patch: @${REINPLACE_CMD} -e 's/__linux__/__unix__/' ${WRKSRC}/q_shared.[ch] do-install: - ${MKDIR} ${DATADIR}/baseq2 + @${MKDIR} ${DATADIR}/baseq2 ${INSTALL_PROGRAM} ${WRKSRC}/game.so ${DATADIR}/baseq2 ${CP} -R ${WRKSRC}/baseq2/* ${DATADIR}/baseq2 -.if defined(WITH_MANUAL) +.if ${PORT_OPTIONS:MMANUAL} @${MKDIR} ${DOCSDIR} - @${CP} -R ${WRKSRC}/DOCS ${DOCSDIR}/manual + ${CP} -R ${WRKSRC}/DOCS ${DOCSDIR}/manual .endif post-install: -.if !defined(WITH_SHAREWARE) +.if ! ${PORT_OPTIONS:MSHAREWARE} @${ECHO_CMD} @${CAT} ${PKGMESSAGE} @${ECHO_CMD} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/games/quake2-data/Makefile.include b/games/quake2-data/Makefile.include index 2a6b97096681..8d26f7957c94 100644 --- a/games/quake2-data/Makefile.include +++ b/games/quake2-data/Makefile.include @@ -18,7 +18,7 @@ # exist. # - If the engine needs to load additional data (renderers, pak files, etc.) # don't install it in ${Q2DIR}, use ${PREFIX}/lib/${PORTNAME} instead and -# add that directory to the search paths immediatly after ${Q2DIR}. +# add that directory to the search paths immediately after ${Q2DIR}. # - The reason to use "~/.${PORTNAME}" for writing is in the case the program # isn't compatible with the original engine (e.g. new console variables, # different saved game format, etc.). If just the configuration is @@ -44,18 +44,18 @@ # For examples see the existing ports. # -# Set variables. +# Set variables -Q2PKGNAMEPREFIX?=quake2- +Q2PKGNAMEPREFIX?= quake2- Q2DIR?= ${LOCALBASE}/share/quake2 -# Add them to the ports system. +# Add them to the ports system MAKE_ENV+= Q2DIR="${Q2DIR}" PLIST_SUB+= Q2DIR="${Q2DIR:S/${LOCALBASE}\///}" SUB_LIST+= Q2DIR="${Q2DIR}" -# Add the dependency. +# Add the dependency .if ${PORTNAME} != "data" RUN_DEPENDS+= ${Q2DIR}:${PORTSDIR}/games/quake2-data diff --git a/games/quake2-data/files/Makefile b/games/quake2-data/files/Makefile index a72cbadbc950..7d1bbe25ed21 100644 --- a/games/quake2-data/files/Makefile +++ b/games/quake2-data/files/Makefile @@ -53,11 +53,6 @@ SRCS= g_ai.c \ q_shared.c CFLAGS+= -Dstricmp=strcasecmp -.if defined(WITH_OPTIMIZED_CFLAGS) -CFLAGS+= -ffast-math -funroll-loops -fomit-frame-pointer \ - -fexpensive-optimizations -.endif - LDFLAGS+= -L/lib -L/usr/lib -lm .include <bsd.lib.mk> diff --git a/games/quake2-data/pkg-descr b/games/quake2-data/pkg-descr index c8876984219c..11d87043be26 100644 --- a/games/quake2-data/pkg-descr +++ b/games/quake2-data/pkg-descr @@ -1,6 +1,9 @@ +Quake II data files. + This port installs the data files needed to run Quake II: the updates for the -original game, or the demo (shareware) data if requested. In the first case -you need to have a legitimate copy of the game in order to obtain the pak0.pak -file. +original game, or the demo (shareware) data if requested. + +For a full game, you need to have a legitimate copy of the game in order to +obtain the pak0.pak file. WWW: http://www.idsoftware.com/games/quake/quake2/ |