ports/misc/shared-mime-info/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

2023-08-16 22:26:55 +00:00
COMMENT= shared mime database for desktops
V= 2.4
2023-08-16 22:26:55 +00:00
DISTNAME= shared-mime-info-${V}
REVISION= 0
2023-08-16 22:26:55 +00:00
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
# C++17
COMPILER= base-clang ports-gcc
# need to add this for gcc
# revisit when gcc drops it
EXTRA_ports-gcc= -lstdc++fs
LDFLAGS+= ${EXTRA_${CHOSEN_COMPILER}}
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
CONFIGURE_ENV += LDFLAGS="${LDFLAGS}"
2023-08-16 22:26:55 +00:00
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>