mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
dd6f9aecd2
upstream forgot to regenerate the build scripts. This makes the build use the correct version information and causes a library version bump. Use this opportunity to use USES=libtool instead of USES=libtool:oldver. Bump PORTREVISION on all dependent ports and convert them to USES=libtool where needed. Also use USES=(gmake, pathfix, tar) and new LIB_DEPENDS syntax here and there. games/freedink-engine: - Option helpers. - Staging. - Use dirrmtry for locale directories. games/oolite: - Staging. - Replace ECHO with ECHO_CMD. - Don't use GNUSTEP_PREFIX to install files because it expands to LOCALBASE rather than PREFIX. games/openssn: - Remove USES=desktop-file-utils. No MimeType field in desktop file. - Staging. - Install files in standard DATADIR. games/xblast: - Use proper options. - Staging. - Patch configure so normal make install can be used instead of do-install. - Replace TAR | TAR with COPYTREE_SHARE.
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# Created by: Alejandro Pulver <alejandro@varnet.biz>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= galaxyhack
|
|
PORTVERSION= 1.74
|
|
PORTREVISION= 17
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF \
|
|
SF/${PORTNAME}/Fleet%20packages/020906:fleets
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= AI script based strategy game
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= winicontoppm:${PORTSDIR}/graphics/netpbm
|
|
LIB_DEPENDS= libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
OPTIONS_DEFINE= FLEETS OPTIMIZED_CFLAGS
|
|
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
|
|
OPTIONS_SUB= yes
|
|
FLEETS_DESC= Additional fleets
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
|
|
|
USES= dos2unix gmake tar:bzip2
|
|
USE_SDL= gfx image mixer sdl
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
SUB_FILES= ${PORTNAME}-sh
|
|
|
|
DESKTOP_ENTRIES="GalaxyHack" "" "${PREFIX}/share/pixmaps/galaxyhack.png" \
|
|
"${PORTNAME}" "" ""
|
|
|
|
FLEETS_DISTFILES= gh_fleets_020906.zip:fleets
|
|
FLEETS_EXTRACT_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
|
|
OPTIMIZED_CFLAGS_MAKE_ENV= OPTIMIZED_CFLAGS=YES
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
.if ${PORT_OPTIONS:MFLEETS}
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@${UNZIP_CMD} -o ${DISTDIR}/${FLEETS_DISTFILES:S/:fleets//} \
|
|
-x "*/CVS/*" "*/.svn/*" -d ${STAGEDIR}${DATADIR}
|
|
.endif
|
|
|
|
post-build:
|
|
@(winicontoppm ${WRKSRC}/../GalaxyHack.ico | pnmtopng \
|
|
> ${WRKDIR}/galaxyhack.png)
|
|
|
|
do-install:
|
|
(cd ${WRKDIR} && ${INSTALL_SCRIPT} ${PORTNAME}-sh \
|
|
${STAGEDIR}${PREFIX}/bin/${PORTNAME})
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
|
|
${STAGEDIR}${PREFIX}/libexec)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC}/.. && ${INSTALL_DATA} settings.dat \
|
|
${STAGEDIR}${DATADIR})
|
|
.for d in fleets gamedata graphics music standardpictures
|
|
@(cd ${WRKSRC}/.. && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
|
.endfor
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
(cd ${WRKDIR} && ${INSTALL_DATA} galaxyhack.png \
|
|
${STAGEDIR}/${PREFIX}/share/pixmaps)
|
|
|
|
.include <bsd.port.mk>
|