summaryrefslogtreecommitdiff
path: root/x11/libxdg-basedir/Makefile
blob: 4e34131b1727538efa4a76a8e79c07f7d7f6a26c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PORTNAME=	libxdg-basedir
DISTVERSIONPREFIX=	v
DISTVERSION=	1.2.2
CATEGORIES=	x11

MAINTAINER=	ntarmos@ceid.upatras.gr
COMMENT=	Implementation of the XDG Base Directory specification
WWW=		http://n.ethz.ch/student/nevillm/download/libxdg-basedir/

USES=		autoreconf gmake libtool pathfix
USE_GITHUB=	yes
USE_LDCONFIG=	yes
GH_ACCOUNT=	davmac314
GNU_CONFIGURE=	yes
TEST_TARGET=	check

pre-configure:
	@${REINPLACE_CMD} -e 's|"etc"|"${PREFIX}/etc"|' \
		-e '/DefaultConfigDirectories\[\]/,/DefaultRelativeCacheHome\[\]/ s|"/\([^"]\)|"\1|' \
		-e '/DefaultConfigDirectories\[\]/,/DefaultRelativeCacheHome\[\]/ s|/|" DIR_SEPARATOR_STR "|g' \
		${WRKSRC}/src/basedir.c

.include <bsd.port.mk>