1999-07-03 08:36:37 +02:00
|
|
|
# New ports collection makefile for: flightgear
|
|
|
|
# Date created: 26 June 1999
|
|
|
|
# Whom: Brian Buchanan <brian@CSUA.Berkeley.EDU>
|
|
|
|
#
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1999-07-03 08:36:37 +02:00
|
|
|
#
|
|
|
|
|
2004-12-11 19:01:24 +01:00
|
|
|
PORTNAME= fgfs-base
|
2006-04-07 22:27:43 +02:00
|
|
|
PORTVERSION= 0.9.10
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2003-01-22 14:58:58 +01:00
|
|
|
CATEGORIES= games
|
2004-12-11 19:01:24 +01:00
|
|
|
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \
|
|
|
|
ftp://ftp.de.flightgear.org/pub/fgfs/Shared/
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2005-10-03 23:44:12 +02:00
|
|
|
MAINTAINER= jylefort@FreeBSD.org
|
2004-12-11 19:01:24 +01:00
|
|
|
COMMENT= FlightGear scenery, textures and aircraft models
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2005-11-20 23:16:15 +01:00
|
|
|
PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB
|
2004-12-11 19:01:24 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
USE_BZIP2= yes
|
|
|
|
WRKSRC= ${WRKDIR}/data
|
2004-12-11 19:11:35 +01:00
|
|
|
DATADIR= ${PREFIX}/share/FlightGear
|
2004-09-18 00:47:50 +02:00
|
|
|
|
2005-11-20 23:16:15 +01:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
|
|
|
|
2006-04-07 22:27:43 +02:00
|
|
|
post-patch:
|
|
|
|
@${RM} -f ${WRKSRC}/Aircraft/A-10/COPYING ${WRKSRC}/COPYING
|
|
|
|
|
2005-11-20 23:16:15 +01:00
|
|
|
pre-install:
|
|
|
|
@${RM} -f ${PLIST}
|
|
|
|
@cd ${WRKSRC} && \
|
2006-04-07 22:27:43 +02:00
|
|
|
${FIND} * -type d -empty | ${SORT} \
|
|
|
|
| ${SED} -e 's|^|@exec ${MKDIR} %%DATADIR%%/|' >> ${PLIST} && \
|
2005-11-20 23:16:15 +01:00
|
|
|
${FIND} * -type f | ${SORT} \
|
|
|
|
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
|
|
|
|
${FIND} * -type d | ${SORT} -r \
|
|
|
|
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
|
2003-11-19 12:04:39 +01:00
|
|
|
|
2003-07-15 01:50:36 +02:00
|
|
|
do-install:
|
2005-11-20 23:16:15 +01:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
|
|
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
|
1999-07-03 08:36:37 +02:00
|
|
|
|
2004-12-11 19:01:24 +01:00
|
|
|
.include <bsd.port.mk>
|