From cc599f286055be3fa8daa80fcdfe884376ead090 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 24 Sep 2009 12:20:46 +0000 Subject: Teach libxdg-basedir to look files under ${PREFIX}/etc/xdg instead of /etc/xdg, with this change, awesome window manager will look for a default conf on correct place. Submitted by: maintainer by email Reported by: miwi Feature safe: yes --- x11/libxdg-basedir/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'x11') diff --git a/x11/libxdg-basedir/Makefile b/x11/libxdg-basedir/Makefile index fd8c1683bbc6..6b820560e746 100644 --- a/x11/libxdg-basedir/Makefile +++ b/x11/libxdg-basedir/Makefile @@ -7,6 +7,7 @@ PORTNAME= libxdg-basedir PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= http://n.ethz.ch/student/nevillm/download/libxdg-basedir/ @@ -15,11 +16,15 @@ COMMENT= An implementation of the XDG Base Directory specification USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${LOCALBASE} +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 -- cgit v1.2.3