diff options
-rw-r--r-- | audio/libcanberra-gtk3/Makefile | 19 | ||||
-rw-r--r-- | audio/libcanberra/Makefile | 7 |
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> |