aboutsummaryrefslogtreecommitdiff
path: root/games/el-data/Makefile
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2006-08-20 14:29:05 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2006-08-20 14:29:05 +0000
commit17d96d9076f2b02ddf6fa4d72374b62c2c6dde85 (patch)
tree09de4072cf505b020e94a68463f3a492cbc0bf18 /games/el-data/Makefile
parent60bf3fc834b60ab729194811e6b003805a8712e5 (diff)
downloadports-17d96d9076f2b02ddf6fa4d72374b62c2c6dde85.tar.gz
ports-17d96d9076f2b02ddf6fa4d72374b62c2c6dde85.zip
Notes
Diffstat (limited to 'games/el-data/Makefile')
-rw-r--r--games/el-data/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/games/el-data/Makefile b/games/el-data/Makefile
new file mode 100644
index 000000000000..2ece67a9aab4
--- /dev/null
+++ b/games/el-data/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: el-data
+# Date created: 2006-08-18
+# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= data
+PORTVERSION= 130
+CATEGORIES= games
+MASTER_SITES= http://www.other-life.com/el/:data \
+ http://www.eternalmusik.org/music/:sound \
+ http://www.el-development.com/music/:sound
+PKGNAMEPREFIX= el-
+DISTFILES= ${EL_DATA}:data \
+ ${EL_SOUND}:sound
+DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= Eternal Lands data and sound files
+
+USE_ZIP= yes
+NO_BUILD= yes
+USE_DOS2UNIX= *.ini *.txt
+
+DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
+WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}${PORTNAME}
+EL_DATA= ${PKGNAMEPREFIX:S/-/_/}${PORTVERSION}_linux_full.zip
+EL_SOUND= music_full.zip
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${UNZIP_CMD} -q ${_DISTDIR}/${EL_DATA} -d ${WRKSRC}
+ @${UNZIP_CMD} -q ${_DISTDIR}/${EL_SOUND} -d ${WRKSRC}/music
+
+post-extract:
+ @${FIND} ${WRKSRC} -type d -name CVS -print0 | \
+ ${XARGS} -0 ${RM} -R
+ @${FIND} ${WRKSRC} -type f -name "*.dll" -print0 | \
+ ${XARGS} -0 ${RM} -R
+ @${FIND} ${WRKSRC} -type f -name "*.exe" -print0 | \
+ ${XARGS} -0 ${RM} -R
+ @${RM} ${WRKSRC}/el-130.*
+
+do-install:
+ ${MKDIR} ${DATADIR}
+ @cd ${WRKSRC} && \
+ ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
+ ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
+
+.include <bsd.port.mk>