libxerces-c: add missing iconv dependency
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 26 Jan 2015 17:31:19 +0000 (18:31 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 26 Jan 2015 17:31:19 +0000 (18:31 +0100)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
libs/libxerces-c/Makefile

index 44885378f11382cb9f07222acfe00039b3373bfc..c2dd0972726f16e6eedbe38823b3631189fd8ab8 100644 (file)
@@ -28,15 +28,28 @@ PKG_INSTALL:=1
 include $(INCLUDE_DIR)/uclibc++.mk
 include $(INCLUDE_DIR)/package.mk
 
-CONFIGURE_ARGS += --disable-pretty-make
-TARGET_LDFLAGS += -lm
+CONFIGURE_ARGS += \
+       --disable-pretty-make \
+       --enable-transcoder-iconv \
+       --enable-netaccessor-socket \
+       --enable-msgloader-inmemory
+
+TARGET_CFLAGS += \
+       -I$(STAGING_DIR)/usr/lib/libiconv-full/include
+
+TARGET_CPPFLAGS += \
+       -I$(STAGING_DIR)/usr/lib/libiconv-full/include
+
+TARGET_LDFLAGS += \
+       -L$(STAGING_DIR)/usr/lib/libiconv-full/lib \
+       -lm
 
 define Package/libxerces-c
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=Validating XML parser library for C++
   URL:=http://xerces.apache.org/
-  DEPENDS:=$(CXX_DEPENDS) +libc +libpthread
+  DEPENDS:=$(CXX_DEPENDS) +libc +libiconv +libpthread
 endef
 
 define Package/libxerces-c-samples
@@ -73,17 +86,14 @@ define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/xercesc/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.a $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c-3.1.so $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.so $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c.a,libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
 endef
 
 define Package/libxerces-c/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c-3.1.so $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.so $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
 endef
 
 define Package/libxerces-c-samples/install