mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# New ports collection makefile for: vdrift-data
|
|
# Date created: 2006-02-21
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= data
|
|
PORTVERSION= 20080805
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= vdrift
|
|
PKGNAMEPREFIX= vdrift-
|
|
DISTNAME= ${PKGNAMEPREFIX}2008-08-05-src
|
|
DIST_SUBDIR= vdrift
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Vdrift driving simulation data files
|
|
|
|
USE_BZIP2= yes
|
|
NO_BUILD= yes
|
|
DATADIR= ${PREFIX}/share/vdrift
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}08-05-08
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC}/data && \
|
|
${FIND} * -name SConscript -print0 | ${XARGS} -0 ${RM}
|
|
.for DIRE in settings/replays settings/screenshots carparts/turbo carparts/transmission \
|
|
carparts/suspension carparts/other carparts/exhaust carparts/engine
|
|
@${RMDIR} ${WRKSRC}/data/${DIRE}
|
|
.endfor
|
|
|
|
pre-install:
|
|
@${RM} -f ${PLIST}
|
|
@cd ${WRKSRC}/data && \
|
|
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
|
|
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
|
|
@${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
|
|
|
|
do-install:
|
|
${MKDIR} ${DATADIR}
|
|
cd ${WRKSRC}/data && \
|
|
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
|
|
|
|
.include <bsd.port.mk>
|