1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/games/el/Makefile
Charlie Li d63665f7cd
textproc/libxml2: bump all LIB_DEPENDS consumers
This is a separate commit to facilitate easier cherry-picking for
quarterly.

PR: 262853, 262940, 262877, 263126
Approved by: fluffy (mentor)
2022-04-10 15:11:41 -04:00

53 lines
1.6 KiB
Makefile

# Created by: Janni
PORTNAME= el
DISTVERSION= 1.9.5.9-1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= games
MAINTAINER= acm@FreeBSD.org
COMMENT= Eternal Lands is a free 3D MMORPG
BROKEN_sparc64= fails to build on sparc64
BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS= libpng.so:graphics/png \
libvorbis.so:audio/libvorbis \
libcal3d.so:graphics/cal3d
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/el.ini:games/el-data
USES= compiler:c++11-lang desktop-file-utils gl gmake gnome iconv \
openal:al,alut sdl xorg
USE_GNOME= libxml2
USE_SDL= sdl2 net2 image2 ttf2
USE_GL= gl glu
USE_XORG= x11
USE_GITHUB= yes
GH_ACCOUNT= raduprv
GH_PROJECT= Eternal-Lands
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lX11
LDFLAGS_i386= -Wl,-znotext
ALL_TARGET= el.bin
MAKEFILE= Makefile.bsd
PLIST_FILES= bin/eternallands \
%%DATADIR%%/el.bin \
share/applications/eternallands.desktop \
share/icons/hicolor/48x48/apps/eternallands.png
pre-install:
@${ECHO} "#!/bin/sh" > ${WRKDIR}/eternallands
@${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/eternallands
@${ECHO} "exec ${DATADIR}/el.bin" >> ${WRKDIR}/eternallands
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/eternallands ${STAGEDIR}${PREFIX}/bin/eternallands
${INSTALL_PROGRAM} ${WRKSRC}/el.bin ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps
${INSTALL_DATA} ${WRKSRC}/pkgfiles/eternallands.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/eternallands.png
${INSTALL_DATA} ${WRKSRC}/pkgfiles/eternallands.desktop ${STAGEDIR}${PREFIX}/share/applications/eternallands.desktop
.include <bsd.port.mk>