diff options
author | Beat Gaetzi <beat@FreeBSD.org> | 2011-04-07 05:13:40 +0000 |
---|---|---|
committer | Beat Gaetzi <beat@FreeBSD.org> | 2011-04-07 05:13:40 +0000 |
commit | 6f46e9afc4db030bb80af2c37eb757747e62294f (patch) | |
tree | 98e847dd06a691f27aaebcb4b3f077fb078079e6 /games/megaglest-data/Makefile | |
parent | 96e674f6f268dbf95193f0b67784822770a19239 (diff) |
Notes
Diffstat (limited to 'games/megaglest-data/Makefile')
-rw-r--r-- | games/megaglest-data/Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/games/megaglest-data/Makefile b/games/megaglest-data/Makefile new file mode 100644 index 000000000000..788b8e144bbb --- /dev/null +++ b/games/megaglest-data/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: megaglest-data +# Date created: 2010-11-12 +# Whom: Sven Moeller <smoeller@nichthelfer.de> +# +# $FreeBSD$ +# + +PORTNAME= megaglest +PORTVERSION= 3.4.0 +CATEGORIES= games +MASTER_SITES= SF/${PORTNAME}/current_release/ +PKGNAMESUFFIX= -data +DISTNAME= ${PORTNAME}-fixed${PKGNAMESUFFIX:S/-/_/}-${PORTVERSION} +EXTRACT_SUFX= .7z + +MAINTAINER= smoeller@nichthelfer.de +COMMENT= MegaGlest data files + +EXTRACT_DEPENDS=7z:${PORTSDIR}/archivers/p7zip + +USE_DOS2UNIX= *.log *.ini *.html *.txt *.lng +NO_BUILD= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}_game + +PLIST= ${WRKDIR}/pkg-plist + +do-extract: + @${MKDIR} ${WRKSRC} + @cd ${WRKSRC} && \ + ${LOCALBASE}/bin/7z x ${DISTDIR}/${DISTFILES} >/dev/null + +pre-install: + @${ECHO_CMD} "%%DATADIR%%/megaglest.ico" >> ${PLIST} + +.for DIR in data maps scenarios techs tilesets tutorials + @cd ${WRKSRC} && \ + ${FIND} ${DIR} -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ + ${FIND} ${DIR} -type d | ${SORT} -r | ${SED} -e 's|^|@dirrmtry %%DATADIR%%/|' >> ${PLIST} +.endfor + @${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST} + +.if !defined(NOPORTDOCS) + @cd ${WRKSRC}/docs && \ + ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%PORTDOCS%%%%DOCSDIR%%/|' >> ${PLIST} && \ + ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/|' >> ${PLIST} + @${ECHO_CMD} "%%PORTDOCS%%@dirrmtry %%DOCSDIR%%" >> ${PLIST} +.endif + +do-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR}/glest_factions +.for f in AUTHORS CHANGELOG LICENSE README data_license.txt data_license_readme.txt + ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR} +.endfor + (cd ${WRKSRC}/docs/glest_factions && ${COPYTREE_SHARE} "*" ${DOCSDIR}/glest_factions) +.endif + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/megaglest.ico ${DATADIR} + +.for DIR in data maps scenarios techs tilesets tutorials + ${MKDIR} ${DATADIR}/${DIR} + (cd ${WRKSRC}/${DIR} && ${COPYTREE_SHARE} "*" ${DATADIR}/${DIR}) +.endfor + +.include <bsd.port.mk> |