pkgsrc/misc/xdg-utils/Makefile
riastradh 8560be0ed3 Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.
Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
2023-06-06 12:40:15 +00:00

45 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2023/06/06 12:41:58 riastradh Exp $
DISTNAME= xdg-utils-1.1.3
PKGREVISION= 3
CATEGORIES= misc
MASTER_SITES= https://portland.freedesktop.org/download/
MAINTAINER= leot@NetBSD.org
HOMEPAGE= https://www.freedesktop.org/wiki/Software/xdg-utils/
COMMENT= Tools to assist applications with various desktop integration tasks
LICENSE= mit
TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
TOOL_DEPENDS+= w3m-[0-9]*:../../www/w3m
GNU_CONFIGURE= yes
USE_LANGUAGES= # none
USE_TOOLS+= bash:run gmake ggrep:run gsed:run
SUBST_CLASSES+= gsed
SUBST_FILES.gsed= scripts/xdg-*.in
SUBST_STAGE.gsed= pre-configure
SUBST_MESSAGE.gsed= Use GNU grep/sed instead of grep/sed.
SUBST_SED.gsed+= -e "s, sed , ${TOOLS_PATH.gsed} ,g"
SUBST_SED.gsed+= -e "s, grep , ${TOOLS_PATH.ggrep} ,g"
SUBST_CLASSES+= paths
SUBST_FILES.paths= scripts/xdg-*.in
SUBST_STAGE.paths= pre-configure
SUBST_MESSAGE.paths= Avoid hardcoded paths.
SUBST_SED.paths+= -e "s,/usr/local,${PREFIX},g"
SUBST_SED.paths+= -e "s,/etc,${PKG_SYSCONFDIR},g"
SUBST_CLASSES+= man
SUBST_FILES.man= scripts/man/xdg-*.1
SUBST_STAGE.man= post-build
SUBST_MESSAGE.man= Clean up manpages.
SUBST_SED.man+= -e 's,^[ ]*,,'
SUBST_SED.man+= -e '/^$$/d'
# "foo > /dev/null 2> /dev/null" gives "foo: not found" with NetBSD's sh
REPLACE_BASH+= scripts/xdg-*
.include "../../mk/bsd.pkg.mk"