diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2012-12-04 00:56:47 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2012-12-04 00:56:47 +0000 |
commit | 2051a17f0108defce166fd3ce8d80ab0a322b1a4 (patch) | |
tree | b48ac027e7ba50eb25ef389d918a6878472448d6 /games/formido | |
parent | c08e7c3eccfefb199617a989e996e81f9e1e5580 (diff) | |
download | ports-2051a17f0108defce166fd3ce8d80ab0a322b1a4.tar.gz ports-2051a17f0108defce166fd3ce8d80ab0a322b1a4.zip |
Notes
Diffstat (limited to 'games/formido')
-rw-r--r-- | games/formido/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/games/formido/Makefile b/games/formido/Makefile index f4c354044d09..6209e02e0079 100644 --- a/games/formido/Makefile +++ b/games/formido/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: formido -# Date created: 19 Nov 2005 -# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru> -# +# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru> # $FreeBSD$ -# PORTNAME= formido PORTVERSION= 1.0 @@ -25,11 +21,13 @@ CC= ${CXX} MAKE_ENV= DATDIR="${DATADIR}" HISCOREDIR="${HISCOREDIR}" \ LINKFLAGS="${CXXFLAGS}" DEFAULT_CONFIG_FILE="${DATADIR}/formido.cfg" -OPTIONS= MUSIC "Install music (6MB)" on +OPTIONS_DEFINE= MUSIC +OPTIONS_DEFAULT=MUSIC +MUSIC_DESC= Install music (6MB) -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.ifdef(WITH_MUSIC) +.if ${PORT_OPTIONS:MMUSIC} DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-music${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} PLIST_SUB+= MUSIC:="" @@ -46,7 +44,7 @@ do-install: ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/formido.cfg ${DATADIR} -.ifdef(WITH_MUSIC) +.if ${PORT_OPTIONS:MMUSIC} cd ${DATADIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${PORTNAME}-music${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS} ${CHOWN} root:wheel ${DATADIR}/*.ogg ${CHMOD} 644 ${DATADIR}/*.ogg @@ -54,11 +52,11 @@ do-install: ${CHGRP} games ${PREFIX}/bin/formido ${CHMOD} g+s ${PREFIX}/bin/formido -post-install: .if !exists(${HISCOREDIR}) +post-install: ${MKDIR} ${HISCOREDIR} ${CHGRP} games ${HISCOREDIR} ${CHMOD} g+w ${HISCOREDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |