ports/misc/shared-mime-info/Makefile

39 lines
868 B
Makefile
Raw Normal View History

2023-08-16 22:26:55 +00:00
COMMENT= shared mime database for desktops
2023-10-12 04:10:54 +00:00
V= 2.3
2023-08-16 22:26:55 +00:00
DISTNAME= shared-mime-info-${V}
CATEGORIES= misc
HOMEPAGE= http://www.freedesktop.org/wiki/Software/shared-mime-info
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE= Yes
2023-10-12 04:10:54 +00:00
# uses pledge() and unveil()
WANTLIB += ${COMPILER_LIBCXX} c glib-2.0 xml2
2023-08-16 22:26:55 +00:00
2023-09-27 17:15:09 +00:00
SITES= https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${V}/
2023-08-16 22:26:55 +00:00
MODULES= devel/meson \
lang/python
MODPY_RUNDEP= No
BUILD_DEPENDS= devel/gettext,-tools \
textproc/xmlto
LIB_DEPENDS= devel/glib2 \
textproc/libxml
# XXX needs https://gitlab.freedesktop.org/xdg/xdgmime sources for tests
CONFIGURE_ARGS += -Dxdgmime-path=${WRKSRC}/xdgmime
pre-configure:
2023-10-12 04:10:54 +00:00
sed -i 's|/usr/local|${PREFIX}|g' ${WRKSRC}/src/update-mime-database.cpp
2023-08-16 22:26:55 +00:00
${SUBST_CMD} ${WRKSRC}/data/freedesktop.org.xml.in
.include <bsd.port.mk>