summaryrefslogtreecommitdiff
path: root/games/manaplus/Makefile
blob: 06672a153507da7c34f0af779eec6b02c257b95b (plain)
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
# $NetBSD: Makefile,v 1.18 2021/12/08 16:04:37 adam Exp $

DISTNAME=	manaplus-2.1.3.17
PKGREVISION=	3
CATEGORIES=	games
MASTER_SITES=	http://download.evolonline.org/manaplus/download/${PKGVERSION_NOREV}/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://manaplus.org/
COMMENT=	2D MMORPG client for The Mana World, Evol Online, and similar servers
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
USE_TOOLS+=	pkg-config
USE_TOOLS+=	msgfmt msgmerge xgettext
USE_LANGUAGES=	c c++

LDFLAGS.SunOS+=	${BUILDLINK_LDADD.gettext}

SUBST_CLASSES+=		eq
SUBST_STAGE.eq=		pre-configure
SUBST_MESSAGE.eq=	Fixing non-portable test operator usage
SUBST_FILES.eq+=	configure
SUBST_SED.eq+=		-e 's|" == "|" = "|g'
SUBST_SED.eq+=		-e 's|" == true|" = true|g'

CONFIGURE_ARGS+=	--with-sdl2

.include "../../audio/SDL2_mixer/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/SDL2_ttf/buildlink3.mk"
.include "../../graphics/SDL2_image/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../net/SDL2_net/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"