aboutsummaryrefslogtreecommitdiffstats
path: root/games/enigma/Makefile
blob: 5c65a5be51d070dac13c6d8b2bf290e7cac7286b (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
# Created by: Edwin Groothuis
# $FreeBSD$

PORTNAME=   enigma
PORTVERSION=    1.01
PORTREVISION=   15
CATEGORIES= games
MASTER_SITES=   BERLIOS/enigma-game
DISTNAME=   ${PORTNAME}-${PORTVERSION}-64bit

MAINTAINER= amdmi3@FreeBSD.org
COMMENT=    Enigma is a reimplementation of Oxyd, a puzzle game

LIB_DEPENDS=    libxerces-c.so.3:${PORTSDIR}/textproc/xerces-c3 \
        libpng.so:${PORTSDIR}/graphics/png \
        libtolua++-${LUA_VER}.so:${PORTSDIR}/lang/tolua++
BUILD_DEPENDS=  ${LOCALBASE}/lib/libenet.a:${PORTSDIR}/net/enet

USES=       gettext gmake lua:51
USE_SDL=    image mixer sdl ttf
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-cxxlua \
        --with-libintl-prefix="${LOCALBASE}"
CPPFLAGS+=  -I${LOCALBASE}/include -I${LUA_INCDIR}
LDFLAGS+=   -L${LOCALBASE}/lib -L${LUA_LIBDIR}

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

SUB_FILES=  pkg-message

PORTDOCS=   *
PORTDATA=   *

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes

NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=nls

post-extract:
    @${RM} -rf ${WRKSRC}/lib-src/lua \
        ${WRKSRC}/lib-src/enet ${WRKSRC}/tools ${WRKSRC}/intl

post-patch:
    @${REINPLACE_CMD} -e '/Exec=/s,enigma,${PREFIX}/bin/enigma,g' \
        ${WRKSRC}/etc/enigma.desktop
    @${REINPLACE_CMD} -e 's|-llua|&-${LUA_VER}|; s|-ltolua++|&-${LUA_VER}|' \
        ${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>