blob: d17528ecaad18c5ba5c7ea666cceac970dd1ac96 (
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
|
# New ports collection makefile for: flightgear
# Date created: 26 June 1999
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
#
# $FreeBSD$
#
PORTNAME= fgfs-base
PORTVERSION= 0.9.10
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \
ftp://ftp.de.flightgear.org/pub/fgfs/Shared/
MAINTAINER= jylefort@FreeBSD.org
COMMENT= FlightGear scenery, textures and aircraft models
PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB
NO_BUILD= yes
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/data
DATADIR= ${PREFIX}/share/FlightGear
PLIST= ${WRKDIR}/pkg-plist
PLIST_DIRS= %%DATADIR%%
post-patch:
@${RM} -f ${WRKSRC}/Aircraft/A-10/COPYING ${WRKSRC}/COPYING
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} * -type d -empty | ${SORT} \
| ${SED} -e 's|^|@exec ${MKDIR} %%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type f | ${SORT} \
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r \
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
do-install:
cd ${WRKSRC} && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.include <bsd.port.mk>
|