1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Sinchronize with www/flashplugin-mozilla

- Fix URL

PR:		ports/75814
Submitted by:	maintainer
This commit is contained in:
Sergey Matveychuk 2005-01-08 15:28:22 +00:00
parent e50bc2fdbd
commit 2b2a127d0b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125806
3 changed files with 13 additions and 12 deletions

View File

@ -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}
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}
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}
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>

View File

@ -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/

View File

@ -1,2 +1,2 @@
%%PLUGIN_DIR%%/npflash.so
%%PLUGIN_DIR%%/libnpflash.so
@unexec rmdir %D/%%PLUGIN_DIR%% 2>/dev/null || true