summaryrefslogtreecommitdiffstats
path: root/math/gretl/files/patch-lib::Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'math/gretl/files/patch-lib::Makefile.in')
-rw-r--r--math/gretl/files/patch-lib::Makefile.in56
1 files changed, 56 insertions, 0 deletions
diff --git a/math/gretl/files/patch-lib::Makefile.in b/math/gretl/files/patch-lib::Makefile.in
new file mode 100644
index 000000000..f193e4b10
--- /dev/null
+++ b/math/gretl/files/patch-lib::Makefile.in
@@ -0,0 +1,56 @@
+--- lib/Makefile.in.orig Mon Apr 16 10:13:11 2007
++++ lib/Makefile.in Mon May 21 16:10:51 2007
+@@ -25,6 +25,11 @@
+
+ have_gtk = @have_gtk@
+
++datadir = @datadir@
++CPPFLAGS = @CPPFLAGS@ -DDATADIR=\"$(datadir)\"
++LDFLAGS = @LDFLAGS@
++INTL_LIBS = @LTLIBINTL@
++
+ ifeq ($(INSTALL_PROGRAM),)
+ INSTALL_PROGRAM = $(INSTALL) -m 755
+ endif
+@@ -39,7 +44,7 @@
+ libdir = $(prefix)/lib
+ includedir = $(prefix)/include/gretl
+ aclocaldir = $(prefix)/share/aclocal
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(prefix)/libdata/pkgconfig
+
+ INSTALLDIRS = $(libdir) $(includedir) $(aclocaldir)
+
+@@ -55,8 +60,8 @@
+
+ # hard-coded -L/usr/local/lib is a bodge!!
+
+-LIBS = $(LAPACK_LIBS) -lm -ldl -L/usr/local/lib -lz $(XML_LIBS) \
+- $(GLIB_LIBS) $(GMP_LIBS) $(FFTW_LIBS)
++LIBS = $(LAPACK_LIBS) -lm -lz $(XML_LIBS) \
++ $(GLIB_LIBS) $(GMP_LIBS) $(FFTW_LIBS) $(INTL_LIBS)
+
+ #### End of system configuration section. ####
+
+@@ -204,10 +209,10 @@
+ LOBJS = $(SRCS:.c=.lo)
+ AUX_LOBJ = $(CEPHES_SRC:.c=.lo) $(MINPACK_SRC:.c=.lo)
+
+-LIBTOOL = ../libtool
++LIBTOOL = @LIBTOOL@
+
+ override CFLAGS += -I.. -I$(topsrc) -I$(libsrc) $(XML_CFLAGS) $(GLIB_CFLAGS) \
+- $(GMP_CFLAGS) $(FFTW_CFLAGS) -DHAVE_CONFIG_H
++ $(GMP_CFLAGS) $(FFTW_CFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H
+
+ COMPILE = $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS)
+
+@@ -216,7 +221,7 @@
+ $(CC) $(CFLAGS) -MM -MT $*.lo $< > .deps/$*.d
+
+ $(LIBGRETL): .deps $(LOBJS) $(AUX_LOBJ)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(LOBJS) $(AUX_LOBJ) \
++ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(LOBJS) $(AUX_LOBJ) \
+ -rpath $(prefix)/lib $(LIBS) \
+ -version-info $(CURRENT):$(REVISION):$(AGE)
+