freebsd-ports/www/nspluginwrapper/files/patch-configure
Beech Rintoul ea7ddc4855 - Fix path to npwrapper.so on amd64
- Bump portrevision

PR:		ports/130317
Submitted by:	Yuri Pankov <yuri.pankov@gmail.com>
Approved by:	David Grochowski <malus.x@gmail.com> (maintainer)
2009-01-09 08:31:01 +00:00

27 lines
833 B
Text

--- configure.orig 2009-01-02 11:54:10.000000000 +0300
+++ configure 2009-01-09 05:42:24.000000000 +0300
@@ -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"
@@ -728,7 +723,7 @@
elif test "$host_cpu" = "x86_64" ; then
echo "ARCH=x86_64" >> $config_mak
echo "#define HOST_X86_64 1" >> $config_h
- echo "#define HOST_ARCH \"x86_64\"" >> $config_h
+ echo "#define HOST_ARCH \"amd64\"" >> $config_h
elif test "$host_cpu" = "ppc" ; then
echo "ARCH=ppc" >> $config_mak
echo "#define HOST_PPC 1" >> $config_h