# Created by: Joe Marcus Clarke # $FreeBSD$ # $MCom: ports/trunk/audio/libcanberra-gtk3/Makefile 19814 2014-08-15 20:17:00Z gusi $ CATEGORIES= audio devel PKGNAMESUFFIX= -gtk3 MAINTAINER= gnome@FreeBSD.org COMMENT= Implementation of the Freedesktop sound theme spec MASTERDIR= ${.CURDIR}/../../audio/libcanberra SLAVEPORT= gtk3 PLIST= ${.CURDIR}/pkg-plist do-build: cd ${WRKSRC} && ${GMAKE} libcanberra-gtk3.pc cd ${WRKSRC}/src && ${GMAKE} libcanberra-gtk3.la cd ${WRKSRC}/src && ${GMAKE} libcanberra-gtk3-module.la # fix the .la file so it doesn't point to the build dir anymore. @${REINPLACE_CMD} -e '/^relink_command/ d' \ -e 's|${WRKSRC}/src/libcanberra.la|${LOCALBASE}/lib/libcanberra.la|g' \ ${WRKSRC}/src/.libs/libcanberra-gtk3.la do-install: ${INSTALL_DATA} ${WRKSRC}/libcanberra-gtk3.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/ .for i in .so .so.0 .so.0.1.9 ${INSTALL_LIB} ${WRKSRC}/src/.libs/libcanberra-gtk3${i} \ ${STAGEDIR}${PREFIX}/lib/ .endfor ${INSTALL_DATA} ${WRKSRC}/src/.libs/libcanberra-gtk3.la \ ${STAGEDIR}${PREFIX}/lib/ 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 .include "${MASTERDIR}/Makefile"