diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-18 09:55:55 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-11-18 09:55:55 +0000 |
commit | 97a4c60bafd7264574c920d8ffbb4fe24242773f (patch) | |
tree | ef660e5046d828f5ada2b22deb8b4e8fed875d71 /www/flashplugin-mozilla | |
parent | 0755df96819f898e5d138feb743350ce9cf955bf (diff) | |
download | ports-97a4c60bafd7264574c920d8ffbb4fe24242773f.tar.gz ports-97a4c60bafd7264574c920d8ffbb4fe24242773f.zip |
Notes
Diffstat (limited to 'www/flashplugin-mozilla')
-rw-r--r-- | www/flashplugin-mozilla/Makefile | 21 | ||||
-rw-r--r-- | www/flashplugin-mozilla/pkg-plist | 2 |
2 files changed, 12 insertions, 11 deletions
diff --git a/www/flashplugin-mozilla/Makefile b/www/flashplugin-mozilla/Makefile index 560ee3b8703a..6559ac42ddb4 100644 --- a/www/flashplugin-mozilla/Makefile +++ b/www/flashplugin-mozilla/Makefile @@ -21,18 +21,19 @@ RUN_DEPENDS?= mozilla:${PORTSDIR}/www/mozilla WRKSRC= ${WRKDIR}/${DISTNAME}/plugin USE_BZIP2= yes +USE_REINPLACE= yes USE_X_PREFIX= yes PLUGIN_DIR?= lib/browser_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-mozilla/pkg-plist b/www/flashplugin-mozilla/pkg-plist index 5c3eb594adb3..c8ebfc6508dd 100644 --- a/www/flashplugin-mozilla/pkg-plist +++ b/www/flashplugin-mozilla/pkg-plist @@ -1,2 +1,2 @@ -%%PLUGIN_DIR%%/npflash.so +%%PLUGIN_DIR%%/libnpflash.so @unexec rmdir %D/%%PLUGIN_DIR%% 2>/dev/null || true |