freebsd-ports/games/ufoai-data/Makefile
Pietro Cerutti ab751fb7a9 - Move archivers/unzip from BUILD_DEPENDS to EXTRACT_DEPENDS
Reported by:	QA Tindie
Approved by:	portmgr
2008-09-09 21:37:53 +00:00

48 lines
1.3 KiB
Makefile

# New ports collection makefile for: ufoai-data
# Date created: 2006-09-03
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= data
PORTVERSION= 2.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PKGNAMEPREFIX:S/-//}
PKGNAMEPREFIX= ufoai-
DISTNAME= ${PKGNAMEPREFIX}${PORTVERSION}-${PORTNAME}
EXTRACT_SUFX= .tar
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
MAINTAINER= acm@FreeBSD.org
COMMENT= UFO alien invasion data files
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
NO_PACKAGE= Package will be 400MB, set FORCE_PACKAGE if you really want it
NO_BUILD= yes
NO_WRKSUBDIR= yes
DATADIR= share/${PKGNAMEPREFIX:S/-//}
PLIST= ${WRKDIR}/pkg-plist
post-extract:
@cd ${WRKDIR}/base && \
${FIND} * -type f -exec ${UNZIP_CMD} "{}" -d ${WRKDIR}/base \;
@${RM} ${WRKDIR}/base/*.pk3
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKDIR}/base && \
${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} ${PREFIX}/${DATADIR}
cd ${WRKDIR}/base && \
${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/{}" \;
.include <bsd.port.mk>