1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

The megaglest data files.

This port installs the data files needed to run megaglest a free 3D
real-time strategy game.

WWW: http://megaglest.org/

PR:		ports/155111
Submitted by:	Rusty Nejdl <rnejdl AT ringofsaturn.com>,
		Sven Moeller <smoeller AT nichthelfer.de>
This commit is contained in:
Beat Gaetzi 2011-04-07 05:13:40 +00:00
parent 96e674f6f2
commit 6f46e9afc4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272323
4 changed files with 75 additions and 0 deletions

View File

@ -530,6 +530,7 @@
SUBDIR += marsnomercy
SUBDIR += masterserver
SUBDIR += maxr
SUBDIR += megaglest-data
SUBDIR += memonix
SUBDIR += meqcc
SUBDIR += meritous

View File

@ -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>

View File

@ -0,0 +1,2 @@
SHA256 (megaglest-fixed_data-3.4.0.7z) = 3944c2549f03c64a75a1c33835b22aaed3748a2712c192b5705978d8caef1d45
SIZE (megaglest-fixed_data-3.4.0.7z) = 189268275

View File

@ -0,0 +1,6 @@
The megaglest data files.
This port installs the data files needed to run megaglest a free 3D
real-time strategy game.
WWW: http://megaglest.org/