pkgsrc/x11/libxdg-basedir/Makefile
obache ebb3c5d3ee Change default directry to match pkgsrc style, PR#42575
* Use ${PREFIX}/share instead of /usr/local/share for XDG_DATA_DIRS
* Use ${PKG_SYSCONFDIR}/xdg instead of /etc/xdg for XDG_CONFIG_DIRS

While here, set TEST_TARGET=check and modify test patterns to adapt
above changes.

Bump PKGREVISION.
2011-02-10 13:11:39 +00:00

38 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2011/02/10 13:11:39 obache Exp $
#
DISTNAME= libxdg-basedir-1.1.1
PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://n.ethz.ch/student/nevillm/download/libxdg-basedir/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://n.ethz.ch/student/nevillm/download/libxdg-basedir/
COMMENT= XDG Base Directory library
LICENSE= mit
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= pkgconfig/libxdg-basedir.pc.in
SUBST_CLASSES+= pkglayout
SUBST_STAGE.pkglayout= pre-configure
SUBST_FILES.pkglayout= src/basedir.c
SUBST_SED.pkglayout= -e 's|DIR_SEPARATOR_STR "etc"|"${PKG_SYSCONFDIR}"|g'
SUBST_SED.pkglayout+= -e 's|DIR_SEPARATOR_STR "usr" DIR_SEPARATOR_STR "local"|"${PREFIX}"|g'
SUBST_SED.pkglayout+= -e '/DefaultDataDirectories1\[\]/,/DefaultRelativeCacheHome\[\]/ s|/|" DIR_SEPARATOR_STR "|g'
SUBST_SED.pkglayout+= -e '/DefaultDataDirectories1\[\]/,/DefaultRelativeCacheHome\[\]/ s|""||g'
SUBST_CLASSES+= testsdir
SUBST_STAGE.testsdir= post-build
SUBST_FILES.testsdir= tests/*
SUBST_SED.testsdir= -e 's|/etc/xdg|${PKG_SYSCONFDIR}/xdg|g'
SUBST_SED.testsdir+= -e 's|/usr/local/share|${PREFIX}/share|g'
TEST_TARGET= check
.include "../../mk/bsd.pkg.mk"