1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/games/enigma/Makefile
Dmitry Marakasov ed1867ca18 - Fix build
- Specify shlib version for xerces, to distinguish from xerces-c3
2014-05-27 23:03:51 +00:00

51 lines
1.3 KiB
Makefile

# Created by: Edwin Groothuis
# $FreeBSD$
PORTNAME= enigma
PORTVERSION= 1.01
PORTREVISION= 11
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.27:${PORTSDIR}/textproc/xerces-c2 \
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${LOCALBASE}/include/libpng15 -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>