ports/75814: update port www/flashplugin-firefox
Roman Y. Bogdanov
sam at brj.pp.ru
Tue Jan 4 19:40:23 UTC 2005
>Number: 75814
>Category: ports
>Synopsis: update port www/flashplugin-firefox
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 04 19:40:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Roman Y. Bogdanov
>Release: FreeBSD 5.3-RELEASE-p2 i386
>Organization:
n/a
>Environment:
System: FreeBSD brj.pp.ru 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Tue Dec 7 21:59:40 KRAT 2004 root at brj.pp.ru:/usr/src/sys/i386/compile/brj-5x i386
>Description:
i'am think synhronize www/flashplugin-firefox like a www/flashplugin-mozilla.
>How-To-Repeat:
>Fix:
--- flash-up begins here ---
diff -urN flashplugin-firefox.old/Makefile flashplugin-firefox/Makefile
--- flashplugin-firefox.old/Makefile Wed Jan 5 02:20:23 2005
+++ flashplugin-firefox/Makefile Wed Jan 5 02:25:09 2005
@@ -5,7 +5,7 @@
# $FreeBSD: ports/www/flashplugin-firefox/Makefile,v 1.9 2004/11/16 15:43:04 sem Exp $
#
-PORTNAME= flashplugin-firefox
+PORTNAME?= flashplugin-firefox
PORTVERSION= 0.4.12
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
@@ -21,18 +21,19 @@
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 -urN flashplugin-firefox.old/pkg-descr flashplugin-firefox/pkg-descr
--- flashplugin-firefox.old/pkg-descr Wed Jan 5 02:20:23 2005
+++ flashplugin-firefox/pkg-descr Sun Dec 5 03:03:27 2004
@@ -2,4 +2,4 @@
(libflash) distribution.
Author: Olivier Debon <olivier at debon.net>
-WWW: http://www.swift-tools.net/Flash/
+WWW: http://gplflash.sourceforge.net/
diff -urN flashplugin-firefox.old/pkg-plist flashplugin-firefox/pkg-plist
--- flashplugin-firefox.old/pkg-plist Wed Jan 5 02:20:23 2005
+++ flashplugin-firefox/pkg-plist Sun Dec 5 03:03:27 2004
@@ -1,2 +1,2 @@
-%%PLUGIN_DIR%%/npflash.so
+%%PLUGIN_DIR%%/libnpflash.so
@unexec rmdir %D/%%PLUGIN_DIR%% 2>/dev/null || true
--- flash-up ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list