23ee2a7d62
Instead of defining a variable that is almost always based on CONFIGURE_ENV, just use CONFIGURE_ENV directly. This also matches the behavior of other ports that do not use autotools (so most ports can just worry about CONFIGURE_ENV). Additionally, the fact that we do not use ?= means we do not have problems if another file in Uses/ needs to set CONFIGURE_ENV (with CMAKE_ENV, the order of the arguments to USES would matter). Ports which set CMAKE_ENV have been adjusted accordingly. In most cases, CMAKE_ENV was just replaced with CONFIGURE_ENV, the exceptions being: * databases/sqliteman: CMAKE_ENV line removed; setting QMAKESPEC there has no effect on the build system. * devel/freeocl: CMAKE_ENV line removed; FREEOCL_CXX_COMPILER is already retrieved from the CMAKE_CXX_COMPILER variable in the build system. * graphics/openimageio: CMAKE_ENV line removed; setting Qt variables there has no effect on the build system. Reviewed by: makc Differential Revision: https://reviews.freebsd.org/D3403
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# Created by: Stas Timokhin <stast@bsdportal.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opensonic
|
|
PORTVERSION= 0.1.4
|
|
PORTREVISION= 2
|
|
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
|
|
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>
|