aboutsummaryrefslogtreecommitdiff
path: root/games/ember/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/ember/Makefile')
-rw-r--r--games/ember/Makefile34
1 files changed, 11 insertions, 23 deletions
diff --git a/games/ember/Makefile b/games/ember/Makefile
index 3cb1bf1f3d14..c028048757a9 100644
--- a/games/ember/Makefile
+++ b/games/ember/Makefile
@@ -6,12 +6,13 @@
#
PORTNAME= ember
-PORTVERSION= 0.4.1
-PORTREVISION= 3
+PORTVERSION= 0.4.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://amber.worldforge.org/ember/releases/stable/
MASTER_SITE_SUBDIR=worldforge
+DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} \
+ ${PORTNAME}-media-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= oliver@FreeBSD.org
COMMENT= Ember is a WorldForge 3d client using the OGRE 3d library
@@ -28,11 +29,9 @@ CONFIGURE_ARGS= --with-png-prefix=${LOCALBASE} --enable-binreloc --program-trans
USE_SDL= sdl
GNU_CONFIGURE= YES
INSTALLS_SHLIB= YES
-USE_GCC= 3.4
USE_X_PREFIX= YES
USE_GNOME= gnomehack
USE_BZIP2= YES
-USE_DOS2UNIX= YES
CPPFLAGS= -DBR_NO_MACROS
.include <bsd.port.pre.mk>
@@ -45,18 +44,11 @@ post-patch:
@${REINPLACE_CMD} -e '\
s|sdl-config|${SDL_CONFIG}|g; \
s|"-lIL|"-L${LOCALBASE}/lib -lIL|g; \
- s|CEGUI-OGRE_\([A-Z]*=\)|CEGUI_OGRE_\1|g; \
- s|\$$CEGUI-OGRE_\([A-Z]*\)|\$$CEGUI_OGRE_\1|g' \
+ s|-lGL|-L${X11BASE}/lib -lGL|g' \
${WRKSRC}/configure
- @${REINPLACE_CMD} -e '\
- s|^CFLAGS =.*|& $${SDL_CFLAGS} -I${X11BASE}/include|g' \
+ @${REINPLACE_CMD} -e 's|^CFLAGS =.*|& $${SDL_CFLAGS} -I${X11BASE}/include|g' \
${WRKSRC}/src/framework/Makefile.in
- @${REINPLACE_CMD} -e '\
- s|<SDL/|<|g; \
- s|libSDL_image-1\.2\.so\.0|libSDL_image\.so|g; \
- s|"~/.ember"|(std::string(getenv("HOME")) + "/.ember/").c_str()|g' \
- ${WRKSRC}/configure \
- ${WRKSRC}/src/components/ogre/EmberOgre.cpp \
+ @${REINPLACE_CMD} -e 's|<SDL/|<|g' \
${WRKSRC}/src/components/ogre/OgreSetup.cpp \
${WRKSRC}/src/framework/scrap.c
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
@@ -66,19 +58,15 @@ post-patch:
/Plugin=Plugin_CgProgramManager.so/d; \
s|/usr/lib/OGRE|${X11BASE}/lib/OGRE|' \
${WRKSRC}/src/components/ogre/plugins.cfg
- @${REINPLACE_CMD} -e 's|/altypes\.h|/al\.h|' \
- ${WRKSRC}/src/services/sound/SoundService.h
@${REINPLACE_CMD} -e 's|@LDFLAGS@|& -lopenal -lalut|' \
${WRKSRC}/src/components/ogre/Makefile.in
- @${REINPLACE_CMD} '/^[ ]*\*[ ]/d' ${WRKSRC}/src/components/ogre/ogreopcode/opcode/*.cpp ${WRKSRC}/src/components/ogre/ogreopcode/opcode/*.h
- @${REINPLACE_CMD} -e 's|^[ ]*//.*||g' ${WRKSRC}/src/components/ogre/ogreopcode/opcode/*.cpp ${WRKSRC}/src/components/ogre/ogreopcode/opcode/*.h
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's|lrintf|(long int)rintf|g' \
- ${WRKSRC}/src/components/ogre/environment/meshtree/TStem.cpp \
- ${WRKSRC}/src/components/ogre/EmberEntityFactory.cpp
-.endif
post-install:
+ (cd ${WRKDIR}/${PORTNAME}-media-${PORTVERSION} && ${FIND} . -type f -print | \
+ ${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${DATADIR})
+ ${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0755
+ ${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0644
+
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for docfile in README COPYING AUTHORS ChangeLog TODO