1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/games/opensurge/Makefile
Tobias Kortkamp 29a23b8db4 Clean up LLD_UNSAFE from openal-soft ports
After FreeBSD 12.0 EOL we no longer have to worry about LLD 6 and
can drop LLD_UNSAFE from openal-soft ports.  LLD can link them fine
now but some ports needs a little help on i386 (-Wl,-znotext).

PR:		226980
Reviewed by:	jbeich (earlier version)
Differential Revision:	https://reviews.freebsd.org/D23030
2020-03-19 23:02:30 +00:00

83 lines
2.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= opensurge
PORTVERSION= 0.1.r${SVN_REV}
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= http://www.ime.usp.br/~alemart/opensurge_nightly/ \
SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/
DISTFILES= ${PORTNAME}-src-build${SVN_REV}${EXTRACT_SUFX} \
${PORTNAME}-mods-${MODS_VER}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Game based on the Sonic the Hedgehog universe
LICENSE= GPLv2+ CC-BY-SA-3.0
LICENSE_COMB= multi
LICENSE_FILE_GPLv2+ = ${WRKSRC}/licenses/GPLv2.txt
LICENSE_FILE_CC-BY-SA-3.0= ${WRKSRC}/licenses/CC-BY-SA-3.0.txt
BUILD_DEPENDS= ${LOCALBASE}/lib/libaldmb.a:audio/dumb-allegro
LIB_DEPENDS= libalfont.so:x11-fonts/alfont \
liballeg.so:devel/allegro \
libalure.so:audio/alure \
libpng.so:graphics/png \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis
WRKSRC= ${WRKDIR}/${PORTNAME}-src-build${SVN_REV}
USES= cmake compiler:c++11-lang dos2unix gnome localbase openal:soft
DOS2UNIX_GLOB= *.bg *.brk *.grp *.inc *.lev *.lng *.obj *.qst *.spr *.txt
PORTDOCS= readme.html
PORTDATA= *
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Open Surge" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
INSTALLS_ICONS= yes
LDFLAGS_i386= -Wl,-znotext
SVN_REV= 765
MODS_VER= 20140321
post-extract-script:
@(cd ${WRKDIR}/opensurge-mods && ${COPYTREE_SHARE} . ${WRKSRC})
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/opensurge|${DATADIR}|' \
-e 's|/usr/bin|${PREFIX}/bin|' \
${WRKSRC}/src/core/global.h
@${REINPLACE_CMD} -e 's|/usr/bin|${PREFIX}/bin|' \
${WRKSRC}/src/core/osspec.c
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|; \
s|/usr/bin|${PREFIX}/bin|; \
s|license.txt readme.html||; \
s|licenses||' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -i '' '/Copying executable to/,+2d' \
${WRKSRC}/CMakeLists.txt
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for s in 16x16 32x32 48x48 64x64 72x72 96x96 128x128 256x256
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${INSTALL_DATA} ${WRKSRC}/src/misc/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
${RLN} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>