Files
ports/devel/appstream/Makefile
T
Gleb Popov 205c8a2db8 devel/appstream: Fix dependency on lmdb0
PR:		296530 296560
2026-07-06 21:37:14 +03:00

51 lines
1.5 KiB
Makefile

# Some knobs are defined with ?= and += to allow them
# being overriden by devel/appstream-qt slave port
PORTNAME?= AppStream
DISTVERSION= 1.1.2
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= bash-completion>0:shells/bash-completion \
docbook-xsl>=0:textproc/docbook-xsl \
gperf>0:devel/gperf \
itstool:textproc/itstool \
lmdb0>0:databases/lmdb0
LIB_DEPENDS?= libcurl.so:ftp/curl \
libstemmer.so:textproc/snowballstemmer \
libxmlb.so:textproc/libxmlb \
libfyaml.so:textproc/libfyaml \
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>