Update the pkg-config file 46/17446/2
Clément DAVID [Tue, 10 Nov 2015 15:30:01 +0000 (16:30 +0100)]
Using call_scilab might be easier using pkg-config. We auto-magically setup
the produced binary rpath.

    gcc -o foo.o -c foo.c $(pkg-config --cflags scilab)
    gcc -o foo foo.o $(pkg-config --libs scilab)

Change-Id: Ic5dfef30334f7a779060015c8b82d2751c366ddd

scilab/modules/Makefile.am
scilab/scilab.pc.in

index 178754c..46bc21a 100644 (file)
@@ -128,7 +128,7 @@ libscilab_la_SOURCES =
 libscilab_la_LDFLAGS = $(AM_LDFLAGS) $(SCI_LDFLAGS)
 
 
-GUI_LIBS =     $(top_builddir)/modules/gui/libscigui.la \
+GUI_LIBS = $(top_builddir)/modules/gui/libscigui.la \
        $(top_builddir)/modules/renderer/libscirenderer.la \
        $(top_builddir)/modules/graphics/libscigraphics.la \
        $(top_builddir)/modules/graphic_export/libscigraphic_export.la \
index 0983ffd..1fa6c2a 100644 (file)
@@ -1,13 +1,12 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-bindir=@bindir@
-libdir=@libdir@/scilab
-includedir=@includedir@/scilab
+includedir=@includedir@
+libdir=@libdir@
 
-Name: libscilab
-Description: Scilab Library
+Name: scilab
+Description: Scilab engine as a library
 URL: http://www.scilab.org
 Version: @SCILAB_BINARY_VERSION@
-Requires: libxml-2.0 libpcre
-Libs: -L${libdir} -lscilab
-Cflags: -I${includedir} -lieee -lSM -lncurses @TCLTK_LIBS@
+Cflags: -I${includedir}/scilab
+Libs: -L${libdir}/scilab -lscicall_scilab -lscilab -Wl,-rpath-link=${libdir}/scilab
+