2013-01-19 11:09:14 +01:00
|
|
|
# Created by: Oliver Lehmann <oliver@FreeBSD.org>
|
2005-10-04 19:55:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ember
|
2014-03-23 10:46:39 +01:00
|
|
|
PORTVERSION= 0.7.2
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 3
|
2005-10-04 19:55:56 +02:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/worldforge/Ember%20%28OGRE%20client%29/${PORTVERSION} \
|
2005-10-30 01:44:16 +02:00
|
|
|
http://amber.worldforge.org/ember/releases/stable/
|
2007-03-04 21:27:09 +01:00
|
|
|
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-media-${PORTVERSION}${EXTRACT_SUFX}
|
2005-10-04 19:55:56 +02:00
|
|
|
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2012-07-29 13:17:02 +02:00
|
|
|
COMMENT= Ember is a WorldForge 3D client using the OGRE 3D library
|
2005-10-04 19:55:56 +02:00
|
|
|
|
2014-03-23 10:46:39 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libOgreMain.so:${PORTSDIR}/graphics/ogre3d
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libOgreMain.so:${PORTSDIR}/graphics/ogre3d
|
2013-12-12 12:14:49 +01:00
|
|
|
LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \
|
|
|
|
liberis-1.3.so:${PORTSDIR}/devel/eris \
|
|
|
|
libvarconf-1.0.so:${PORTSDIR}/devel/varconf \
|
|
|
|
libmercator-0.3.so:${PORTSDIR}/devel/mercator \
|
|
|
|
libwfut-0.2.so:${PORTSDIR}/devel/libwfut \
|
|
|
|
libboost_thread.so:${PORTSDIR}/devel/boost-libs \
|
2014-03-23 10:46:39 +01:00
|
|
|
libCEGUIBase-0.so:${PORTSDIR}/graphics/cegui
|
2005-10-04 19:55:56 +02:00
|
|
|
|
2011-03-10 09:21:48 +01:00
|
|
|
CONFIGURE_ARGS= --with-png-prefix=${LOCALBASE} --enable-binreloc \
|
2013-01-19 11:09:14 +01:00
|
|
|
--program-transform-name= --disable-cppunit --disable-debug \
|
2011-03-10 09:21:48 +01:00
|
|
|
--with-toluaxx=${TOLUAXX_CMD}
|
2014-05-26 17:30:56 +02:00
|
|
|
CONFIGURE_ENV+= LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER}" \
|
2011-03-10 09:21:48 +01:00
|
|
|
LUA_CFLAGS="-I${LUA_INCDIR}" \
|
|
|
|
TOLUAXX="${TOLUAXX_CMD}"
|
2013-01-19 11:09:14 +01:00
|
|
|
|
2014-06-14 12:48:12 +02:00
|
|
|
TOLUAXX_CMD= ${LOCALBASE}/bin/tolua++${LUA_VER}
|
2006-09-11 16:26:47 +02:00
|
|
|
USE_SDL= sdl
|
2014-03-23 10:46:39 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
2014-06-14 12:48:12 +02:00
|
|
|
USES= openal:al,alut pathfix pkgconfig compiler:c++11-lib tar:bzip2 lua:51
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-02-21 14:36:56 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-01-19 11:09:14 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2005-10-04 19:55:56 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '\
|
- 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 19:56:05 +02:00
|
|
|
s|-lGL|-L${LOCALBASE}/lib -lGL|g' \
|
2005-10-04 19:55:56 +02:00
|
|
|
${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's| install-dist_docDATA | |g' ${WRKSRC}/Makefile.in
|
2010-01-11 17:05:34 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|#plugindir=.*|plugindir="${LOCALBASE}/lib/OGRE"|; \
|
|
|
|
s|,Plugin_CgProgramManager||g' \
|
|
|
|
${WRKSRC}/ember.conf
|
2014-03-23 10:46:39 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|std::lround|lround|g' \
|
|
|
|
${WRKSRC}/src/components/ogre/terrain/TerrainPageGeometry.cpp \
|
|
|
|
${WRKSRC}/src/components/ogre/terrain/HeightMap.cpp
|
2005-10-04 19:55:56 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-01-19 11:09:14 +01:00
|
|
|
(cd ${WRKDIR}/ember-media-${PORTVERSION}/media && ${FIND} . -type f -print | \
|
2014-03-23 10:46:39 +01:00
|
|
|
${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DATADIR}/media)
|
|
|
|
${FIND} ${STAGEDIR}${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0755
|
|
|
|
${FIND} ${STAGEDIR}${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0644
|
2008-07-14 20:09:15 +02:00
|
|
|
|
2013-01-19 11:09:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-03-23 10:46:39 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for docfile in README.md COPYING AUTHORS ChangeLog
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}
|
2005-10-04 19:55:56 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2009-01-05 21:36:33 +01:00
|
|
|
.include <bsd.port.mk>
|