diff options
author | pav <pav@FreeBSD.org> | 2004-11-18 17:55:55 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-11-18 17:55:55 +0800 |
commit | 1d933fc601b17af3189c82c4f99dd11b119f04c0 (patch) | |
tree | e8f8483dc720263e4f672b87938e3740f8e4cc9f /www | |
parent | cf8f30a7eea8c5a0f62320cbd27c654ef4f50444 (diff) | |
download | freebsd-ports-gnome-1d933fc601b17af3189c82c4f99dd11b119f04c0.tar.gz freebsd-ports-gnome-1d933fc601b17af3189c82c4f99dd11b119f04c0.tar.zst freebsd-ports-gnome-1d933fc601b17af3189c82c4f99dd11b119f04c0.zip |
- Switch to ./configure make make install way
Submitted by: Li-Lun Wang (Leland Wang) <llwang@infor.org>
Diffstat (limited to 'www')
-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 |