freebsd-ports/devel/appstream-qt/Makefile
Gleb Popov 05305e7571 devel/appstream: Point to /usr/local for metainfo.
AppStream is hardcoded to look for package metainto in /usr/share. With this
patch the "appstreamcli search ..." command starts showing proper results.

Sponsored by:	Serenity Cybersecurity, LLC
2023-02-13 16:12:43 +03:00

23 lines
553 B
Makefile

PORTREVISION= 0
PKGNAMESUFFIX= Qt
COMMENT?= Qt bindings to AppStream
LIB_DEPENDS= libappstream.so:devel/appstream
USES= qt:5
USE_QT= core buildtools:build qmake:build testlib:build
MESON_ARGS= -Dqt=true
MASTERDIR= ${.CURDIR}/../appstream
PLIST= ${.CURDIR}/pkg-plist
post-install:
# remove files belonging to the master port
${XARGS} -L 1 -I % ${RM} -rf ${STAGEDIR}${PREFIX}/% < ${MASTERDIR}/pkg-plist
${FIND} ${STAGEDIR}${PREFIX} -empty -delete
${RM} -rf ${STAGEDIR}${PREFIX}/etc ${STAGEDIR}${PREFIX}/man
.include "${MASTERDIR}/Makefile"