1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/games/el/Makefile
Jose Alonso Cardenas Marquez 3a06db9cf3 - Update to 1.9.5.8
- Add desktop file
- Add hicolor icon

Changelog at:	https://github.com/raduprv/Eternal-Lands/releases/tag/1.9.5.8
2020-05-11 18:19:16 +00:00

52 lines
1.5 KiB
Makefile

# Created by: Janni
# $FreeBSD$
PORTNAME= el
PORTVERSION= 1.9.5.8
PORTEPOCH= 1
CATEGORIES= games
MAINTAINER= acm@FreeBSD.org
COMMENT= Eternal Lands is a free 3D MMORPG
BROKEN_sparc64= fails to build on sparc64
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
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>