bdaa186010
- Remove el-data/pkg-plist file - Remove BROKEN - Add new el source code mastersite
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# New ports collection makefile for: el-data
|
|
# Date created: 2006-08-18
|
|
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= data
|
|
PORTVERSION= 140
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://el.beplacid.net/downloads/
|
|
PKGNAMEPREFIX= el-
|
|
DISTFILES= ${EL_DATA}
|
|
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/-//}
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-//}_install
|
|
EL_DATA= ${PKGNAMEPREFIX:S/-/_/}linux_install_${PORTVERSION}.zip
|
|
|
|
do-extract:
|
|
@${MKDIR} ${WRKDIR}
|
|
@${UNZIP_CMD} -q ${_DISTDIR}/${EL_DATA} -d ${WRKDIR}
|
|
|
|
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
|
|
@${FIND} ${WRKSRC} -type f -name "*.bin" -print0 | \
|
|
${XARGS} -0 ${RM} -R
|
|
|
|
pre-install:
|
|
@${RM} -f ${PLIST}
|
|
@cd ${WRKSRC} && \
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
|
|
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
|
|
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR}
|
|
@cd ${WRKSRC} && \
|
|
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
|
|
|
|
.include <bsd.port.mk>
|