summaryrefslogtreecommitdiff
path: root/games/vdrift-data/Makefile
blob: f16b003104fc82477d451b2acf01a9e44b7b1892 (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
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$

PORTNAME=	data
PORTVERSION=	20100630
CATEGORIES=	games
MASTER_SITES=	SF/vdrift/vdrift/vdrift-${DATE_VERSION}
PKGNAMEPREFIX=	vdrift-
DISTNAME=	${PKGNAMEPREFIX}${DATE_VERSION}
DIST_SUBDIR=	vdrift

MAINTAINER=	acm@FreeBSD.org
COMMENT=	Vdrift driving simulation data files

LICENSE=	GPLv2

USES=	tar:bzip2
NO_BUILD=	yes
DATADIR=	${PREFIX}/share/vdrift
PLIST=		${WRKDIR}/pkg-plist
WRKSRC=		${WRKDIR}/${PKGNAMEPREFIX}${DATE_VERSION}

DATE_VERSION=	2010-06-30

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} ${STAGEDIR}${DATADIR}
	cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}

.include <bsd.port.mk>