summaryrefslogtreecommitdiff
path: root/games/flightgear-data/Makefile
blob: 16eb5df9b8af4b5dce7312ab1b84cbecc10513f0 (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
# $NetBSD: Makefile,v 1.4 2012/10/06 11:54:37 asau Exp $

DISTNAME=	FlightGear-data-2.8.0
PKGNAME=	${DISTNAME:tl}
CATEGORIES=	games
MASTER_SITES=	http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Shared/ \
		ftp://ftp.de.flightgear.org/pub/fgfs/Shared/ \
		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

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"