[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / x11 / libxdg-basedir

File: [cvs.NetBSD.org] / pkgsrc / x11 / libxdg-basedir / Makefile (download)

Revision 1.4, Mon Oct 29 05:06:38 2012 UTC (6 years, 6 months ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.3: +1 -3 lines

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.4 2012/10/29 05:06:38 asau 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

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"