1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/games/opensonic/Makefile
Tobias Kortkamp 5024c6f699 games/opensonic: Prepare for Allegro 4.4.3, add wrapper script
- struct LOGG in liblogg from Allegro 4.4.3 was made opaque.  Opensonic
  directly manipulates it however.  Integrate liblogg from Allegro
  4.4.2 to preserve this port.
- Add a wrapper script so that opensonic can find its data files when
  you run 'opensonic' or start it from your desktop

PR:		235478
Submitted by:	tobik
Approved by:	devel@stasyan.com (maintainer timeout, 2 weeks)
2019-02-18 11:39:08 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$
PORTNAME= opensonic
PORTVERSION= 0.1.4
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= SF/opensnc/Open%20Sonic/${PORTVERSION}
DISTNAME= opensnc-src-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
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
USE_GITHUB= nodefault
GH_TUPLE= t6:loggcompat:4.4.2:loggcompat
CONFIGURE_ENV= _ALLEGRO_LIBS="`allegro-config --libs`" \
_ALLEGRO_VERSION="`allegro-config --version`"
CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC_loggcompat}
SUB_FILES= opensonic
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
${INSTALL_SCRIPT} ${WRKDIR}/opensonic ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>