aboutsummaryrefslogtreecommitdiffstats
path: root/games/flightgear-data/Makefile
blob: 12ee836372766b30d30d9d457e3e737184a01f79 (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: Brian Buchanan <brian@CSUA.Berkeley.EDU>
# $FreeBSD$

PORTNAME=   flightgear-data
PORTVERSION=    2018.3.1
CATEGORIES= games
MASTER_SITES=   SF/flightgear/release-${PORTVERSION:R}
DISTNAME=   FlightGear-${PORTVERSION}-data

MAINTAINER= martymac@FreeBSD.org
COMMENT=    FlightGear scenery, textures, and aircraft models

LICENSE=    GPLv2

BROKEN_aarch64=     Fails to install: runaway process
BROKEN_mips64=      Fails to install: runaway process

NO_BUILD=   yes
USES=       tar:bzip2
WRKSRC=     ${WRKDIR}/fgdata
DATADIR=    ${PREFIX}/share/flightgear

PLIST=      ${WRKDIR}/pkg-plist
PLIST_DIRS= %%DATADIR%%

post-patch:
    @${RM} ${WRKSRC}/COPYING

pre-install:
    @${RM} ${PLIST}
    @cd ${WRKSRC} && \
    ${FIND} * -type d -empty | ${SORT} \
        | ${SED} -e 's|^|@exec ${MKDIR} %D/share/flightgear/|' >> ${PLIST} && \
    ${FIND} * -type f | ${SORT} \
        | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
    ${FIND} * -type d -empty | ${SORT} -r \
        | ${SED} -e 's|^|@dir %%DATADIR%%/|' >> ${PLIST}

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    (cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "! ( -name .git -o -name .gitignore )")

.include <bsd.port.mk>