freebsd-ports/games/vegastrike-data/Makefile
Mikhail Teterin 349b0bbd0a Uncondemn by adding patches to appease new C++ compilers
(tested against GNU 4.8 and clang 3.4). Add support for staging.

While here, change vegastrike to build against the existing
boost.

While here, rearrange vegastrike-data to extract directly to
${STAGEDIR}${DATADIR} -- saving one round of data-writing.
2014-06-07 23:30:50 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= vegastrike
PORTVERSION= 0.5.1.r1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/0.5.1/
PKGNAMESUFFIX= -data
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Vega Strike data files
USE_BZIP2= yes
NO_BUILD= yes
MANUAL_PACKAGE_BUILD=huge
do-extract:
${MKDIR} ${WRKDIR}
# Will extract directly into ${STAGEDIR}${DATADIR:H}
do-install:
${RM} -rf ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR:H}
${TAR} -C ${STAGEDIR}${DATADIR:H} -xvf ${_DISTDIR}/${DISTFILES} \
--exclude Makefile.am --no-same-owner 2>&1 | \
${AWK} ' \
BEGIN { dirn = 0 ; print "@cwd ${DATADIR}" } \
{ sub("^x [^/]*/", "") } \
/\/$$/ { sub("/$$", ""); dirs[dirn++] = $$0 ; next } \
!/^$$/ { print $$0 } \
END {while (dirn--) print "@dirrm " dirs[dirn]; \
print "@cwd"; print "@dirrm ${DATADIR_REL}" } \
' >> ${TMPPLIST}
${MV} ${STAGEDIR}${DATADIR:H}/vegastrike-data-${PORTVERSION} \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>