diff options
author | joerg <joerg> | 2006-05-12 12:39:32 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-05-12 12:39:32 +0000 |
commit | 8560972bcdc3761808adb962dc71706f664b2c66 (patch) | |
tree | aebbbdc906d4d4139956855bec957945d953160f /math/scilab | |
parent | 65035dbda42a77b8ac788339323abad674072a63 (diff) | |
download | pkgsrc-8560972bcdc3761808adb962dc71706f664b2c66.tar.gz |
Honour LDFLAGS, fix errno usage.
Diffstat (limited to 'math/scilab')
-rw-r--r-- | math/scilab/Makefile | 4 | ||||
-rw-r--r-- | math/scilab/distinfo | 9 | ||||
-rw-r--r-- | math/scilab/patches/patch-ab | 416 | ||||
-rw-r--r-- | math/scilab/patches/patch-as | 19 | ||||
-rw-r--r-- | math/scilab/patches/patch-at | 14 | ||||
-rw-r--r-- | math/scilab/patches/patch-au | 12 | ||||
-rw-r--r-- | math/scilab/patches/patch-av | 14 | ||||
-rw-r--r-- | math/scilab/patches/patch-aw | 13 |
8 files changed, 492 insertions, 9 deletions
diff --git a/math/scilab/Makefile b/math/scilab/Makefile index 077a2d4432a..c947f05c5ab 100644 --- a/math/scilab/Makefile +++ b/math/scilab/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.69 2006/02/05 23:10:04 joerg Exp $ +# $NetBSD: Makefile,v 1.70 2006/05/12 12:39:32 joerg Exp $ # DISTNAME= ${SCIBASE}-src @@ -36,6 +36,8 @@ CONFIGURE_ARGS+= --with-tk-library=${TK_PREFIX}/lib CONFIGURE_ARGS+= --with-tk-include=${TK_PREFIX}/include CONFIGURE_ENV+= TCL_CONFIG_SH=${BUILDLINK_PREFIX.tcl}/lib/tclConfig.sh CONFIGURE_ENV+= TK_CONFIG_SH=${BUILDLINK_PREFIX.tk}/lib/tkConfig.sh +CONFIGURE_ENV+= CC_LDFLAGS=${X11_LDFLAGS:Q}\ ${COMPILER_RPATH_FLAG:Q}${BUILDLINK_PREFIX.tk:Q}/lib +CONFIGURE_ENV+= FC_LDFLAGS=${X11_LDFLAGS:Q}\ ${COMPILER_RPATH_FLAG:Q}${BUILDLINK_PREFIX.tk:Q}/lib # override HOME to avoid picking up a bad ${HOME}/.scilab during the build MAKE_ENV+= HOME=${WRKSRC:Q} diff --git a/math/scilab/distinfo b/math/scilab/distinfo index 77125b1e963..0a5b14bf260 100644 --- a/math/scilab/distinfo +++ b/math/scilab/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.19 2005/09/22 00:05:40 dmcmahill Exp $ +$NetBSD: distinfo,v 1.20 2006/05/12 12:39:32 joerg Exp $ SHA1 (scilab-3.1.1-src.tar.gz) = 63cae13441befb795d32cec5f825042b6b4e74b3 RMD160 (scilab-3.1.1-src.tar.gz) = 363486c6c9d1e64a28edcd002651e3c9d3b1eb73 Size (scilab-3.1.1-src.tar.gz) = 14261772 bytes SHA1 (patch-aa) = 6d9749330ba4471de03a2873daee5b9fdc0aac06 -SHA1 (patch-ab) = 5119dcbfdf987e7303446b06c9126137e740e1b8 +SHA1 (patch-ab) = 3a76282796d2b091e355914b2a18a8705f3c2060 SHA1 (patch-ac) = 0c48500eb261d643bdd5c1d34d23968b312eae57 SHA1 (patch-ad) = 186b5b1b71ccd983f49ae4c1bfb45152d4ebd662 SHA1 (patch-ae) = 050ea8847196c2808a74c252db7c98d77677cd25 @@ -21,3 +21,8 @@ SHA1 (patch-ao) = f11104e0d68132607a941dd2b37aad85fce3d01f SHA1 (patch-ap) = 0f87996f0940459b57248068021c6bd565be258e SHA1 (patch-aq) = 158c9f7466f488f2dad9b1b73939bd0ceaf39b98 SHA1 (patch-ar) = fba20ba23ec78262c6eba1248b662d08e727cada +SHA1 (patch-as) = a361ad1d13cd87f114f340ff34052dab7695da88 +SHA1 (patch-at) = 6e08f40a709e6b64f269dd39e5aeeb187de04edb +SHA1 (patch-au) = 68c0988dd41420257e9ca8a6ac050ee851b59787 +SHA1 (patch-av) = 513338ab284477cc4f67f121e92eb7cc0fa89ac2 +SHA1 (patch-aw) = 0bdc9337269a6fc0e242fc0583750484aa4a87fb diff --git a/math/scilab/patches/patch-ab b/math/scilab/patches/patch-ab index 8f4c061fd3a..1c77a9e2b80 100644 --- a/math/scilab/patches/patch-ab +++ b/math/scilab/patches/patch-ab @@ -1,7 +1,106 @@ -$NetBSD: patch-ab,v 1.10 2005/09/22 00:05:40 dmcmahill Exp $ +$NetBSD: patch-ab,v 1.11 2006/05/12 12:39:32 joerg Exp $ --- configure.orig 2005-05-25 15:00:45.000000000 +0000 +++ configure +@@ -18362,7 +18362,7 @@ case "$host" in + else + CC=cc + CC_OPTIONS='-std -O -DNDEBUG -ieee_with_inexact' +- CC_LDFLAGS='-ieee_with_inexact' ++ CC_LDFLAGS="${CC_LDFLAGS} -ieee_with_inexact" + fi + #fortran compiler + if test "$WITH_G77" = yes; then +@@ -18422,7 +18422,7 @@ echo "$as_me: error: Unable to configure + FC="$F77" + FC_OPTIONS='-O -fpe3' + FC_OPTIONS_O0='-fpe3' +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + FC_USE_CDEC=' ' + if test "$enable_debug" = yes; then + CC_OPTIONS='-std -g -ieee_with_inexact' +@@ -18439,7 +18439,7 @@ echo "$as_me: error: Unable to configure + # standard compilers + CC=cc + CC_OPTIONS='-O -DNDEBUG -ieee_with_inexact' +- CC_LDFLAGS='-ieee_with_inexact' ++ CC_LDFLAGS="${CC_LDFLAGS} -ieee_with_inexact" + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,f77,yes,no) + for ac_prog in f77 f90 f2c-f77 +@@ -18493,7 +18493,7 @@ echo "$as_me: error: Unable to configure + #FC="$F77" + FC_OPTIONS='-O -fpe3 -switch nosqrt_recip' + FC_OPTIONS_O0='-fpe3 -switch nosqrt_recip' +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + FC_USE_CDEC=' ' + LD=ld + LD_LDFLAGS= +@@ -18524,7 +18524,7 @@ echo "$as_me: error: Unable to configure + # standard compilers + CC=cc + CC_OPTIONS='-Daix -DSYSV' +- CC_LDFLAGS= ++ CC_LDFLAGS="${CC_LDFLAGS}" + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,f77,yes,no) + for ac_prog in f77 f90 f2c-f77 +@@ -18578,7 +18578,7 @@ echo "$as_me: error: Unable to configure + #FC="$F77" + FC_OPTIONS='-qcharlen=4096' + FC_OPTIONS_O0='-qcharlen=4096' +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + LD=ld + LD_LDFLAGS= + if test "$enable_debug" = yes; then +@@ -18661,7 +18661,7 @@ fi + GCC=yes + CC=gcc + CC_OPTIONS='-O -DNDEBUG -Dlinux -fwritable-strings' +- CC_LDFLAGS=$LIEEELIB ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" + # find Fortran compiler + # g77 already asked and found: good + if test "$WITH_G77" = yes; then +@@ -18801,7 +18801,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS=-O + FC_OPTIONS_O0= +- FC_LDFLAGS="$LIEEELIB -ldl -rdynamic" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -rdynamic" + LD=ld + LD_LDFLAGS=$LIEEELIB + if test "$enable_debug" = yes; then +@@ -18815,7 +18815,7 @@ echo "$as_me: error: Unable to configure + # standard compilers + CC=cc + CC_OPTIONS=-O -DNDEBUG +- CC_LDFLAGS= ++ CC_LDFLAGS="${CC_LDFLAGS}" + CC_PICFLAGS=-PIC + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,f77,yes,no) +@@ -18870,7 +18870,7 @@ echo "$as_me: error: Unable to configure + #FC="$F77" + FC_OPTIONS=-O + FC_OPTIONS_O0= +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + FC_PICFLAGS=-PIC + LD=ld + LD_LDFLAGS= +@@ -18895,7 +18895,7 @@ echo "$as_me: error: Unable to configure + if test "$enable_debug" = yes; then + FC_OPTIONS=-g + fi +- FC_LDFLAGS='-Xlinker' ++ FC_LDFLAGS="${FC_LDFLAGS} -Xlinker" + fi + MAKEFILE_TARGET=Makefile.sunos + ;; @@ -18903,8 +18903,8 @@ echo "$as_me: error: Unable to configure *-*-solaris*) # standard compilers @@ -9,7 +108,7 @@ $NetBSD: patch-ab,v 1.10 2005/09/22 00:05:40 dmcmahill Exp $ - CC_OPTIONS='-O -DNDEBUG -DSVR4 -DSYSV -Dsolaris' - CC_LDFLAGS= + CC_OPTIONS="${CFLAGS} -DNDEBUG -DSVR4 -DSYSV -Dsolaris" -+ CC_LDFLAGS="${LDFLAGS}" ++ CC_LDFLAGS="${CC_LDFLAGS}" if test "$WITH_G77" != yes; then #AC_CHECK_PROG(F77,f77,yes,no) for ac_prog in f77 f90 f2c-f77 @@ -18,10 +117,10 @@ $NetBSD: patch-ab,v 1.10 2005/09/22 00:05:40 dmcmahill Exp $ FC_OPTIONS=-O FC_OPTIONS_O0= - FC_LDFLAGS= -+ FC_LDFLAGS="${LDFLAGS}" ++ FC_LDFLAGS="${FC_LDFLAGS}" LD=ld - LD_LDFLAGS= -+ LD_LDFLAGS="${LDFLAGS}" ++ LD_LDFLAGS="${FC_LDFLAGS}" if test "$enable_debug" = yes; then CC_OPTIONS='-g -DSVR4 -DSYSV -Dsolaris' FC_OPTIONS=-g @@ -30,19 +129,313 @@ $NetBSD: patch-ab,v 1.10 2005/09/22 00:05:40 dmcmahill Exp $ FC_OPTIONS=-O2 FC_OPTIONS_O0= - FC_LDFLAGS='-t' -+ FC_LDFLAGS="${LDFLAGS} -t" ++ FC_LDFLAGS="${FC_LDFLAGS} -t" # for solaris 2.7 with gcc/g77 2.95.2, binutils 2.9 # the correct value should be # FC_LDFLAGS='-t -Wl,-export-dynamic' +@@ -19341,7 +19341,7 @@ fi + GCC=yes + CC=gcc + CC_OPTIONS='-O -DNDEBUG -Dlinux -fwritable-strings' +- CC_LDFLAGS=$LIEEELIB ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" + # find Fortran compiler + # g77 already asked and found: good + if test "$WITH_G77" = yes; then +@@ -19481,7 +19481,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS=-O + FC_OPTIONS_O0= +- FC_LDFLAGS=$LIEEELIB ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB" + LD=ld + LD_LDFLAGS=$LIEEELIB + if test "$enable_debug" = yes; then +@@ -19560,8 +19560,8 @@ fi + CC_OPTIONS='-g -Wall -Dlinux -DNARROWPROTO -mp -pc64 -ffnalias -falias' + FC_OPTIONS="-g -cm -w90 -w95 -mp -pc64 -ffnalias -falias" + fi +- CC_LDFLAGS=$LIEEELIB +- FC_LDFLAGS="$LIEEELIB -ldl" ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl" + LD=xild + LD_LDFLAGS="$LIEEELIB" + else +@@ -19569,7 +19569,7 @@ fi + GCCFIX=fix.o + CC=gcc + CC_OPTIONS='-O -DNDEBUG -Dlinux -fwritable-strings -DNARROWPROTO' +- CC_LDFLAGS=$LIEEELIB ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" + CC_PICFLAGS=-fPIC + # find Fortran compiler + # g77 already asked and found: good +@@ -19712,7 +19712,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS=-O + FC_OPTIONS_O0= +- FC_LDFLAGS="$LIEEELIB -ldl -rdynamic" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -rdynamic" + if test "$enable_debug" = yes; then + CC_OPTIONS='-g -Wall -Dlinux -fwritable-strings -DNARROWPROTO' + FC_OPTIONS=-g +@@ -19791,15 +19791,15 @@ fi + CC_OPTIONS='-g -Wall -Dlinux -DNARROWPROTO -mp ' + FC_OPTIONS="-g -cm -w90 -w95 -mp " + fi +- CC_LDFLAGS="$LIEEELIB -Wl,-relax" +- FC_LDFLAGS="$LIEEELIB -ldl -Wl,-relax " ++ CC_LDFLAGS="${CCFLAGS} $LIEEELIB -Wl,-relax" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -Wl,-relax " + LD=xild + LD_LDFLAGS="$LIEEELIB -Wl,-relax " + else + GCC=yes + CC=gcc + CC_OPTIONS='-O -DNDEBUG -Dlinux -fwritable-strings -DNARROWPROTO' +- CC_LDFLAGS=$LIEEELIB ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" + CC_PICFLAGS=-fPIC + # find Fortran compiler + # g77 already asked and found: good +@@ -19942,7 +19942,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS=-O + FC_OPTIONS_O0= +- FC_LDFLAGS="$LIEEELIB -ldl -rdynamic -Wl,-relax" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -rdynamic -Wl,-relax" + LD=ld + LD_LDFLAGS=$LIEEELIB -Wl,-relax + if test "$enable_debug" = yes; then +@@ -20021,8 +20021,8 @@ fi + CC_OPTIONS='-g -Wall -Dlinux -DNARROWPROTO -mp ' + FC_OPTIONS="-g -cm -w90 -w95 -mp " + fi +- CC_LDFLAGS="$LIEEELIB -Wl,-relax" +- FC_LDFLAGS="$LIEEELIB -ldl -lPEPCF90 -Wl,-relax " ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB -Wl,-relax" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -lPEPCF90 -Wl,-relax " + LD=xild + LD_LDFLAGS="$LIEEELIB -lPEPCF90 -Wl,-relax " + else +@@ -20031,7 +20031,7 @@ fi + # CC_PLAT_OPTIONS is optional, and is used to add CPU specific code generation tuning for Athlon64 presumably Opteron could benefit too but these are not optimized for the Opteron + CC_PLAT_OPTIONS='-march=athlon64 -mfpmath=sse -msse2 -m3dnow -m64 ' + CC_OPTIONS="-O2 -DNDEBUG -Dlinux -fwritable-strings -DNARROWPROTO $CC_PLAT_OPTIONS" +- CC_LDFLAGS=$LIEEELIB ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" + CC_PICFLAGS=-fPIC + # find Fortran compiler + # g77 already asked and found: good +@@ -20174,7 +20174,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS="-O $CC_PLAT_OPTIONS" + FC_OPTIONS_O0= +- FC_LDFLAGS="$LIEEELIB -ldl -rdynamic -Wl,-relax " ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -rdynamic -Wl,-relax " + LD=ld + LD_LDFLAGS="$LIEEELIB -Wl,-relax " + if test "$enable_debug" = yes; then +@@ -20192,7 +20192,7 @@ echo "$as_me: error: Unable to configure + GCC=yes + CC=gcc + CC_OPTIONS='-O -DNDEBUG -mieee-with-inexact -Dlinux -fwritable-strings' +- CC_LDFLAGS='-ldl -rdynamic -mieee-with-inexact' ++ CC_LDFLAGS="${CC_LDFLAGS} -ldl -rdynamic -mieee-with-inexact" + CC_PICFLAGS=-fPIC + # find Fortran compiler + # g77 already asked and found: good +@@ -20333,7 +20333,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS='-O -mieee-with-inexact' + FC_OPTIONS_O0='-mieee-with-inexact' +- FC_LDFLAGS='-ldl -rdynamic -mieee-with-inexact' ++ FC_LDFLAGS="${FC_LDFLAGS} -ldl -rdynamic -mieee-with-inexact" + LD=ld + LD_LDFLAGS= + if test "$enable_debug" = yes; then +@@ -20400,7 +20400,7 @@ fi + GCC=yes + CC=gcc + CC_OPTIONS='-O -DNDEBUG -D_GNU_SOURCE -Dlinux -fwritable-strings' +- CC_LDFLAGS=$LIEEELIB ++ CC_LDFLAGS="${CC_LDFLAGS} $LIEEELIB" + CC_PICFLAGS=-fPIC + # find Fortran compiler + # g77 already asked and found: good +@@ -20541,7 +20541,7 @@ echo "$as_me: error: Unable to configure + fi + FC_OPTIONS=-O + FC_OPTIONS_O0= +- FC_LDFLAGS="$LIEEELIB -ldl -rdynamic" ++ FC_LDFLAGS="${FC_LDFLAGS} $LIEEELIB -ldl -rdynamic" + FC_PICFLAGS=-fPIC + LD=ld + LD_LDFLAGS=$LIEEELIB +@@ -20556,7 +20556,7 @@ echo "$as_me: error: Unable to configure + # standard compilers + CC=cc + CC_OPTIONS=-O0 -DNDEBUG +- CC_LDFLAGS= ++ CC_LDFLAGS="${CC_LDFLAGS}" + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,f77,yes,no) + for ac_prog in f77 f90 f2c-f77 +@@ -20610,7 +20610,7 @@ echo "$as_me: error: Unable to configure + #FC="$F77" + FC_OPTIONS='-O0 -fpe1' + FC_OPTIONS_O0='-O0 -fpe1' +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + LD=ld + LD_LDFLAGS= + if test "$enable_debug" = yes; then +@@ -20641,7 +20641,7 @@ echo "$as_me: error: Unable to configure + # standard compilers + CC=cc + CC_OPTIONS='-O -DNDEBUG -DSYSV -DSVR4' +- CC_LDFLAGS= ++ CC_LDFLAGS="${CC_LDFLAGS}" + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,f77,yes,no) + for ac_prog in f77 f90 f2c-f77 +@@ -20696,7 +20696,7 @@ echo "$as_me: error: Unable to configure + FC_OPTIONS='-O ' + FC_OPTIONS_O0= + +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + LD=ld + LD_LDFLAGS= + if test "$enable_debug" = yes; then +@@ -20728,7 +20728,7 @@ echo "$as_me: error: Unable to configure + HPPA_OLD=-Dhppa_old + CC=cc + CC_OPTIONS='-O -DNDEBUG -DSYSV -Dhpux' +- CC_LDFLAGS='-Wl,-a,archive' ++ CC_LDFLAGS="${CC_LDFLAGS} -Wl,-a,archive" + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,fort77,yes,no) + for ac_prog in fort77 f77 f90 f2c-f77 +@@ -20782,7 +20782,7 @@ echo "$as_me: error: Unable to configure + #FC="$F77" + FC_OPTIONS='-O +Obb1200 +E4' + FC_OPTIONS_O0='+Obb1200 +E4' +- FC_LDFLAGS='-Wl,-a,archive' ++ FC_LDFLAGS="${FC_LDFLAGS} -Wl,-a,archive" + LD=ld + LD_LDFLAGS='-a archive' + if test "$enable_debug" = yes; then +@@ -20813,7 +20813,7 @@ echo "$as_me: error: Unable to configure + # standard compilers + CC=cc + CC_OPTIONS='-O -DNDEBUG -DSYSV -Dhpux +Z +DAportable' +- CC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl' ++ CC_LDFLAGS="${CC_LDFLAGS} -Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl" + if test "$WITH_G77" != yes; then + #AC_CHECK_PROG(F77,fort77,yes,no) + for ac_prog in fort77 f77 f90 f2c-f77 +@@ -21162,7 +21162,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + FC_OPTIONS='+O2 +E4 +Z +DAportable' + FC_OPTIONS_O0='+E4 +Z +DAportable' +- FC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl' ++ FC_LDFLAGS="${FC_LDFLAGS} -Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl" + LD=ld + LD_LDFLAGS= + if test "$enable_debug" = yes; then +@@ -21194,7 +21194,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + # standard compilers + CC=cc + CC_OPTIONS='-O -DNDEBUG -DSYSV -Dhpux -Dhppa +Z +DAportable' +- CC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl' ++ CC_LDFLAGS="${CC_LDFLAGS} -Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl" + if test "$WITH_G77" != yes; then + for ac_prog in fort77 f77 f90 f2c-f77 + do +@@ -21251,7 +21251,7 @@ echo "$as_me: error: Unable to configure + #AC_F77_LIBRARY_LDFLAGS + FLIBS='-ldld -lnsl -lU77 -lm' + +- FC_LDFLAGS='-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl' ++ FC_LDFLAGS="${FC_LDFLAGS} -Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl" + LD=ld + LD_LDFLAGS= + if test "$enable_debug" = yes; then +@@ -21308,7 +21308,7 @@ echo "$as_me: error: Unable to configure + if test "$enable_debug" = yes; then + CC_OPTIONS='-mno-cygwin -g -fwritable-strings -Wall' + fi +- CC_LDFLAGS= ++ CC_LDFLAGS="${CC_LDFLAGS}" + FC=g77 + if test "$WITH_G77" = yes; then + FC=g77 +@@ -21318,7 +21318,7 @@ echo "$as_me: error: Unable to configure + if test "$enable_debug" = yes; then + FC_OPTIONS="-g -mno-cygwin" + fi +- FC_LDFLAGS= ++ FC_LDFLAGS="${FC_LDFLAGS}" + if test "$with_f2c" = yes; then + # ignore with_f2c here + FC=g77 +@@ -21329,17 +21329,17 @@ echo "$as_me: error: Unable to configure + MAKEFILE_TARGET=Makefile.gcwin32 + ;; + # FreeBSD systems (not supported by INRIA) +- *-*-freebsd*) ++ *-*-freebsd* | *-*-dragonfly*) + GCC=yes + CC=gcc + CC_OPTIONS="${CFLAGS} -Dfreebsd" +- CC_LDFLAGS=-lm ++ CC_LDFLAGS="${CC_LDFLAGS} -lm" + CC_PICFLAGS='-fPIC' + # script shell f77 have bugs, get ours + FC=f77 + FC_OPTIONS="${CFLAGS} -Dfreebsd" + FC_OPTIONS_O0='-Dfreebsd' +- FC_LDFLAGS='-lm -Wl,--export-dynamic' ++ FC_LDFLAGS="${FC_LDFLAGS} -lm -Wl,--export-dynamic" + FC_PICFLAGS='-fPIC' + LD=ld + LD_LDFLAGS=-lm +@@ -22028,7 +22028,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLA + ac_compiler_gnu=$ac_cv_c_compiler_gnu + + CC_OPTIONS="${CFLAGS} -Dnetbsd" +- CC_LDFLAGS="${LDFLAGS} -Wl,-R${X11BASE}/lib" ++ CC_LDFLAGS="${CC_LDFLAGS} -Wl,-R${X11BASE}/lib" + CC_PICFLAGS='-fPIC' + # check for --export-dynamic + ac_save_LDFLAGS="$LDFLAGS" @@ -22591,7 +22591,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu FC="$F77" FC_OPTIONS="${FFLAGS}" FC_OPTIONS_O0=`echo $FC_OPTIONS | sed 's/-O0-9*//g'` - FC_LDFLAGS="${LDLAGS} -Wl,-R${X11BASE}/lib" -+ FC_LDFLAGS="${LDFLAGS} -Wl,-R${X11BASE}/lib" ++ FC_LDFLAGS="${FC_LDFLAGS} -Wl,-R${X11BASE}/lib" FC_PICFLAGS='-fPIC' # check for --export-dynamic ac_save_LDFLAGS="$LDFLAGS" +@@ -22698,13 +22698,13 @@ rm -f conftest.$ac_objext conftest$ac_ex + GCC=yes + CC=gcc + CC_OPTIONS='-no-cpp-precomp -O2 -DNDEBUG -I/sw/include -L/sw/lib' +- CC_LDFLAGS='-L/sw/lib' ++ CC_LDFLAGS="${CC_LDFLAGS} -L/sw/lib" + CC_PICFLAGS='-fPIC' + # script shell f77 have bugs, get ours + FC=g77 + FC_OPTIONS='-O2' + FC_OPTIONS_O0= +- FC_LDFLAGS='-L/sw/lib -ldl -lcc_dynamic' ++ FC_LDFLAGS="${FC_LDFLAGS} -L/sw/lib -ldl -lcc_dynamic" + FC_PICFLAGS='-fPIC' + LD=ld + LD_LDFLAGS= @@ -24208,7 +24208,8 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF @@ -84,6 +477,17 @@ $NetBSD: patch-ab,v 1.10 2005/09/22 00:05:40 dmcmahill Exp $ dirs="$USER_TK_LIB_PATH /lib /usr/lib /usr/lib/tk /usr/lib/tk8.* /shlib /shlib/tk /shlib/tk8.* /usr/shlib /shlib/tk /usr/shlib/tk8.* /usr/local/lib /usr/local/lib/tk /usr/local/lib/tk8.* /usr/local/shlib /usr/X11/lib/tk /usr/X11/lib/tk8.* /usr/lib/X11 /usr/lib/X11/tk /usr/lib/X11/tk8.* ../lib ../../lib /usr/tk /usr/local/tk /usr/local/tk/lib /usr/tk/lib /usr/local/tcl /usr/tcl /usr/local/tcl/lib /usr/tcl/lib /sw/lib " libexts="so so.1.0 sl dylib a" libnames="tk$CHK_TK_MAJ.$CHK_TK_MIN tk.$CHK_TK_MAJ.$CHK_TK_MIN tk$CHK_TK_MAJ$CHK_TK_MIN tk.$CHK_TK_MAJ$CHK_TK_MIN" +@@ -26262,8 +26271,8 @@ fi + LDFLAGS="$saved_ldflags" + if test $TK_LIB_OK = 1; then + if test "$USER_TK_LIB_PATH" = "" +- then TK_LIB=" -L$PATH_LIB_TK -l$NAME_LIB_TK" +- else TK_LIB=" -L$USER_TK_LIB_PATH -l$NAME_LIB_TK" ++ then TK_LIB=" -Wl,--rpath,$PATH_LIB_TL -L$PATH_LIB_TK -l$NAME_LIB_TK" ++ else TK_LIB=" -Wl,--rpath,$PATH_LIB_TL -L$USER_TK_LIB_PATH -l$NAME_LIB_TK" + fi + break 3; + fi @@ -26292,7 +26301,7 @@ echo "$as_me: error: header file tk.h h fi diff --git a/math/scilab/patches/patch-as b/math/scilab/patches/patch-as new file mode 100644 index 00000000000..caf2775ce50 --- /dev/null +++ b/math/scilab/patches/patch-as @@ -0,0 +1,19 @@ +$NetBSD: patch-as,v 1.6 2006/05/12 12:39:32 joerg Exp $ + +--- routines/sound/st.h.orig 2006-04-28 19:43:21.000000000 +0000 ++++ routines/sound/st.h +@@ -228,14 +228,7 @@ IMPORT int soxpreview; /* Preview mode: + + + /* Error code reporting */ +-#ifdef QNX + #include <errno.h> +-#endif +- +-#if defined(unix) || defined(__OS2__) || defined(aix) +-#include <errno.h> +-extern int errno; +-#endif + + #ifdef __OS2__ + #define REMOVE remove diff --git a/math/scilab/patches/patch-at b/math/scilab/patches/patch-at new file mode 100644 index 00000000000..524cf03de95 --- /dev/null +++ b/math/scilab/patches/patch-at @@ -0,0 +1,14 @@ +$NetBSD: patch-at,v 1.6 2006/05/12 12:39:32 joerg Exp $ + +--- routines/xsci/wf_fig.h.orig 2006-04-28 19:44:15.000000000 +0000 ++++ routines/xsci/wf_fig.h +@@ -48,8 +48,7 @@ + #include <errno.h> + + #ifndef linux +-#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__APPLE__) +-extern int errno; ++#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__DragonFly__) + extern int sys_nerr; + #if (! (defined(BSD) && (BSD >= 199306))) && !defined(freebsd) && !defined(__APPLE__) + extern char *sys_errlist[]; diff --git a/math/scilab/patches/patch-au b/math/scilab/patches/patch-au new file mode 100644 index 00000000000..6c1b3c1d183 --- /dev/null +++ b/math/scilab/patches/patch-au @@ -0,0 +1,12 @@ +$NetBSD: patch-au,v 1.8 2006/05/12 12:39:32 joerg Exp $ + +--- routines/xsci/x_data.h.orig 2006-04-28 19:48:54.000000000 +0000 ++++ routines/xsci/x_data.h +@@ -31,7 +31,6 @@ extern int X_mask; + #ifdef DEBUG + extern int debug; + #endif /* DEBUG */ +-extern int errno; + extern int max_plus1; + extern int pty_mask; + extern int waitingForTrackInfo; diff --git a/math/scilab/patches/patch-av b/math/scilab/patches/patch-av new file mode 100644 index 00000000000..d42a5c6e5cf --- /dev/null +++ b/math/scilab/patches/patch-av @@ -0,0 +1,14 @@ +$NetBSD: patch-av,v 1.6 2006/05/12 12:39:32 joerg Exp $ + +--- routines/xsci/x_misc.c.orig 2006-04-28 19:50:18.000000000 +0000 ++++ routines/xsci/x_misc.c +@@ -509,8 +509,7 @@ void Panic(s, a) + + /* #include "wf_fig.h" */ /** for sys_errlist **/ + #ifndef linux +-#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__APPLE__) +-extern int errno; ++#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__APPLE__) && !defined(__DragonFly__) + extern int sys_nerr; + #if (! (defined(BSD) && (BSD >= 199306))) && !defined(freebsd) && !defined(__APPLE__) + extern char *sys_errlist[]; diff --git a/math/scilab/patches/patch-aw b/math/scilab/patches/patch-aw new file mode 100644 index 00000000000..3bffa57ea6c --- /dev/null +++ b/math/scilab/patches/patch-aw @@ -0,0 +1,13 @@ +$NetBSD: patch-aw,v 1.6 2006/05/12 12:39:32 joerg Exp $ + +--- Makefile.in.orig 2005-05-31 07:57:32.000000000 +0000 ++++ Makefile.in +@@ -293,7 +293,7 @@ postinstall: + @$(RM) -f -r contrib + @mkdir contrib + @mv contrib-loader.sce contrib/loader.sce +- @$(RM) man/*/*/*.xml ++ @find man -name \*.xml -exec ${RM} {} \; + @@STRIP@ bin/scilex; + + uninstall: |