aboutsummaryrefslogtreecommitdiffstats
path: root/games/el/Makefile
blob: 0618104ddac46ffaa8d68947422932fa4e2d63fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# New ports collection makefile for:   el
# Date created:        25 January 2005
# Whom:                Janni
#
# $FreeBSD$
#

PORTNAME=   el
PORTVERSION=    140
CATEGORIES= games
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE} \
        ${MASTER_SITE_LOCAL:S,$,acm/${PORTNAME}/,}
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= acm@FreeBSD.org
COMMENT=    Eternal Lands is a free 3D MMORPG

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        openal.0:${PORTSDIR}/audio/openal \
        vorbis.4:${PORTSDIR}/audio/libvorbis \
        cal3d.12:${PORTSDIR}/graphics/cal3d \
        alut.1:${PORTSDIR}/audio/freealut
RUN_DEPENDS=    ${LOCALBASE}/share/${PORTNAME}/el.ini:${PORTSDIR}/games/el-data

PROJECTHOST=    bsdistfiles
USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GNOME=  libxml2
USE_SDL=    sdl net image
USE_GL=     yes
USE_XLIB=   yes

ALL_TARGET= el.x86
MAKEFILE=   Makefile.bsdg
PLIST=      ${WRKDIR}/pkg-plist

.include <bsd.port.pre.mk>

.if ${ARCH} == amd64
CFLAGS+=    -DX86_64
.endif

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

post-extract:
    @cd ${WRKSRC} && \
        ${FIND} * -type f -exec ${REINPLACE_CMD} -i "" -e 's|malloc.h|stdlib.h|g' "{}" \;

pre-install:
    @${ECHO} "#!/bin/sh" > ${WRKDIR}/el
    @${ECHO} "cd ${DATADIR} || exit 1 " >> ${WRKDIR}/el
    @${ECHO} "exec ${DATADIR}/el.x86" >> ${WRKDIR}/el

    @${ECHO} "bin/el" > ${PLIST}
    @${ECHO} "%%DATADIR%%/el.x86" >> ${PLIST}
    @${ECHO} "@dirrmtry %%DATADIR%%" >> ${PLIST}

do-install:
    @${MKDIR} ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKDIR}/el ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/el.x86 ${DATADIR}

.include <bsd.port.post.mk>