2004-04-28 22:14:48 +00:00
|
|
|
# New ports collection makefile for: glob2
|
|
|
|
# Date created: Wed 21 apr 2004
|
|
|
|
# Whom: thierry@pompo.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= glob2
|
2009-03-27 19:45:02 +00:00
|
|
|
PORTVERSION= 0.9.4.1
|
2009-07-06 21:25:59 +00:00
|
|
|
PORTREVISION= 1
|
2004-04-28 22:14:48 +00:00
|
|
|
CATEGORIES= games
|
2008-05-07 16:16:57 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
|
2009-03-27 19:45:02 +00:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}/${PORTVERSION:R}
|
2004-04-28 22:14:48 +00:00
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Globulation 2 - a free and innovative strategy game
|
|
|
|
|
2009-07-28 11:45:08 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/rational.hpp:${PORTSDIR}/devel/boost-libs
|
2007-07-28 12:27:31 +00:00
|
|
|
LIB_DEPENDS= vorbis.4:${PORTSDIR}/audio/libvorbis \
|
2007-02-23 22:51:12 +00:00
|
|
|
speex.1:${PORTSDIR}/audio/speex \
|
2007-04-09 10:17:13 +00:00
|
|
|
fribidi.0:${PORTSDIR}/converters/fribidi\
|
2004-04-28 22:14:48 +00:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2009-03-02 18:06:29 +00:00
|
|
|
# Should work with portaudio v19_20071207
|
|
|
|
# Can be built with portaudio2 but does not run cleanly
|
|
|
|
#LIB_DEPENDS+= portaudio.2:${PORTSDIR}/audio/portaudio2
|
2004-04-28 22:14:48 +00:00
|
|
|
|
2006-02-18 09:45:51 +00:00
|
|
|
USE_SDL= image net sdl ttf
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_GL= gl
|
2006-08-05 09:59:22 +00:00
|
|
|
USE_GMAKE= yes
|
2007-09-06 21:08:35 +00:00
|
|
|
USE_SCONS= yes
|
2009-03-02 18:06:29 +00:00
|
|
|
#SCONS_ARGS= --portaudio=true
|
2008-05-04 20:37:30 +00:00
|
|
|
INSTALLS_ICONS= yes
|
2007-09-06 21:08:35 +00:00
|
|
|
SCONS_BUILDENV= ${SCONS_ENV}
|
2009-03-02 18:06:29 +00:00
|
|
|
#CFLAGS+= ${PTHREAD_CFLAGS} -I. `pkg-config --cflags portaudio-2.0` -I${LOCALBASE}/include
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS} -I. -I${LOCALBASE}/include
|
|
|
|
#LINKFLAGS= ${PTHREAD_LIBS} `pkg-config --libs portaudio-2.0` -L${LOCALBASE}/lib
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
LINKFLAGS= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
|
2004-04-28 22:14:48 +00:00
|
|
|
|
2005-01-02 01:05:49 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "alpha"
|
2006-02-18 09:45:51 +00:00
|
|
|
BROKEN= Does not build on ${ARCH}
|
2005-01-02 01:05:49 +00:00
|
|
|
.endif
|
|
|
|
|
2005-04-30 21:45:29 +00:00
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
2008-05-04 20:37:30 +00:00
|
|
|
manual-regression-test:
|
|
|
|
# Don't enable these tests on pointyhat, they take too long.
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
|
|
(cd ${WRKSRC}/src && ./glob2 -test-games)
|
|
|
|
.else
|
|
|
|
(cd ${WRKSRC}/src && ./glob2 -test-games-nox)
|
|
|
|
.endif
|
|
|
|
|
2005-01-02 01:05:49 +00:00
|
|
|
.include <bsd.port.post.mk>
|