summaryrefslogtreecommitdiff
path: root/www/kiwix-tools/Makefile
blob: c19a7e52b6e5b0a952c40dff3d03c98fd1bff51f (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
# $FreeBSD$

PORTNAME=	kiwix-tools
DISTVERSION=	2.0.0
PORTREVISION=	1
CATEGORIES=	www

MAINTAINER=	me@int19h.org
COMMENT=	Command-line Kiwix tools

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

LIB_DEPENDS=	libkiwix.so:devel/kiwix-lib \
		libmicrohttpd.so:www/libmicrohttpd \
		libctpp2.so:textproc/ctpp2 \
		libzim.so:devel/libzim

USES=		compiler:c++11-lang meson pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	kiwix
USE_RC_SUBR=	kiwix_serve

CXXFLAGS_gcc=	-Wno-error=maybe-uninitialized
CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}

post-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/share/kiwix
	${INSTALL_DATA} files/library.xml ${STAGEDIR}${PREFIX}/share/kiwix

.include <bsd.port.mk>