openbsd-ports/games/frozen-bubble/Makefile
sthen 21206b5a47 bodge frozen-bubble into working following changes to pthreads;
- patch the Makefile to avoid p5-SDL version checks which require
pthread functions

- install a wrapper script to preload pthread/so before running
frozen-bubble{,-editor}

ok aja
2012-09-02 20:52:35 +00:00

71 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2012/09/02 20:52:35 sthen Exp $
SHARED_ONLY = Yes
COMMENT-main = bubble popping game, like puzzle bobble
COMMENT-server = server for the frozen-bubble bubble popping game
VER = 2.2.0
DISTNAME = frozen-bubble-${VER}
PKGNAME-main = ${DISTNAME}
REVISION-main = 7
PKGNAME-server = frozen-bubble-server-${VER}
REVISION-server = 4
CATEGORIES = games
HOMEPAGE = http://www.frozen-bubble.org
MAINTAINER = James Wright <jamesw@bsdhosting.co.za>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${HOMEPAGE}/data/
EXTRACT_SUFX = .tar.bz2
USE_GMAKE = Yes
USE_GROFF = Yes
# No regress tests here
NO_REGRESS = Yes
MODULES = perl \
devel/gettext
BUILD_DEPENDS = devel/p5-SDL \
devel/sdl-pango \
devel/p5-Locale-gettext
RUN_DEPENDS-main = devel/p5-SDL \
devel/sdl-pango \
devel/p5-Locale-gettext \
${BASE_PKGPATH},-server
LIB_DEPENDS-main = ${MODGETTEXT_LIB_DEPENDS} \
devel/sdl-pango \
devel/sdl-mixer \
devel/glib2
LIB_DEPENDS-server = ${MODGETTEXT_LIB_DEPENDS} \
devel/glib2
WANTLIB-main = ${MODGETTEXT_WANTLIB} \
SDL X11 m pango-1.0 pthread pthread-stubs xcb \
SDL_Pango SDL_mixer glib-2.0 gmodule-2.0 \
gobject-2.0
WANTLIB-server = ${MODGETTEXT_WANTLIB} c glib-2.0
MULTI_PACKAGES = -main -server
post-configure:
${SUBST_CMD} -c ${FILESDIR}/wrapper.sh ${WRKDIR}/wrapper.sh
post-install:
mv ${PREFIX}/bin/frozen-bubble* ${PREFIX}/libexec/frozen-bubble/
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/frozen-bubble
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/frozen-bubble-editor
.include <bsd.port.mk>