aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsa <jsa@FreeBSD.org>2011-04-23 10:34:05 +0800
committerjsa <jsa@FreeBSD.org>2011-04-23 10:34:05 +0800
commit6a544a529a9b39c887dd3ff528f7567f7edaf2b5 (patch)
treeb3c5904b6eea0a9d3b509473899beafaeab033a7
parent8c69324cd4f29c6b7d94f712c0f75cccf7360450 (diff)
downloadfreebsd-ports-gnome-6a544a529a9b39c887dd3ff528f7567f7edaf2b5.tar.gz
freebsd-ports-gnome-6a544a529a9b39c887dd3ff528f7567f7edaf2b5.tar.zst
freebsd-ports-gnome-6a544a529a9b39c887dd3ff528f7567f7edaf2b5.zip
Fix pkgconfig.
PR: ports/156476 Submitted by: Chris Rees <utisoft@gmail.com> (maintainer) Approved by: wxs (mentor)
-rw-r--r--graphics/libprojectm/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/libprojectm/Makefile b/graphics/libprojectm/Makefile
index 0b00bb15c8f0..936f5aebd6cd 100644
--- a/graphics/libprojectm/Makefile
+++ b/graphics/libprojectm/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libprojectM
PORTVERSION= 2.0.1
+PORTREVISION= 1
CATEGORIES= graphics audio
MASTER_SITES= SF/${PORTNAME:L:S/lib//}/${PORTVERSION}/
DISTNAME= ${PORTNAME:S/lib//}-${DISTVERSION}-Source
@@ -27,11 +28,15 @@ USE_LDCONFIG= yes
post-patch:
# Install config.inp.sample instead of overwriting user's file.
# Needs to be specific enough not to rename config.inp.in too!
+# Also correct pkgconfig destination dir -- fiddly
@${REINPLACE_CMD} -e 's/config.inp\([\" ]\)/config.inp.sample\1/' \
- -e 's#/pkgconfig#data/pkgconfig#' \
+ -e 's#\(/lib\)[^}]*}\(/pkgconfig\)#\1data\2#' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's#/usr/X11R6#${LOCALBASE}#' \
${WRKSRC}/cmake/FindFreetype2.cmake
+# Fix empty libdir in pkgconfig file to stop vlc complaining
+ @${REINPLACE_CMD} -e 's#^\(libdir=\).*#\1${PREFIX}/lib#' \
+ ${WRKSRC}/${PORTNAME}.pc.in
post-install:
@if [ ! -f ${PREFIX}/share/projectM/config.inp ]; then \