aboutsummaryrefslogtreecommitdiff
path: root/devel/zziplib/Makefile
blob: eeb80134548412f282562cc789c3a49b3ca66a8b (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
42
43
44
45
# Created by: George Reid <greid@ukug.uk.freebsd.org>

PORTNAME=	zziplib
PORTVERSION=	0.13.72
DISTVERSIONPREFIX=	v
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Library to provide transparent read access to zipped files

LICENSE=	LGPL21 MPL11
LICENSE_COMB=	dual
LICENSE_FILE_LGPL21=	${WRKSRC}/COPYING.LIB
LICENSE_FILE_MPL11=	${WRKSRC}/docs/COPYING.MPL

BUILD_DEPENDS=	bash:shells/bash

USES=		cmake compiler:c11

USE_GITHUB=	yes
GH_ACCOUNT=	gdraheim

CMAKE_ON=	BUILD_SHARED_LIBS ZZIP_LIBTOOL ZZIP_PKGCONFIG ZZIPBINS ZZIPFSEEKO ZZIPMMAPPED ZZIPWRAP
CMAKE_OFF=	BUILD_STATIC_LIBS
TEST_TARGET=	check
USE_LDCONFIG=	yes

PORTSCOUT=	limit:^0\.

OPTIONS_DEFINE=	MANPAGES SDL TEST
OPTIONS_DEFAULT=MANPAGES
OPTIONS_SUB=	yes

MANPAGES_CMAKE_BOOL=	ZZIPDOCS
MANPAGES_USES=		python:3.6+,build shebangfix
MANPAGES_VARS=		SHEBANG_GLOB=*.py
SDL_CMAKE_BOOL=		ZZIPSDL
SDL_USE=		SDL=sdl2
SDL_USES=		localbase:ldflags pkgconfig sdl
TEST_BUILD_DEPENDS=	zip:archivers/zip
TEST_CMAKE_BOOL=	BUILD_TESTS ZZIPTEST
TEST_CMAKE_BOOL_OFF=	ZZIP_TESTCVE

.include <bsd.port.mk>