aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-01-08 23:28:22 +0800
committersem <sem@FreeBSD.org>2005-01-08 23:28:22 +0800
commitf55c9588f41ea0a510f53229195dec4e88ad65b3 (patch)
tree84adc47ead39231e8d091c18d0425a972c2ca18a /www
parentb1ce8bdeade403be7bdd96e40bded5f8cc15d239 (diff)
downloadfreebsd-ports-gnome-f55c9588f41ea0a510f53229195dec4e88ad65b3.tar.gz
freebsd-ports-gnome-f55c9588f41ea0a510f53229195dec4e88ad65b3.tar.zst
freebsd-ports-gnome-f55c9588f41ea0a510f53229195dec4e88ad65b3.zip
- Sinchronize with www/flashplugin-mozilla
- Fix URL PR: ports/75814 Submitted by: maintainer
Diffstat (limited to 'www')
-rw-r--r--www/flashplugin-firefox/Makefile23
-rw-r--r--www/flashplugin-firefox/pkg-descr2
-rw-r--r--www/flashplugin-firefox/pkg-plist2
3 files changed, 14 insertions, 13 deletions
diff --git a/www/flashplugin-firefox/Makefile b/www/flashplugin-firefox/Makefile
index 967d7c8700ea..76da10f5b8b5 100644
--- a/www/flashplugin-firefox/Makefile
+++ b/www/flashplugin-firefox/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
#
-PORTNAME= flashplugin-firefox
+PORTNAME?= flashplugin-firefox
PORTVERSION= 0.4.12
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -21,18 +21,19 @@ RUN_DEPENDS?= firefox:${PORTSDIR}/www/firefox
WRKSRC= ${WRKDIR}/${DISTNAME}/plugin
USE_BZIP2= yes
+USE_REINPLACE= yes
USE_X_PREFIX= yes
PLUGIN_DIR?= lib/firefox/plugins
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
-
-do-build:
- cd ${WRKSRC} && ${CC} ${CFLAGS} -shared -fPIC -DXP_UNIX \
- -I${.CURDIR}../lib -I${LOCALBASE}/include -I${X11BASE}/include \
- -o npflash.so plugin.c npunix.c \
- -L${LOCALBASE}/lib -L${X11BASE}/lib -lflash -lXt
-
-do-install:
- @${MKDIR} ${PREFIX}/${PLUGIN_DIR}
- @${INSTALL_PROGRAM} ${WRKSRC}/npflash.so ${PREFIX}/${PLUGIN_DIR}
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-plugin-dir="${PREFIX}/${PLUGIN_DIR}"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s,-L../lib/.libs,-L${LOCALBASE}/lib," \
+ -e "s/libnpflash.so.0.0.0/libnpflash.so.0/" \
+ ${WRKSRC}/Makefile.in
.include <bsd.port.mk>
diff --git a/www/flashplugin-firefox/pkg-descr b/www/flashplugin-firefox/pkg-descr
index 2e20e96a9afd..1982f8c4b438 100644
--- a/www/flashplugin-firefox/pkg-descr
+++ b/www/flashplugin-firefox/pkg-descr
@@ -2,4 +2,4 @@ This is GPL standalone Flash (TM) Plugin, that comes with FlashLib
(libflash) distribution.
Author: Olivier Debon <olivier@debon.net>
-WWW: http://www.swift-tools.net/Flash/
+WWW: http://gplflash.sourceforge.net/
diff --git a/www/flashplugin-firefox/pkg-plist b/www/flashplugin-firefox/pkg-plist
index 5c3eb594adb3..c8ebfc6508dd 100644
--- a/www/flashplugin-firefox/pkg-plist
+++ b/www/flashplugin-firefox/pkg-plist
@@ -1,2 +1,2 @@
-%%PLUGIN_DIR%%/npflash.so
+%%PLUGIN_DIR%%/libnpflash.so
@unexec rmdir %D/%%PLUGIN_DIR%% 2>/dev/null || true