31 lines
1002 B
Makefile
31 lines
1002 B
Makefile
PORTNAME= libzim
|
|
DISTVERSION= 9.2.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://download.openzim.org/release/libzim/
|
|
|
|
MAINTAINER= olce.freebsd.ports@certner.fr
|
|
COMMENT= Reference implementation of the ZIM specification
|
|
WWW= https://wiki.openzim.org/wiki/Libzim
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
# 'googletest' dependency is only necessary for Meson's 'test' target, but it
|
|
# must be present as soon as configure time.
|
|
BUILD_DEPENDS= googletest>0:devel/googletest
|
|
LIB_DEPENDS= libicui18n.so:devel/icu \
|
|
libxapian.so:databases/xapian-core14 \
|
|
libzstd.so:archivers/zstd
|
|
|
|
# Python is necessary for the build against Xapian and for Meson's 'test' target
|
|
# as well, for which it must be present as soon as configure time.
|
|
USES= compiler:c++17-lang meson pkgconfig python:build tar:xz
|
|
USE_LDCONFIG= yes
|
|
|
|
BINARY_ALIAS= python3=${PYTHON_CMD:T} python3-config=${PYTHON_CMD:T}-config
|
|
|
|
PLIST_SUB= DISTVERSION=${DISTVERSION} DISTMAJ=${DISTVERSION:C/\..*//}
|
|
|
|
.include <bsd.port.mk>
|