pkgsrc/x11/fltk13/patches/patch-ac
is d7f9150637 Unfortunately, fltk13 changes the semantics of the scroll widget in ways
not detectable by the compiler... so make a new package.
TBD: This still misses cairo support.
2011-12-01 16:35:12 +00:00

49 lines
1.2 KiB
Text

$NetBSD: patch-ac,v 1.1.1.1 2011/12/01 16:35:13 is Exp $
--- configure.orig 2011-06-16 15:50:44.000000000 +0000
+++ configure
@@ -1999,7 +1999,22 @@ if test "${enable_shared+set}" = set; th
enableval=$enable_shared;
fi
-if test x$enable_shared = xyes; then
+
+# Check whether --enable-libtool or --disable-libtool was given.
+if test "${enable_libtool+set}" = set; then
+ enableval="$enable_libtool"
+
+if test x$enable_libtool != xno; then
+ LIBTOOL="$enable_libtool"
+ enable_shared=no
+else
+ LIBTOOL=""
+fi
+fi
+
+
+if test "$enable_shared" = "yes"; then
+
PICFLAG=1
SHAREDSUFFIX=""
FLUID="fluid-shared"
@@ -2138,6 +2153,20 @@ else
LINKSHARED="$LINKFLTKCAIRO ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a"
fi
+if test "x$LIBTOOL" != "x"; then
+ LINKFLTK="../src/libfltk.la"
+ if test "x$LINKFLTKGL" != "x"; then
+ LINKFLTKGL="../src/libfltk_gl.la"
+ fi
+ if test "x$LINKFLTKIMG" != "x"; then
+ LINKFLTKIMG="../src/libfltk_images.la"
+ fi
+ LINKSHARED="-lfltk_images -lfltk_forms -lfltk"
+ DSONAME="libfltk.la"
+ FLDSONAME="libfltk_forms.la"
+ GLDSONAME="libfltk_gl.la"
+ IMGDSONAME="libfltk_images.la"
+fi