summaryrefslogtreecommitdiff
path: root/x11/libxdg-basedir/Makefile
blob: 47dc8c2b209be7632ba9a98682188ae929b5f476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $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"