summaryrefslogtreecommitdiff
path: root/games/manaplus/Makefile
blob: ddc554b67fbec9fdd3790eef763f47ff6e81483f (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
# Created by: Tobias Gion
# $FreeBSD$

PORTNAME=	manaplus
PORTVERSION=	1.7.8.5
CATEGORIES=	games
MASTER_SITES=	http://download.evolonline.org/manaplus/download/${PORTVERSION}/

MAINTAINER=	monwarez@mailoo.org
COMMENT=	Free open source 2D MMORPG client for athena and evol servers

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_powerpc64=	fails to install: zip.cpp: 'bswap_16' was not declared in this scope

LIB_DEPENDS=	libxml2.so:textproc/libxml2 \
		libpng.so:graphics/png \
		libcurl.so:ftp/curl

USES=		autoreconf pkgconfig:build tar:xz
USE_XORG=	x11
USE_SDL=	sdl2 gfx2 image2 mixer2 net2 ttf2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-sdl2 \
		--without-internalsdlgfx

OPTIONS_DEFINE=		OPENGL NLS
OPTIONS_DEFAULT=	OPENGL
OPTIONS_SUB=		yes

OPENGL_CONFIGURE_WITH=	opengl
OPENGL_USE=		GL=gl

NLS_USES=		gettext
NLS_USES_OFF=		gettext-tools
NLS_CONFIGURE_ON=	--with-libintl-prefix=${LOCALBASE}
NLS_LDFLAGS=		-L${LOCALBASE}/lib -lintl
NLS_CONFIGURE_ENABLE=	nls

.include <bsd.port.mk>