2005-01-29 18:13:14 +00:00
|
|
|
# New ports collection makefile for: el
|
|
|
|
# Date created: 25 January 2005
|
|
|
|
# Whom: Janni
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= el
|
2006-08-20 14:43:55 +00:00
|
|
|
PORTVERSION= 130
|
2005-01-29 18:13:14 +00:00
|
|
|
CATEGORIES= games
|
2006-08-20 14:43:55 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= acm/${PORTNAME}
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2005-01-29 18:13:14 +00:00
|
|
|
|
2006-08-20 14:43:55 +00:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2005-01-29 18:13:14 +00:00
|
|
|
COMMENT= Eternal Lands is a free 3D MMORPG
|
|
|
|
|
2006-08-20 14:43:55 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
|
|
openal.0:${PORTSDIR}/audio/openal \
|
2005-12-22 13:09:29 +00:00
|
|
|
vorbis.3:${PORTSDIR}/audio/libvorbis \
|
2006-08-20 14:43:55 +00:00
|
|
|
cal3d.12:${PORTSDIR}/graphics/cal3d \
|
2006-06-08 16:07:12 +00:00
|
|
|
alut.1:${PORTSDIR}/audio/freealut
|
2006-08-20 14:43:55 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/el.ini:${PORTSDIR}/games/el-data
|
2005-01-29 18:13:14 +00:00
|
|
|
|
2006-08-20 14:43:55 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2005-01-29 18:13:14 +00:00
|
|
|
USE_GNOME= libxml2
|
|
|
|
USE_SDL= sdl net
|
|
|
|
|
2006-08-20 14:43:55 +00:00
|
|
|
ALL_TARGET= el.x86
|
|
|
|
MAKEFILE= Makefile.bsdg
|
2005-01-29 18:13:14 +00:00
|
|
|
|
2005-12-22 13:09:29 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == amd64
|
|
|
|
CFLAGS+= -DX86_64
|
|
|
|
.endif
|
|
|
|
|
2006-01-06 09:17:54 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
2006-08-20 14:43:55 +00:00
|
|
|
BROKEN= does not compile
|
2006-01-06 09:17:54 +00:00
|
|
|
.endif
|
|
|
|
|
2006-01-20 00:08:22 +00:00
|
|
|
.if ${ARCH} == "sparc64"
|
2006-08-20 14:43:55 +00:00
|
|
|
BROKEN= Does not compile on sparc64
|
2006-01-20 00:08:22 +00:00
|
|
|
.endif
|
|
|
|
|
2006-08-20 14:43:55 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && \
|
|
|
|
${FIND} * -type f -exec ${REINPLACE_CMD} -i "" -e 's|malloc.h|stdlib.h|g' "{}" \;
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${ECHO} "bin/el" > ${PLIST}
|
|
|
|
@${ECHO} "%%DATADIR%%/el.x86" >> ${PLIST}
|
|
|
|
@${ECHO} "@dirrmtry %%DATADIR%%" >> ${PLIST}
|
|
|
|
|
|
|
|
pre-install:
|
2005-01-29 18:13:14 +00:00
|
|
|
${ECHO} "#!/bin/sh" > ${WRKDIR}/el
|
2006-08-20 14:43:55 +00:00
|
|
|
${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/el
|
|
|
|
${ECHO} "exec ${DATADIR}/el.x86" >> ${WRKDIR}/el
|
2005-01-29 18:13:14 +00:00
|
|
|
|
2006-08-20 14:43:55 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/el ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/el.x86 ${DATADIR}
|
2005-01-29 18:13:14 +00:00
|
|
|
|
2005-12-22 13:09:29 +00:00
|
|
|
.include <bsd.port.post.mk>
|