Root/libnxml/Makefile

1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=libnxml
4PKG_VERSION:=0.18.3
5PKG_RELEASE:=1
6
7PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8PKG_SOURCE_URL:=http://www.autistici.org/bakunin/$(PKG_NAME)/
9PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10
11include $(INCLUDE_DIR)/package.mk
12
13define Package/libnxml
14    MAINTAINER:="Xiangfu Liu" <xiangfu@sharism.cc>
15    SECTION:=libs
16    CATEGORY:=Libraries
17    TITLE:=Libnxml
18    URL:=http://www.autistici.org/bakunin/libnxml/doc/
19    DEPENDS:=+libcurl
20endef
21
22CONFIGURE_ARGS += --prefix=/usr
23TARGET_LDFLAGS += -Wl,-rpath-link -Wl,$(STAGING_DIR)/usr/lib
24
25define Package/libnxml/description
26    nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or streams.
27endef
28
29define Build/Compile
30    rm -rf $(PKG_INSTALL_DIR)
31    $(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR) \
32        $(MAKE_FLAGS) \
33        DESTDIR="$(PKG_INSTALL_DIR)" \
34        all install
35endef
36
37define Build/InstallDev
38    mkdir -p $(1)/usr/include
39    $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
40    mkdir -p $(1)/usr/lib
41    $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
42endef
43
44define Package/libnxml/install
45    $(INSTALL_DIR) $(1)/usr/lib
46    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnxml.so* $(1)/usr/lib/
47endef
48
49$(eval $(call BuildPackage,libnxml))
50

Archive Download this file



interactive