diff options
author | bapt <bapt@FreeBSD.org> | 2013-02-21 04:17:46 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-02-21 04:17:46 +0800 |
commit | 6ce2c952cfb04d2459c230402715257188bb84b9 (patch) | |
tree | be5ff368965b6bb2fa054fe98ce05ec45d03a879 /games | |
parent | d4b2998d3b56c036e65df10a13597f9826a8b841 (diff) | |
download | freebsd-ports-gnome-6ce2c952cfb04d2459c230402715257188bb84b9.tar.gz freebsd-ports-gnome-6ce2c952cfb04d2459c230402715257188bb84b9.tar.zst freebsd-ports-gnome-6ce2c952cfb04d2459c230402715257188bb84b9.zip |
Convert to new options framework
Diffstat (limited to 'games')
-rw-r--r-- | games/linux-ssamtse/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/games/linux-ssamtse/Makefile b/games/linux-ssamtse/Makefile index 5374147ed8bc..bda13aad1a48 100644 --- a/games/linux-ssamtse/Makefile +++ b/games/linux-ssamtse/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: ssamtse -# Date created: 25 November 2003 -# Whom: Sergey Akifyev -# +# Created by: Sergey Akifyev # $FreeBSD$ -# PORTNAME= ssamtse PORTVERSION= 1.07b1 @@ -15,7 +11,8 @@ DISTFILES= ${PORTNAME:S|ssam|serious.sam.|}_${PORTVERSION:S|b|beta|}-english-2.r MAINTAINER= ports@FreeBSD.org COMMENT= Serious Sam: The Second Encounter for Linux -OPTIONS= VORBIS "Ogg playing support" on +OPTIONS_DEFINE= VORBIS DOCS +OPTIONS_DEFAULT= VORBIS USE_LINUX= yes USE_LINUX_APPS= xorglibs @@ -25,9 +22,9 @@ RESTRICTED= Redistribution is limited, see license PORTDOCS= README.liflg ShellSymbols.txt changes.txt Notes_1_04.txt SUB_FILES= pkg-message -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_VORBIS) +.if ${PORT_OPTIONS:MVORBIS} USE_LINUX_APPS+=libvorbis PLIST_SUB+= VORBIS="" .else @@ -90,7 +87,7 @@ do-install: ${BRANDELF} -t Linux ${DATADIR}/Bin/ssam_* ${INSTALL_DATA} ${WRKSRC}/ModExt.txt ${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin -.if defined(WITH_VORBIS) +.if ${PORT_OPTIONS:MVORBIS} ${LN} -fs ${LINUXBASE}/usr/lib/libvorbisfile.so.3 ${DATADIR}/Bin/libvorbisfile.so .endif @${FIND} -E ${DATADIR} -type f \ @@ -102,7 +99,7 @@ do-install: .if !exists(${PREFIX}/etc/${PORTNAME}.conf) ${INSTALL_DATA} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} -p ${WRKSRC}/README.liflg ${DOCSDIR} .for i in ${PORTDOCS:NREADME.liflg} @@ -113,4 +110,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |