1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/math/plplot/files/patch-aa
1998-09-27 20:13:16 +00:00

61 lines
1.8 KiB
Plaintext

--- configure.orig Tue Jun 6 14:58:50 1995
+++ configure Sat Sep 26 23:34:48 1998
@@ -1472,13 +1472,13 @@
# ----------------------------------------------------------------------------
CC_FLAGS=\
-"-c $DBL_FLAG_C $DEBUG_FLAG_C $SYS_FLAGS_C $PROF_FLAG_C $OPT_FLAG_C"
+"-c $CFLAGS $DBL_FLAG_C $DEBUG_FLAG_C $SYS_FLAGS_C $PROF_FLAG_C $OPT_FLAG_C"
CXX_FLAGS=\
-"-c $DBL_FLAG_CXX $DEBUG_FLAG_CXX $SYS_FLAGS_CXX $PROF_FLAG_CXX $OPT_FLAG_CXX"
+"-c $CFLAGS $DBL_FLAG_CXX $DEBUG_FLAG_CXX $SYS_FLAGS_CXX $PROF_FLAG_CXX $OPT_FLAG_CXX"
F77_FLAGS=\
-"-c $DBL_FLAG_F $DEBUG_FLAG_F $SYS_FLAGS_F $PROF_FLAG_F $OPT_FLAG_F"
+"-c $FFLAGS $DBL_FLAG_F $DEBUG_FLAG_F $SYS_FLAGS_F $PROF_FLAG_F $OPT_FLAG_F"
LDC_FLAGS=\
"$PROF_FLAG_LC $SYS_FLAGS_LC $DEBUG_FLAG_LC"
@@ -3062,6 +3062,20 @@
# Hmm, would be good to replace that trailing .0 with the
# compilation number or some such. Have to think about that.
;;
+ FreeBSD*|NetBSD*|OpenBSD* )
+ SHLIB_CCFLAGS="-fpic -DPIC"
+ SHLIB_CXXFLAGS="-fpic -DPIC"
+ if [ "${PORTOBJFORMAT}" = "elf" ]; then
+ SO='.so.$(MAJOR_VERSION)'
+ SHLIB_BUILD="ld -shared -soname \$@ -o"
+ SOVERSION='$(MAJOR_VERSION)'
+ else
+ SO='.so.$(MAJOR_VERSION).$(MINOR_VERSION)'
+ SHLIB_BUILD="ld -Bshareable -o"
+ SOVERSION='$(MAJOR_VERSION).$(MINOR_VERSION)'
+ fi
+ echo "$ac_t""okay" 1>&6
+ ;;
HP-UX-* )
SO=".sl"
SHLIB_F77FLAGS="+z"
@@ -4192,16 +4206,16 @@
fi
fi
if test -z "$DOC_DIR"; then
- DOC_DIR=$prefix/doc
+ DOC_DIR=$prefix/share/doc/plplot
fi
if test -z "$INFO_DIR"; then
INFO_DIR=$prefix/info
fi
if test -z "$INCLUDE_DIR"; then
- INCLUDE_DIR=$prefix/include
+ INCLUDE_DIR=$prefix/include/plplot
fi
if test -z "$DEMOS_DIR"; then
- DEMOS_DIR=$prefix/examples
+ DEMOS_DIR=$prefix/share/examples/plplot
fi
cat >> confdefs.h <<EOF