blob: 89c24fbd174216cce60e4525714eddd48313f1bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# 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= 20090215
CATEGORIES= games
MASTER_SITES= SF/vdrift/vdrift/vdrift-2009-02-15
PKGNAMEPREFIX= vdrift-
DISTNAME= ${PKGNAMEPREFIX}2009-02-15-src
DIST_SUBDIR= vdrift
MAINTAINER= acm@FreeBSD.org
COMMENT= Vdrift driving simulation data files
USE_BZIP2= yes
NO_PACKAGE= Package will be 450MB, set FORCE_PACKAGE if you really want it
NO_BUILD= yes
DATADIR= ${PREFIX}/share/vdrift
PLIST= ${WRKDIR}/pkg-plist
WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX}2009-02-15
post-extract:
@cd ${WRKSRC}/data && \
${FIND} * -name "SConscript*" -print0 | ${XARGS} -0 ${RM}
.for DIRE in music
@${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>
|