summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-10-27 17:10:09 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-10-27 17:10:09 +0800
commit2b4489f7d19415ece438a63b5674ef16d7eda2fb (patch)
treecb75bddd117d16dc7b7c9b5144dfbb6fc4cb4c89
parent6b5cbcc0cbbbaae8353a897c26c37090d1179a11 (diff)
downloadmarcuscom-ports-2b4489f7d19415ece438a63b5674ef16d7eda2fb.tar.gz
marcuscom-ports-2b4489f7d19415ece438a63b5674ef16d7eda2fb.tar.zst
marcuscom-ports-2b4489f7d19415ece438a63b5674ef16d7eda2fb.zip
Stageify.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18805 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--audio/libcanberra-gtk3/Makefile19
-rw-r--r--audio/libcanberra/Makefile7
2 files changed, 17 insertions, 9 deletions
diff --git a/audio/libcanberra-gtk3/Makefile b/audio/libcanberra-gtk3/Makefile
index af844e32f..1717c9e53 100644
--- a/audio/libcanberra-gtk3/Makefile
+++ b/audio/libcanberra-gtk3/Makefile
@@ -1,6 +1,6 @@
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
-# $MCom$
+# $MCom: ports/trunk/audio/libcanberra-gtk3/Makefile 18610 2013-06-30 16:33:05Z marcus $
PORTREVISION= 2
CATEGORIES= audio devel
@@ -24,13 +24,16 @@ do-build:
do-install:
${INSTALL_DATA} ${WRKSRC}/libcanberra-gtk3.pc \
- ${PREFIX}/libdata/pkgconfig/
-.for i in .a .la .so .so.0
- ${INSTALL_DATA} ${WRKSRC}/src/.libs/libcanberra-gtk3${i} \
- ${PREFIX}/lib/
+ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/
+.for i in .a .so .so.0
+ ${INSTALL_LIB} ${WRKSRC}/src/.libs/libcanberra-gtk3${i} \
+ ${STAGEDIR}${PREFIX}/lib/
.endfor
- cd ${WRKSRC}/src && ${GMAKE} install-gtk3moduleLTLIBRARIES
- cd ${PREFIX}/lib/gtk-3.0/modules && \
- ${LN} -sf libcanberra-gtk3-module.so libcanberra-gtk-module.so
+ cd ${WRKSRC}/src && env DESTDIR=${STAGEDIR} ${GMAKE} install-gtk3moduleLTLIBRARIES
+ ${LN} -sf libcanberra-gtk3-module.so \
+ ${STAGEDIR}${PREFIX}/lib/gtk-3.0/modules/libcanberra-gtk-module.so
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gtk-3.0/modules/libcanberra-gtk3-module.so
.include "${MASTERDIR}/Makefile"
diff --git a/audio/libcanberra/Makefile b/audio/libcanberra/Makefile
index 4a93a8bab..65027ecba 100644
--- a/audio/libcanberra/Makefile
+++ b/audio/libcanberra/Makefile
@@ -16,7 +16,6 @@ LICENSE_FILE= ${WRKSRC}/LGPL
LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis
-NO_STAGE= yes
USES= gmake pathfix pkgconfig
USE_GNOME= gnomeprefix gnomehier gtk20 ltverhack gconf2
USE_LDCONFIG= yes
@@ -64,4 +63,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
${WRKSRC}/configure
+.if !defined(SLAVEPORT)
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcanberra*.so.0
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcanberra-0.28/libcanberra-*.so
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/gtk-2.0/modules/libcanberra-gtk-module.so
+.endif
.include <bsd.port.mk>