diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2007-04-04 17:05:46 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2007-04-04 17:05:46 +0000 |
commit | 118a03458bf0926e5c6ed4430ec9ccd405fec3d4 (patch) | |
tree | ce9a27e739b5861eefd8cd92f4b90503ce25f9ec /www/nspluginwrapper-devel/files | |
parent | This is a possible fix for the 'makesum' regression introduced in ports/Mk (diff) |
Add nspluginwrapper 0.9.91.3, a compatibility plugin for Netscape 4
(NPAPI) plugins.
PR: ports/111166
Submitted by: Dave Grochowski
Notes
Notes:
svn path=/head/; revision=189216
Diffstat (limited to 'www/nspluginwrapper-devel/files')
4 files changed, 87 insertions, 0 deletions
diff --git a/www/nspluginwrapper-devel/files/patch-configure b/www/nspluginwrapper-devel/files/patch-configure new file mode 100644 index 000000000000..80b7d9612393 --- /dev/null +++ b/www/nspluginwrapper-devel/files/patch-configure @@ -0,0 +1,53 @@ +--- ./configure.orig Sun Mar 4 23:01:22 2007 ++++ ./configure Wed Apr 4 20:20:59 2007 +@@ -6,13 +6,8 @@ + PACKAGE=nspluginwrapper + + # set temporary file name +-if test ! -z "$TMPDIR" ; then +- TMPDIR1="${TMPDIR}" +-elif test ! -z "$TEMPDIR" ; then +- TMPDIR1="${TEMPDIR}" +-else +- TMPDIR1="/tmp" +-fi ++mkdir -p tmp ++TMPDIR1="./tmp" + + TMPC="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.c" + TMPO="${TMPDIR1}/npw-conf-${RANDOM}-$$-${RANDOM}.o" +@@ -75,6 +70,9 @@ + --prefix=*) + prefix=`echo $opt | cut -d '=' -f 2` + ;; ++--x11=*) ++ x_base_dirs=`echo $opt | cut -d '=' -f 2` ++ ;; + --pkglibdir=*) + pkglibdir=`echo $opt | cut -d '=' -f 2` + ;; +@@ -279,10 +277,12 @@ + fi + + # check for X11 base dir +-x_base_dirs=' +-/usr +-/usr/X11R6 +-/usr/local/X11R6' ++if test -z "$x_base_dirs"; then ++ x_base_dirs=' ++ /usr ++ /usr/X11R6 ++ /usr/local' ++fi + for dir in $x_base_dirs; do + x_include_dir="$dir/include" + if test -f $x_include_dir/X11/Intrinsic.h; then +@@ -407,6 +407,7 @@ + echo " --target-os=OS build plugin support for target OS [$target_os]" + echo " --target-cpu=CPU build plugin support for target CPU [$target_cpu]" + echo " --with-viewer build viewer [$build_viewer]" ++echo " --x11=PREFIX path to X11 base" + echo "" + echo "Advanced options (experts only):" + echo " --source-path=PATH path of source code [$source_path]" diff --git a/www/nspluginwrapper-devel/files/patch-npapi_nspr_prcpucfg.h b/www/nspluginwrapper-devel/files/patch-npapi_nspr_prcpucfg.h new file mode 100644 index 000000000000..3bec95c9b353 --- /dev/null +++ b/www/nspluginwrapper-devel/files/patch-npapi_nspr_prcpucfg.h @@ -0,0 +1,11 @@ +--- ./npapi/nspr/prcpucfg.h.orig Wed Apr 4 20:26:11 2007 ++++ ./npapi/nspr/prcpucfg.h Wed Apr 4 20:27:40 2007 +@@ -229,7 +229,7 @@ + #define PR_BYTES_PER_WORD_LOG2 3 + #define PR_BYTES_PER_DWORD_LOG2 3 + +-#elif defined(__x86_64__) ++#elif defined(__x86_64__) || defined(__amd64__) + + #define IS_LITTLE_ENDIAN 1 + #undef IS_BIG_ENDIAN diff --git a/www/nspluginwrapper-devel/files/patch-src-npw-config.c b/www/nspluginwrapper-devel/files/patch-src-npw-config.c new file mode 100644 index 000000000000..0d8d2847065d --- /dev/null +++ b/www/nspluginwrapper-devel/files/patch-src-npw-config.c @@ -0,0 +1,13 @@ +--- ./src/npw-config.c.orig Sun Mar 4 23:01:22 2007 ++++ ./src/npw-config.c Wed Apr 4 20:20:59 2007 +@@ -119,8 +119,8 @@ + #if defined(__FreeBSD__) + { + static const char *freebsd_dirs[] = { +- "/usr/X11R6/" LIB "/browser_plugins", +- "/usr/X11R6/" LIB "/firefox/plugins", ++ "/usr/local/" LIB "/browser_plugins", ++ "/usr/local/" LIB "/firefox/plugins", + }; + dirs = freebsd_dirs; + } diff --git a/www/nspluginwrapper-devel/files/patch-src-npw-wrapper.c b/www/nspluginwrapper-devel/files/patch-src-npw-wrapper.c new file mode 100644 index 000000000000..343def710cce --- /dev/null +++ b/www/nspluginwrapper-devel/files/patch-src-npw-wrapper.c @@ -0,0 +1,10 @@ +--- ./src/npw-wrapper.c.orig Sun Mar 4 23:01:22 2007 ++++ ./src/npw-wrapper.c Wed Apr 4 20:20:59 2007 +@@ -28,6 +28,7 @@ + #include <unistd.h> + #include <pthread.h> + #include <semaphore.h> ++#include <signal.h> + #include <sys/wait.h> + + #include <glib.h> |