aboutsummaryrefslogtreecommitdiff
path: root/devel/kiwix-lib/Makefile
blob: aa7388423df45214b31d060586dd99064f44e445 (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
PORTNAME=	kiwix-lib
DISTVERSION=	9.4.1
CATEGORIES=	devel

MAINTAINER=	me@int19h.org
COMMENT=	Common code base for all Kiwix ports

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

BUILD_DEPENDS=	bash:shells/bash
LIB_DEPENDS=	libzim.so:devel/libzim \
		libpugixml.so:textproc/pugixml \
		libaria2.so:www/aria2 \
		libicui18n.so:devel/icu \
		libicuuc.so:devel/icu \
		libxapian.so:databases/xapian-core \
		libctpp2.so:textproc/ctpp2 \
		libcurl.so:ftp/curl \
		libmicrohttpd.so:www/libmicrohttpd

USES=		compiler:c++11-lang meson pkgconfig python:3.6+ shebangfix
USE_LDCONFIG=	yes
USE_GITHUB=	yes

GH_ACCOUNT=	kiwix
GH_TUPLE=	kiwix:${PORTNAME}:${PORTVERSION}:DEFAULT \
		kainjow:Mustache:a7eebc9:mustache

MESON_ARGS=	-Dctpp2-install-prefix=${LOCALBASE}
CPPFLAGS+=	-I${WRKSRC_mustache}
CXXFLAGS+=	-I${WRKSRC_mustache}
LDFLAGS+=	-lz
SHEBANG_FILES=	scripts/kiwix-compile-resources

PLIST_SUB=	PORTVERSION=${PORTVERSION} PORTMAJ=${PORTVERSION:C/\..*//}

.include <bsd.port.mk>