aboutsummaryrefslogtreecommitdiff
path: root/audio/libshout2
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2003-08-12 22:20:53 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2003-08-12 22:20:53 +0000
commit23d19a26d29e9689e0f07c600320d4b86776feef (patch)
treea81ee2f7ff6726fc237b987f7a67a2c55a00943d /audio/libshout2
parent4e75abfa97d97ca1ffcd0369061115516583aba9 (diff)
downloadports-23d19a26d29e9689e0f07c600320d4b86776feef.tar.gz
ports-23d19a26d29e9689e0f07c600320d4b86776feef.zip
Notes
Diffstat (limited to 'audio/libshout2')
-rw-r--r--audio/libshout2/Makefile20
-rw-r--r--audio/libshout2/pkg-plist4
2 files changed, 20 insertions, 4 deletions
diff --git a/audio/libshout2/Makefile b/audio/libshout2/Makefile
index 34eda0501b5f..0773f8de2562 100644
--- a/audio/libshout2/Makefile
+++ b/audio/libshout2/Makefile
@@ -22,7 +22,23 @@ CONFIGURE_ENV= CFLAGS="${PTHREAD_CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
USE_GMAKE= yes
-USE_LIBTOOL= yes
+WANT_GNOME= yes
+USE_LIBTOOL_VER=13
CONFLICTS= libshout-1.0.7
+USE_REINPLACE= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mpkgconfig}!=""
+USE_GNOME+= pkgconfig
+PLIST_SUB+= WITH_PKGCONFIG=""
+.else
+CONFIGURE_ARGS+=--disable-pkgconfig
+PLIST_SUB+= WITH_PKGCONFIG="@comment "
+.endif
+
+post-configure:
+ @ ${REINPLACE_CMD} -e "s|pkgconfigdir =.*|pkgconfigdir = ${PREFIX}/libdata/pkgconfig|g" \
+ ${WRKSRC}/Makefile
+
+.include <bsd.port.post.mk>
diff --git a/audio/libshout2/pkg-plist b/audio/libshout2/pkg-plist
index 3c645e13a793..808328cf78dd 100644
--- a/audio/libshout2/pkg-plist
+++ b/audio/libshout2/pkg-plist
@@ -3,11 +3,11 @@ lib/libshout.a
lib/libshout.la
lib/libshout.so
lib/libshout.so.3
-lib/pkgconfig/shout.pc
+%%WITH_PKGCONFIG%%libdata/pkgconfig/shout.pc
share/aclocal/shout.m4
share/doc/libshout/COPYING
share/doc/libshout/README
share/doc/libshout/example.c
@dirrm share/doc/libshout
-@dirrm lib/pkgconfig
+%%WITH_PKGCONFIG%%@dirrm libdata/pkgconfig
@dirrm include/shout