diff options
author | bapt <bapt@FreeBSD.org> | 2013-02-21 04:26:52 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-02-21 04:26:52 +0800 |
commit | 36e57f597081c745c39592a38cf23cc996f5b726 (patch) | |
tree | 319976fec3a160d90b490b0571ee821b1a1c117c /games | |
parent | a8e0d4b726ba3b75a360a51d534badb080db0242 (diff) | |
download | freebsd-ports-graphics-36e57f597081c745c39592a38cf23cc996f5b726.tar.gz freebsd-ports-graphics-36e57f597081c745c39592a38cf23cc996f5b726.tar.zst freebsd-ports-graphics-36e57f597081c745c39592a38cf23cc996f5b726.zip |
Convert to new options framework
Diffstat (limited to 'games')
-rw-r--r-- | games/utserver/Makefile | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/games/utserver/Makefile b/games/utserver/Makefile index 390e530296e..8bf2b4a1ffa 100644 --- a/games/utserver/Makefile +++ b/games/utserver/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: Unreal Tournament Dedicated Server -# Date created: Thu Oct 4 23:38:00 CEST 2001 -# Whom: Martin Matuska <martin@tradex.sk> et al -# +# Created by: Martin Matuska <martin@tradex.sk> et al # $FreeBSD$ -# PORTNAME= utserver PORTVERSION= 451 @@ -20,7 +16,9 @@ EXTRACT_ONLY= ${MAINFILE} MAINTAINER= ports@FreeBSD.org COMMENT= Unreal Tournament Dedicated Server for Linux -OPTIONS= BONUSPACKS "install the official bonus packs collection" on +OPTIONS_DEFINE= BONUSPACKS +OPTIONS_DEFAULT= BONUSPACKS +BONUSPACKS_DESC= install the official bonus packs collection USE_LINUX= yes USE_LINUX_APPS= sdl12 @@ -37,9 +35,9 @@ MAINFILE= ut-server-436.tar.gz PATCH451FILE= UTPGPatch451.tar.bz2 EXTRA_PATCHES= ${WRKDIR}/patch-ngstatsut -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_BONUSPACKS) +.if ${PORT_OPTIONS:MBONUSPACKS} MASTER_SITES+= http://liflg.holarse.net/files/final/:pbonus BONUSFILE= unreal.tournament.official.bonus.pack.collection.run DISTFILES+= ${BONUSFILE}:pbonus @@ -63,7 +61,7 @@ pre-patch: -e "s!%%UTDIR%%!${PREFIX}/${UTDIR}!" \ ${FILESDIR}/template-patch-ngstatsut > \ ${WRKDIR}/patch-ngstatsut -.if !defined(WITHOUT_BONUSPACKS) +.if ${PORT_OPTIONS:MBONUSPACKS} @${SED} -e '1,/exit \$$res/d' ${_DISTDIR}/${BONUSFILE} | \ ${GUNZIP_CMD} -q | ${TAR} xf - -C ${WRKDIR} -X ${FILESDIR}/excludefiles .for file in bp1.tar.bz2 bp2.tar.bz2 bp3.tar.bz2 bp4.tar.bz2 @@ -89,4 +87,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |