1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/games/opensonic/Makefile
Tobias Kortkamp d7a62f6112 Add explicit libpng dependency to fix the build of games/opensonic
after the recent devel/allegro update.

PR:		215838
Approved by:	mat (mentor), devel@stasyan.com (maintainer)
Differential Revision:	https://reviews.freebsd.org/D11039
2017-06-09 13:31:21 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$
PORTNAME= opensonic
PORTVERSION= 0.1.4
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/opensnc/Open%20Sonic/${PORTVERSION}
DISTNAME= opensnc-src-${PORTVERSION}
MAINTAINER= devel@stasyan.com
COMMENT= Game based on the "Sonic the Hedgehog" universe
BUILD_DEPENDS= alpng>=1.3:graphics/alpng
LIB_DEPENDS= liballeg.so:devel/allegro \
libogg.so:audio/libogg \
libpng.so:graphics/png \
libvorbis.so:audio/libvorbis
DESKTOP_ENTRIES="${PORTNAME}" \
"Sonic the Hedgehog" \
"${PREFIX}/share/pixmaps/opensonic.png" \
"${PORTNAME}" \
"Game;ArcadeGame;" \
false
USES= cmake
CONFIGURE_ENV+= _ALLEGRO_LIBS="`allegro-config --libs`" \
_ALLEGRO_VERSION="`allegro-config --version`"
CFLAGS+= -I${LOCALBASE}/include
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin,${PREFIX}/bin,g' \
-e 's,/usr/share,${PREFIX}/share,g' \
${PATCH_WRKSRC}/src/core/global.h
post-install:
${INSTALL_DATA} ${WRKSRC}/icon.png ${STAGEDIR}${PREFIX}/share/pixmaps/opensonic.png
${LN} -s ${DATADIR}/opensonic ${STAGEDIR}${PREFIX}/bin/opensonic
.include <bsd.port.mk>