aboutsummaryrefslogtreecommitdiffstats
path: root/x11/libxdg-basedir/Makefile
blob: 77e7bc44fd1d8a4eb54a431b5c6e72b6e6442a4b (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
24
25
26
27
28
29
# New ports collection makefile for:   libxdg-basedir
# Date created:                April 18, 2009
# Whom:                        Nikos Ntarmos <ntarmos@cs.uoi.gr>
#
# $FreeBSD$
#

PORTNAME=   libxdg-basedir
PORTVERSION=    1.1.0
CATEGORIES= x11
MASTER_SITES=   http://n.ethz.ch/student/nevillm/download/libxdg-basedir/

MAINTAINER= ntarmos@cs.uoi.gr
COMMENT=    An implementation of the XDG Base Directory specification

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes

pre-configure:
    @${REINPLACE_CMD} -e \
        's|$$(libdir)/pkgconfig|$${prefix}/libdata/pkgconfig|' \
        ${WRKSRC}/Makefile.in
    @${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>