aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-12 01:03:56 +0800
committerpawel <pawel@FreeBSD.org>2014-04-12 01:03:56 +0800
commitc735d21b25420822724e1fafe7e719c5fc9b3305 (patch)
treef32ed7a4b1392e36bd3bd9582c060b3f1a842148 /games
parentfee7336d139c540bd31b4ed5c5bbc387b144843a (diff)
downloadfreebsd-ports-gnome-c735d21b25420822724e1fafe7e719c5fc9b3305.tar.gz
freebsd-ports-gnome-c735d21b25420822724e1fafe7e719c5fc9b3305.tar.zst
freebsd-ports-gnome-c735d21b25420822724e1fafe7e719c5fc9b3305.zip
- Add staging support
- Convert to new LIB_DEPENDS format, USES=gmake - Use PORTDATA - Define DOCS option
Diffstat (limited to 'games')
-rw-r--r--games/ensemblist/Makefile35
1 files changed, 11 insertions, 24 deletions
diff --git a/games/ensemblist/Makefile b/games/ensemblist/Makefile
index 798c521e33e1..48ce07c65e4b 100644
--- a/games/ensemblist/Makefile
+++ b/games/ensemblist/Makefile
@@ -11,38 +11,25 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Assemble given shapes from primitives
-LIB_DEPENDS= mikmod.2:${PORTSDIR}/audio/libmikmod \
- png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS= libmikmod.so:${PORTSDIR}/audio/libmikmod \
+ libpng15.so:${PORTSDIR}/graphics/png
-USE_GMAKE= yes
+USES= gmake
USE_XORG= xmu
USE_GL= glut
MAKE_ARGS= CC="${CC}" DATADIR="${DATADIR}"
-PLIST= ${WRKDIR}/pkg-plist
-
-PLIST_FILES= bin/ensemblist
-PLIST_DIRS= %%DATADIR%%
-MAN6= ensemblist.6
+PLIST_FILES= bin/ensemblist man/man6/ensemblist.6.gz
+PORTDATA= *
PORTDOCS= *
-NO_STAGE= yes
-pre-install:
- @${RM} -f ${PLIST}
- @${FIND} ${WRKSRC}/datas -type f | ${SORT} \
- | ${SED} -e 's|^${WRKSRC}/datas|%%DATADIR%%|' >> ${PLIST}
+OPTIONS_DEFINE= DOCS
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/datas/* ${DATADIR}
-
-.ifndef (NOPORTDOCS)
- cd ${WRKSRC}/html && \
- ${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
- ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
-.endif
-
- ${INSTALL_MAN} ${WRKSRC}/ensemblist.6 ${MAN6PREFIX}/man/man6
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/datas/* ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ ${INSTALL_MAN} ${WRKSRC}/ensemblist.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
.include <bsd.port.mk>