summaryrefslogtreecommitdiffstats
path: root/games/flightgear-aircraft/Makefile
blob: 56ac8eb41715190d47f85848135c7343dee86608 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org>
# $FreeBSD$

PORTNAME=	flightgear-aircraft
PORTVERSION=	20130221
CATEGORIES=	games
# see http://www.flightgear.org/templates.js
MASTER_SITES=	http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Aircraft-2.10/ \
		http://ftp.linux.kiev.ua/pub/mirrors/ftp.flightgear.org/flightgear/Aircraft-2.10/ \
		ftp://ftp.kingmont.com/flightsims/flightgear/Aircraft-2.10/ \
		ftp://ftp.de.flightgear.org/pub/fgfs/Aircraft-2.10/ \
		ftp://flightgear.wo0t.de/flightgear-ftp/ftp/Aircraft-2.10/
# Selection of production-ready/well-known planes
# (planes already included in flightgear-data are excluded)
# Please contact the MAINTAINER if a plane is missing
DISTFILES=	737-200_20120506.zip \
		A-10_20121203.zip \
		A300_20120717.zip \
		Alouette-II_20120506.zip \
		Alphajet_20120506.zip \
		B-17_20120506.zip \
		Breguet-XIX_20100829.zip \
		C130_20120717.zip \
		Caravelle_20120506.zip \
		Caudron-G3_20120506.zip \
		F80C_20120717.zip \
		Hurricane_20130117.zip \
		IL-2_20110311.zip \
		Lightning_20121005.zip \
		Lockheed1049h_1.0.zip \
		Messerschmitt-P1101_20101005.zip \
		MirageIII_20120222.zip \
		PaperAirplane_20101229.zip \
		Pond-Racer_20120506.zip \
		R44_20120506.zip \
		Spitfire_20130117.zip \
		Stieglitz_20091025.zip \
		Super-Etendard_20120501.zip \
		Supermarine-S.6B_20110114.zip \
		Superwal_20100330.zip \
		airwaveXtreme150_July-2012.zip \
		asw20_20130115.zip \
		bf109_20120717.zip \
		c310_20130209.zip \
		dhc3_20120506.zip \
		f16_20120812.zip \
		harrier_20120717.zip \
		pa24-250_20121128.zip \
		tu154_20081221.zip \
		wrightFlyer1903_20070710.zip
DIST_SUBDIR=	${PORTNAME}

MAINTAINER=	martymac@FreeBSD.org
COMMENT=	Selection of additional aircraft for the FlightGear flight simulator

LICENSE=	GPLv2

RUN_DEPENDS=	${LOCALBASE}/share/flightgear/version:${PORTSDIR}/games/flightgear-data

USE_ZIP=	yes
NO_WRKSUBDIR=	yes
NO_BUILD=	yes
PLIST=	${WRKDIR}/.pkg-plist

MANUAL_PACKAGE_BUILD=	package exceeds pointyhat filesize limit

post-patch:
	@${FIND} ${WRKSRC} -type f \
		\( -name COPYING -or -name LICENSE -or -name copyright \) -delete

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

do-install:
	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${PREFIX}/share/flightgear/Aircraft/)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud