1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/games/opensonic/Makefile
Max Brazhnikov ef80786ca6 games/opensonic:
- Install icon and fix desktop entry
- Remove useless dependencies
- Bring stage support
- Fix misused PREFIX/LOCALBASE
- Don't install old wrapper script, patch sources to not copy binary,
  and create a link for binary instead.
- Remove no longer useful patch

I only wanted nice icon...

PR:		ports/185616
Approved by:	maintainer timeout (16 days)
2014-01-26 19:42:36 +00:00

42 lines
1.1 KiB
Makefile

# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$
PORTNAME= opensonic
PORTVERSION= 0.1.4
PORTREVISION= 1
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:${PORTSDIR}/graphics/alpng
LIB_DEPENDS= liballeg.so:${PORTSDIR}/devel/allegro \
libogg.so:${PORTSDIR}/audio/libogg \
libvorbis.so:${PORTSDIR}/audio/libvorbis
DESKTOP_ENTRIES="${PORTNAME}" \
"Sonic the Hedgehog" \
"${PREFIX}/share/pixmaps/opensonic.png" \
"${PORTNAME}" \
"Game;ArcadeGame;" \
false
USES= cmake
CMAKE_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>