diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2012-12-04 08:56:47 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2012-12-04 08:56:47 +0800 |
commit | 69678e0895fc74d20b863790ad0ed58fec05a1df (patch) | |
tree | b48ac027e7ba50eb25ef389d918a6878472448d6 /games | |
parent | 2ed490f79379ddbd29afcdae494377f1eec6736d (diff) | |
download | freebsd-ports-gnome-69678e0895fc74d20b863790ad0ed58fec05a1df.tar.gz freebsd-ports-gnome-69678e0895fc74d20b863790ad0ed58fec05a1df.tar.zst freebsd-ports-gnome-69678e0895fc74d20b863790ad0ed58fec05a1df.zip |
- OptionsNG
- Trim header
Feature safe: yes
Diffstat (limited to 'games')
-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> |