aboutsummaryrefslogtreecommitdiffstats
path: root/www/swfdec-plugin/Makefile
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2005-06-30 18:29:17 +0800
committerkwm <kwm@FreeBSD.org>2005-06-30 18:29:17 +0800
commite84764cfbcef768296f1261e774dc5b54575df26 (patch)
treef33c0b399a3b3c67c5821a7deb251cbcc93afd3f /www/swfdec-plugin/Makefile
parent41e0d201b7e47179a39bee970daf5e53d51c510b (diff)
downloadfreebsd-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)
Diffstat (limited to 'www/swfdec-plugin/Makefile')
-rw-r--r--www/swfdec-plugin/Makefile11
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>