| # |
| # Copyright (C) 2006-2014 OpenWrt.org |
| # |
| # This is free software, licensed under the GNU General Public License v2. |
| # See /LICENSE for more information. |
| # |
| |
| include $(TOPDIR)/rules.mk |
| |
| PKG_NAME:=mxml |
| PKG_VERSION:=2.8 |
| PKG_RELEASE:=1 |
| |
| PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
| |
| #USE_SOURCE_DIR:=$(TOPDIR)/marvell/services/web/cgi/libs/libmxml/$(PKG_NAME)-$(PKG_VERSION) |
| MXML_SOURCE_DIR:=$(MRVLDIR)/services/web/cgi/libs/libmxml/$(PKG_NAME)-$(PKG_VERSION) |
| |
| PKG_INSTALL:=1 |
| |
| include $(INCLUDE_DIR)/package.mk |
| |
| TARGET_CFLAGS += $(FPIC) |
| |
| define Package/libmxml |
| SECTION:=libs |
| CATEGORY:=Libraries |
| TITLE:= mini xml parser library |
| endef |
| |
| #define Build/Prepare |
| # mkdir -p $(PKG_BUILD_DIR) |
| # cp -rf $(MXML_SOURCE_DIR)/* $(PKG_BUILD_DIR)/ |
| #endef |
| |
| define Build/InstallDev |
| $(INSTALL_DIR) $(1)/usr/include |
| $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/ |
| $(INSTALL_DIR) $(1)/usr/lib |
| $(CP) $(PKG_BUILD_DIR)/libmxml.{a,so*} $(1)/usr/lib/ |
| endef |
| |
| define Package/libmxml/install |
| $(INSTALL_DIR) $(1)/usr/lib |
| $(CP) $(PKG_BUILD_DIR)/libmxml.so.* $(1)/usr/lib/ |
| endef |
| |
| |
| $(eval $(call BuildPackage,libmxml)) |