Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2013 20:15:41 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r312662 - head/games/linux-ssamtfe
Message-ID:  <201302202015.r1KKFftk013421@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@logvinov.com>
-#
+# Created by: Alexander Logvinov <ports@logvinov.com>
 # $FreeBSD$
-#
 
 PORTNAME=	ssamtfe
 PORTVERSION=	1.05b3
@@ -15,7 +11,8 @@ DISTFILES=	${PORTNAME:S|ssam|serious.sam
 MAINTAINER=	ports@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302202015.r1KKFftk013421>