summaryrefslogtreecommitdiff
path: root/games/flightgear-data/Makefile
blob: 01314f7ed1efb9e4aaccc33d2a720bcf79278fdf (plain)
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
# $NetBSD: Makefile,v 1.6 2017/01/19 18:52:10 agc Exp $

DISTNAME=	FlightGear-data-2.8.0
PKGNAME=	${DISTNAME:tl}
CATEGORIES=	games
MASTER_SITES=	http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Shared/
MASTER_SITES+=	ftp://ftp.de.flightgear.org/pub/fgfs/Shared/
MASTER_SITES+=	ftp://ftp.linux.kiev.ua/pub/mirrors/ftp.flightgear.org/flightgear/Shared/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.flightgear.org/
COMMENT=	FlightGear Simulator data files
LICENSE=	gnu-gpl-v2

UNLIMIT_RESOURCES+=	cputime

WRKSRC=			${WRKDIR}/data
NO_BUILD=		yes
NO_CONFIGURE=		yes

SHARESUBDIR=	share/FlightGear
SHAREDIR=	${PREFIX}/${SHARESUBDIR}
PLIST_SRC=	PLIST ${WRKDIR}/PLIST.F

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR}
	# auto-generated PLIST
	rm -f ${WRKDIR}/PLIST.F
	set -e;	cd ${WRKSRC} &&						\
	find . -type d -print | while read d; do			\
		${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR}/"$${d}";	\
	done;								\
	find . -type f -print | while read f; do			\
		${INSTALL_DATA} "$${f}" ${DESTDIR}${SHAREDIR}/"$${f}";	\
		${ECHO} ${SHARESUBDIR}/"$${f#./}" >> ${WRKDIR}/PLIST.F;	\
	done;

.include "../../mk/bsd.pkg.mk"