diff options
author | kwm <kwm@FreeBSD.org> | 2005-06-30 18:29:17 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2005-06-30 18:29:17 +0800 |
commit | e84764cfbcef768296f1261e774dc5b54575df26 (patch) | |
tree | f33c0b399a3b3c67c5821a7deb251cbcc93afd3f | |
parent | 41e0d201b7e47179a39bee970daf5e53d51c510b (diff) | |
download | freebsd-ports-gnome-e84764cfbcef768296f1261e774dc5b54575df26.tar.gz freebsd-ports-gnome-e84764cfbcef768296f1261e774dc5b54575df26.tar.zst freebsd-ports-gnome-e84764cfbcef768296f1261e774dc5b54575df26.zip |
Fix the build with firefox.
Put the plugin in the correct place so mozilla and firefox can find it.
Approved by: maintainer (anholt)
-rw-r--r-- | www/swfdec-plugin/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/www/swfdec-plugin/Makefile b/www/swfdec-plugin/Makefile index a1d792069a29..f4253186490c 100644 --- a/www/swfdec-plugin/Makefile +++ b/www/swfdec-plugin/Makefile @@ -33,8 +33,14 @@ USE_REINPLACE= yes USE_LIBTOOL_VER= 15 GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" \ - MOZILLA_CONFIG="${X11BASE}/lib/mozilla/mozilla-config" + LDFLAGS="-L${LOCALBASE}/lib" + +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox" +CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/bin/firefox-config" +.else +CONFIGURE_ENV+= MOZILLA_CONFIG="${X11BASE}/lib/mozilla/mozilla-config" +.endif + INSTALLS_SHLIB= yes INSTALL_WRKSRC= ${WRKSRC}/plugin @@ -42,5 +48,6 @@ PLIST_SUB= VERSION=${PORTVERSION:R} post-patch: @${REINPLACE_CMD} -e "s,int16_t,__int16_t," ${WRKSRC}/libswfdec/swfdec_shape.c + @${REINPLACE_CMD} -e "s,mozilla/plugins/,browser_plugins/," ${WRKSRC}/plugin/Makefile.in .include <bsd.port.mk> |