1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/games/ufoai-data/Makefile
Jose Alonso Cardenas Marquez cb7e1cf64a - Update to 2.3.1
PR:	153121
Submitted by:	Mikhail T. <m.tsatsenko at mail.ru>
2010-12-13 17:37:45 +00:00

49 lines
1.4 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.3.1
CATEGORIES= games
MASTER_SITES= SF/ufoai/UFO_AI%202.x/${PORTVERSION}
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 500MB, 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%%/base/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/base/|' >> ${PLIST}
@${ECHO_CMD} "@dirrmtry %%DATADIR%%/base" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
do-install:
${MKDIR} ${PREFIX}/${DATADIR}/base
cd ${WRKDIR}/base && \
${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${DATADIR}/base/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/${DATADIR}/base/{}" \;
.include <bsd.port.mk>