- Update to 0.9.9

- Move to ${X11BASE}
- Dynamically generate the packing list
- Simplify do-install
This commit is contained in:
Jean-Yves Lefort 2005-11-20 22:16:15 +00:00
parent 81807f2d72
commit 15ce43976d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148884
6 changed files with 36 additions and 7648 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= fgfs-base
PORTVERSION= 0.9.8
PORTVERSION= 0.9.9
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \
ftp://ftp.de.flightgear.org/pub/fgfs/Shared/
@ -14,19 +14,26 @@ MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \
MAINTAINER= jylefort@FreeBSD.org
COMMENT= FlightGear scenery, textures and aircraft models
PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB
NO_BUILD= yes
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/data
DATADIR= ${PREFIX}/share/FlightGear
post-extract:
@${FIND} ${WRKSRC} \( -name '.#*' -or -name '*~' \) -print -delete
PLIST= ${WRKDIR}/pkg-plist
PLIST_DIRS= %%DATADIR%%
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} * -type f | ${SORT} \
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r \
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
do-install:
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 ${DATADIR}
@(cd ${WRKSRC} && ${FIND} . -type d | (cd ${DATADIR} &&\
${XARGS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755))
@(cd ${WRKSRC} && ${FIND} . -type f |\
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR})
cd ${WRKSRC} && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.include <bsd.port.mk>

View file

@ -1,2 +1,3 @@
MD5 (fgfs-base-0.9.8.tar.bz2) = 7354da8d5232ee02daee8d8759e83af3
SIZE (fgfs-base-0.9.8.tar.bz2) = 74122557
MD5 (fgfs-base-0.9.9.tar.bz2) = c262f7022479c249c486a195d6755579
SHA256 (fgfs-base-0.9.9.tar.bz2) = 5524223a0b7ef51c3cd565b441c5e858bb8f902f077c5512d44787a6e04fe5ad
SIZE (fgfs-base-0.9.9.tar.bz2) = 85943212

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
#
PORTNAME= fgfs-base
PORTVERSION= 0.9.8
PORTVERSION= 0.9.9
CATEGORIES= games
MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \
ftp://ftp.de.flightgear.org/pub/fgfs/Shared/
@ -14,19 +14,26 @@ MASTER_SITES= ftp://ftp.flightgear.org/pub/fgfs/Shared/ \
MAINTAINER= jylefort@FreeBSD.org
COMMENT= FlightGear scenery, textures and aircraft models
PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB
NO_BUILD= yes
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/data
DATADIR= ${PREFIX}/share/FlightGear
post-extract:
@${FIND} ${WRKSRC} \( -name '.#*' -or -name '*~' \) -print -delete
PLIST= ${WRKDIR}/pkg-plist
PLIST_DIRS= %%DATADIR%%
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} * -type f | ${SORT} \
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r \
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
do-install:
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755 ${DATADIR}
@(cd ${WRKSRC} && ${FIND} . -type d | (cd ${DATADIR} &&\
${XARGS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0755))
@(cd ${WRKSRC} && ${FIND} . -type f |\
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DATADIR})
cd ${WRKSRC} && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.include <bsd.port.mk>

View file

@ -1,2 +1,3 @@
MD5 (fgfs-base-0.9.8.tar.bz2) = 7354da8d5232ee02daee8d8759e83af3
SIZE (fgfs-base-0.9.8.tar.bz2) = 74122557
MD5 (fgfs-base-0.9.9.tar.bz2) = c262f7022479c249c486a195d6755579
SHA256 (fgfs-base-0.9.9.tar.bz2) = 5524223a0b7ef51c3cd565b441c5e858bb8f902f077c5512d44787a6e04fe5ad
SIZE (fgfs-base-0.9.9.tar.bz2) = 85943212

File diff suppressed because it is too large Load diff