aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-21 17:36:17 +0800
committermarino <marino@FreeBSD.org>2014-08-21 17:36:17 +0800
commit3315964edc1fa9b832ae33d7589752906b6ac30e (patch)
tree5623331cb0cdc6920a000566422b7a272150f512 /games
parenta688f3712de96ea3b26e994151603ded7141f190 (diff)
downloadfreebsd-ports-gnome-3315964edc1fa9b832ae33d7589752906b6ac30e.tar.gz
freebsd-ports-gnome-3315964edc1fa9b832ae33d7589752906b6ac30e.tar.zst
freebsd-ports-gnome-3315964edc1fa9b832ae33d7589752906b6ac30e.zip
Stage games/adonthell and unbreak on FreeBSD 10+
PR: 192793 Submitted by: Ports Fury
Diffstat (limited to 'games')
-rw-r--r--games/adonthell/Makefile39
1 files changed, 20 insertions, 19 deletions
diff --git a/games/adonthell/Makefile b/games/adonthell/Makefile
index b920cca192db..79d666d52eb0 100644
--- a/games/adonthell/Makefile
+++ b/games/adonthell/Makefile
@@ -4,7 +4,7 @@
PORTNAME= adonthell
PORTVERSION= 0.3.5
-PORTREVISION= 10
+PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= SAVANNAH
DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX} \
@@ -19,42 +19,43 @@ LICENSE_DISTFILES= ${DISTFILES}
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
libfreetype.so:${PORTSDIR}/print/freetype2
+USES= gettext gmake python
USE_SDL= mixer ttf sdl
-USE_PYTHON= yes
-USES= gettext gmake
+USE_GCC= any
GNU_CONFIGURE= yes
CONFIGURE_ENV= PYPACKAGE="${PYTHON_CMD}" ac_cv_path_P_SWIG=no
CONFIGURE_ARGS= --disable-py-debug
-PLIST_SUB= VERSION="${PORTVERSION:R}"
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+PLIST_SUB= VERSION="${PORTVERSION:R}"
-WEDGE_VERSION= 0.3.5
+BROKEN_sparc64= Does not build on sparc64
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+DESKTOP_ENTRIES="Adonthell" "" "" "adonthell" "" ""
-.if ${ARCH} == "sparc64"
-BROKEN= Does not build on sparc64
-.endif
+WEDGE_VERSION= 0.3.5
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e \
's|-g -Wall|$$CFLAGS -Wall|g ; \
- s|-lpthread|${PTHREAD_LIBS}|g' configure
+ s|-lpthread|-pthread|g' configure
+ @cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \
+ 's|@adonthell_binary@|${PREFIX}/bin/adonthell|' Makefile.in
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \
- 's/test $$adonthell_major_ver -eq 0 .*/true ;/' configure
+ 's|test $$adonthell_major_ver -eq 0 .*|true ;|' configure
@cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${REINPLACE_CMD} -e \
- 's/^[[:space:]]*_//' scripts/modules/player_text.py
+ 's|^[[:space:]]*_||' scripts/modules/player_text.py
post-install:
cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} \
&& ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS} \
- --with-adonthell-binary=${PREFIX}/bin/${PORTNAME} \
+ --with-adonthell-binary=${STAGEDIR}${PREFIX}/bin/adonthell \
${CONFIGURE_TARGET}
- cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${MAKE_CMD}
- cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${MAKE_CMD} install
+ cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${SETENV} HOME=${WRKDIR} \
+ ${MAKE_CMD}
+ cd ${WRKDIR}/wastesedge-${WEDGE_VERSION} && ${SETENV} HOME=${WRKDIR} \
+ ${MAKE_CMD} ${MAKE_ARGS} ${INSTALL_TARGET}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>