openbsd-ports/games/lostpixels/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

2012-05-15 15:24:21 -04:00
# $OpenBSD: Makefile,v 1.10 2012/05/15 19:24:21 jasper Exp $
BROKEN-sparc64 = Illegal operands error building SDL_gfxPrimitives.cpp
COMMENT = blinkensisters - hunt for the lost pixels
V = 0.5.3
DISTNAME = LostPixels-${V}-source-with-addons
2010-11-16 06:23:25 -05:00
PKGNAME = lostpixels-${V}
REVISION = 3
HOMEPAGE = http://www.blinkensisters.org
CATEGORIES = games
# GPL v2 only
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=blinkensisters/}
2010-11-16 06:23:25 -05:00
LIB_DEPENDS = devel/sdl-net \
devel/sdl-image \
devel/sdl-mixer \
devel/sdl-ttf
WANTLIB += SDL SDL_image SDL_mixer SDL_net SDL_ttf X11 Xau
WANTLIB += Xdmcp Xext Xrandr Xrender c freetype m pthread stdc++
USE_GMAKE = Yes
MODULES += devel/cmake \
lang/lua
2012-05-15 15:24:21 -04:00
MODLUA_BUILDDEP = No
CONFIGURE_STYLE = cmake
WRKDIST = ${WRKDIR}/blinkensisters/lostpixels/game/software/
SEPARATE_BUILD = No
NO_REGRESS = Yes
pre-configure:
${SUBST_CMD} ${WRKDIST}CMakeLists.txt
@perl -pi -e 's,make,${MAKE_PROGRAM},g ; s,/usr/local,\$$\{PREFIX},g' \
${WRKDIST}/../addons/Makefile
@find ${WRKDIST}/../addons/ -name Makefile -exec \
perl -pi -e 's,bmfcompress,${WRKDIST}/bmfcompress,g' {} \;
post-build:
cd ${WRKDIST}/../addons && ${MAKE_PROGRAM} all
post-install:
mv ${PREFIX}/bin/LostPixels ${PREFIX}/bin/lostpixels
cd ${WRKDIST}/../addons && ${MAKE_PROGRAM} install
.include <bsd.port.mk>