Files

94 lines
2.5 KiB
Makefile
Raw Permalink Normal View History

# needs rust-only librsvg
ONLY_FOR_ARCHS= ${RUST_ARCHS}
# XXX if we start providing OpenBSD appstream data files into
2023-09-16 09:24:32 +00:00
# PREFIX/share/app-info, turn the @exec into a @tag (and add to portcheck);
# for an example, see:
# https://gitlab.archlinux.org/archlinux/packaging/packages/archlinux-appstream-data/-/blob/main/PKGBUILD
2023-11-12 10:16:11 +00:00
COMMENT-main= access to machine-readable software metadata
2025-10-17 06:27:40 +00:00
COMMENT-qt6= Qt6 interface for AppStream
2026-01-29 09:51:20 +00:00
V= 1.1.2
DISTNAME= AppStream-${V}
EXTRACT_SUFX= .tar.xz
PKGNAME-main= ${DISTNAME:L}
2023-11-12 10:16:11 +00:00
PKGNAME-qt6= appstream-qt6-${V}
2026-01-29 09:51:20 +00:00
SHARED_LIBS += appstream 1.2 # 1.1.2
SHARED_LIBS += appstream-compose 1.1 # 1.1.2
SHARED_LIBS += AppStreamQt 1.1 # 1.1.2
CATEGORIES= devel
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
HOMEPAGE= https://www.freedesktop.org/wiki/Distributions/AppStream/
# LGPLv2.1
PERMIT_PACKAGE= Yes
2025-09-17 14:06:09 +00:00
WANTLIB-main += c cairo curl fontconfig freetype fyaml gdk_pixbuf-2.0
WANTLIB-main += gio-2.0 glib-2.0 gobject-2.0 intl m pango-1.0 rsvg-2
WANTLIB-main += stemmer xml2 xmlb zstd
2023-11-12 10:16:11 +00:00
WANTLIB-qt6 += ${COMPILER_LIBCXX} Qt6Core appstream gio-2.0 glib-2.0
WANTLIB-qt6 += gobject-2.0
2023-09-21 09:49:47 +00:00
SITES= https://www.freedesktop.org/software/appstream/releases/
2023-11-12 10:16:11 +00:00
MULTI_PACKAGES= -main -qt6
MODULES= devel/meson \
2023-11-12 10:16:11 +00:00
x11/qt6
BUILD_DEPENDS= devel/gettext,-tools \
devel/gobject-introspection \
2023-09-18 07:25:08 +00:00
devel/gperf \
lang/vala \
2026-01-29 09:51:20 +00:00
shells/bash-completion \
2023-11-12 21:19:05 +00:00
textproc/gi-docgen \
2023-09-17 06:03:35 +00:00
textproc/gtk-doc \
textproc/itstool
2025-09-17 14:06:09 +00:00
LIB_DEPENDS-main= net/curl \
textproc/libfyaml \
textproc/libstemmer \
textproc/libxml \
textproc/libxmlb \
x11/gnome/librsvg
2023-11-12 10:16:11 +00:00
LIB_DEPENDS-qt6= ${BASE_PKGPATH},-main \
${MODQT6_LIB_DEPENDS}
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ARGS= -Dsystemd=false \
-Dqt=true \
-Dvapi=true \
-Dcompose=true
# /usr/include/sys/sysctl.h:504:2: error: unknown type name 'u_long'
# src/as-system-info.c:466:23: error: use of undeclared identifier 'DT_LNK'
# src/as-system-info.c:466:23: error: use of undeclared identifier 'DT_DIR'
CFLAGS += -D_BSD_SOURCE
# needed for `make test'
PORTHOME= ${WRKDIST}
pre-configure:
sed -i \
-e "s,/usr/share,${LOCALBASE}/share,g" \
-e "s,/var/lib,/var/db,g" \
${WRKSRC}/compose/asc-hint-tags.c \
${WRKSRC}/compose/asc-utils-fonts.c \
${WRKSRC}/src/as-distro-extras.c \
${WRKSRC}/src/as-pool.c \
${WRKSRC}/src/as-utils.c \
${WRKSRC}/src/as-utils.h \
${WRKSRC}/src/as-validator-issue-tag.h
sed -i "s,/usr,${LOCALBASE},g" ${WRKSRC}/tools/appstream-compose.c
.include <bsd.port.mk>