svn commit: r312662 - head/games/linux-ssamtfe
Baptiste Daroussin
bapt at FreeBSD.org
Wed Feb 20 20:15:41 UTC 2013
Author: bapt
Date: Wed Feb 20 20:15:40 2013
New Revision: 312662
URL: http://svnweb.freebsd.org/changeset/ports/312662
Log:
Convert to new options framework
Modified:
head/games/linux-ssamtfe/Makefile
Modified: head/games/linux-ssamtfe/Makefile
==============================================================================
--- head/games/linux-ssamtfe/Makefile Wed Feb 20 20:14:49 2013 (r312661)
+++ head/games/linux-ssamtfe/Makefile Wed Feb 20 20:15:40 2013 (r312662)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: linux-ssamtfe
-# Date created: 18 May 2008
-# Whom: Alexander Logvinov <ports at logvinov.com>
-#
+# Created by: Alexander Logvinov <ports at logvinov.com>
# $FreeBSD$
-#
PORTNAME= ssamtfe
PORTVERSION= 1.05b3
@@ -15,7 +11,8 @@ DISTFILES= ${PORTNAME:S|ssam|serious.sam
MAINTAINER= ports at FreeBSD.org
COMMENT= Serious Sam: The First Encounter
-OPTIONS= VORBIS "Ogg playing support" on
+OPTIONS_DEFINE= VORBIS DOCS
+OPTIONS_DEFAULT= VORBIS
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
@@ -26,9 +23,9 @@ RESTRICTED= Redistribution is limited, s
PORTDOCS= README.liflg ShellSymbols.txt changes.txt notes.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
@@ -98,7 +95,7 @@ do-install:
${INSTALL_PROGRAM} "${WRKSRC}/Data/{}" "${DATADIR}/{}" \;
${BRANDELF} -t Linux ${DATADIR}/Bin/ssam_*
${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 \
@@ -109,7 +106,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}
@@ -120,4 +117,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list