blob: 16ff0cdf57c73717f258214c78e8593a1aaa6d11 (
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
46
47
48
49
|
# Some knobs are defined with ?= and += to allow them
# being overriden by devel/appstream-qt slave port
PORTNAME?= AppStream
DISTVERSION= 1.0.5
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://www.freedesktop.org/software/${PORTNAME:tl}/releases/
MAINTAINER= desktop@FreeBSD.org
COMMENT?= Machine-readable software metadata for desktop environments
WWW= https://www.freedesktop.org/wiki/Distributions/AppStream/
LICENSE= GPLv2+ LGPL21+
LICENSE_COMB= multi
BUILD_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl \
gperf>0:devel/gperf \
itstool:textproc/itstool \
lmdb>0:databases/lmdb
LIB_DEPENDS?= libcurl.so:ftp/curl \
libstemmer.so:textproc/snowballstemmer \
libxmlb.so:textproc/libxmlb \
libyaml.so:textproc/libyaml \
libzstd.so:archivers/zstd
USES+= gettext gnome localbase:ldflags meson pkgconfig \
python:build tar:xz vala:build
USE_GNOME+= glib20 libxml2 introspection:build libxslt:build
USE_LDCONFIG= yes
MESON_ARGS+= -Dstemming=true \
-Dvapi=true \
-Dapidocs=false \
-Dinstall-docs=false \
-Dsystemd=false
post-patch:
${REINPLACE_CMD} \
-e 's|APPLICATIONS_DIR = "/usr/share/applications"|APPLICATIONS_DIR = "${LOCALBASE}/share/applications"|' \
-e 's|METAINFO_DIR = "/usr/share/metainfo"|METAINFO_DIR = "${LOCALBASE}/share/metainfo"|' \
-e 's|"/usr/share",|"${LOCALBASE}/share",|' \
${WRKSRC}/src/as-pool.c
${REINPLACE_CMD} \
-e 's|"/usr/share";|"${LOCALBASE}/share";|' \
${WRKSRC}/src/as-utils.c
.include <bsd.port.mk>
|