[Packages] liboil: Fix compilation
authorOliver Ertl <oliver@ertl-net.net>
Wed, 21 Nov 2007 21:02:08 +0000 (21:02 +0000)
committerOliver Ertl <oliver@ertl-net.net>
Wed, 21 Nov 2007 21:02:08 +0000 (21:02 +0000)
SVN-Revision: 9589

libs/liboil/Makefile
libs/liboil/patches/001-no_docs.patch [new file with mode: 0644]

index 7722e3e..32514b7 100644 (file)
@@ -4,7 +4,7 @@
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
-# $Id: $
+# $Id:$
 
 include $(TOPDIR)/rules.mk
 
@@ -39,12 +39,16 @@ CONFIGURE_ARGS += \
        --enable-shared \
        --enable-static \
 
+CONFIGURE_VARS += \
+       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libiconv/include" \
+       CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/lib/libintl/include" \
+       LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib" \
+       LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libintl/lib" \
+       LIBS="-lnotimpl" \
+       ac_cv_lib_m_rintf=no \
+
 define Build/Configure
-        $(call Build/Configure/Default, \
-                , \
-                LIBS="-lnotimpl" \
-                ac_cv_lib_m_rintf=no \
-        )
+       $(call Build/Configure/Default)
        $(call libtool_disable_rpath)
 endef
 
diff --git a/libs/liboil/patches/001-no_docs.patch b/libs/liboil/patches/001-no_docs.patch
new file mode 100644 (file)
index 0000000..18c453f
--- /dev/null
@@ -0,0 +1,13 @@
+Index: liboil-0.3.12/Makefile.in
+===================================================================
+--- liboil-0.3.12.orig/Makefile.in     2007-11-21 21:53:32.000000000 +0100
++++ liboil-0.3.12/Makefile.in  2007-11-21 21:53:47.000000000 +0100
+@@ -247,7 +247,7 @@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+ AUTOMAKE_OPTIONS = foreign
+-SUBDIRS = liboil testsuite examples doc
++SUBDIRS = liboil testsuite
+ EXTRA_DIST = COPYING autogen.sh gtk-doc.make HACKING BUG-REPORTING
+ pkgconfig_DATA = liboil-$(LIBOIL_MAJORMINOR).pc
+ BUILT_SOURCES = liboil-$(LIBOIL_MAJORMINOR)-uninstalled.pc