1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/games/el/Makefile
Kevin Bowling da3162c7c9 graphics/mesa-libs: Bump reverse deps for libglvnd
Per discussion with bapt on helping pkg handle the changing of these
deps and avoiding impossible upgrade senarios.

PR:		246767
Reviewed by:	manu, bapt
Approved by:	x11
Differential Revision:	https://reviews.freebsd.org/D30824
2021-06-22 11:53:08 -07:00

52 lines
1.5 KiB
Makefile

# Created by: Janni
PORTNAME= el
PORTVERSION= 1.9.5.8
PORTREVISION= 1
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>