aboutsummaryrefslogtreecommitdiffstats
path: root/games/el
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-11-28 03:14:09 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-11-28 03:14:09 +0800
commita1f214b82c68a4cd6857c8c1482ab366d6c31140 (patch)
tree88bebcb40c7ac457d9e6848caf76b7d0f3c30490 /games/el
parent201b7db606ec7fabf0b2b18aeec439e6b9ae0336 (diff)
downloadfreebsd-ports-gnome-a1f214b82c68a4cd6857c8c1482ab366d6c31140.tar.gz
freebsd-ports-gnome-a1f214b82c68a4cd6857c8c1482ab366d6c31140.tar.zst
freebsd-ports-gnome-a1f214b82c68a4cd6857c8c1482ab366d6c31140.zip
- Simplify plist handling
- Use BROKEN_sparc64 instead of conditional BROKEN PR: 195358 Submitted by: amdmi3 Approved by: bapt
Diffstat (limited to 'games/el')
-rw-r--r--games/el/Makefile18
1 files changed, 6 insertions, 12 deletions
diff --git a/games/el/Makefile b/games/el/Makefile
index fe60906c6ce4..f4f02ca67ed7 100644
--- a/games/el/Makefile
+++ b/games/el/Makefile
@@ -15,34 +15,28 @@ LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libcal3d.so:${PORTSDIR}/graphics/cal3d
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/el.ini:${PORTSDIR}/games/el-data
+BROKEN_sparc64= Does not build on sparc64
+
USES= compiler:c++11-lang gmake iconv openal:al,alut tar:xz
USE_GNOME= libxml2
USE_SDL= sdl net image
USE_GL= yes
+USE_XORG= x11
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lX11
ALL_TARGET= el.bin
MAKEFILE= Makefile.bsd
-PLIST= ${WRKDIR}/pkg-plist
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= Does not build on ${ARCH}
-.endif
+PLIST_FILES= bin/el \
+ %%DATADIR%%/el.bin
pre-install:
@${ECHO} "#!/bin/sh" > ${WRKDIR}/el
@${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/el
@${ECHO} "exec ${DATADIR}/el.bin" >> ${WRKDIR}/el
- @${ECHO} "bin/el" > ${PLIST}
- @${ECHO} "%%DATADIR%%/el.bin" >> ${PLIST}
- @${ECHO} "@dirrmtry %%DATADIR%%" >> ${PLIST}
-
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/el ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/el.bin ${STAGEDIR}${DATADIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>