| # |
| # Copyright (C) 2010-2013 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:=prop2uci |
| PKG_VERSION:=1.0 |
| PKG_RELEASE=1 |
| USE_SOURCE_DIR:=$(MRVLDIR)/services/android_wrapper/prop2uci |
| |
| include $(INCLUDE_DIR)/package.mk |
| |
| define Package/prop2uci |
| SECTION:=sys |
| CATEGORY:=Base system |
| DEPENDS:=+libprop2uci |
| TITLE:=Marvell Android Application to UCI wrapper application |
| endef |
| |
| define Package/libprop2uci |
| SECTION:=libs |
| CATEGORY:=Libraries |
| DEPENDS:=@TARGET_mmp +libuci |
| TITLE:=Marvell Android Property to UCI wrapper library |
| endef |
| |
| define Build/Clean |
| rm -rf $(USE_SOURCE_DIR)/*.so |
| rm -rf $(USE_SOURCE_DIR)/*.a |
| rm -rf $(USE_SOURCE_DIR)/*.o |
| endef |
| |
| define Build/InstallDev |
| $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin $(1)/usr/include/libprop2uci $(1)/usr/include/cutils |
| $(CP) $(USE_SOURCE_DIR)/getprop $(1)/usr/bin/ |
| $(CP) $(USE_SOURCE_DIR)/setprop $(1)/usr/bin/ |
| $(CP) $(USE_SOURCE_DIR)/delprop $(1)/usr/bin/ |
| $(CP) $(USE_SOURCE_DIR)/include/* $(1)/usr/include/libprop2uci/ |
| $(CP) $(USE_SOURCE_DIR)/include/* $(1)/usr/include/cutils/ |
| $(CP) $(USE_SOURCE_DIR)/libprop2uci.so $(1)/usr/lib/ |
| endef |
| |
| define Package/prop2uci/install |
| $(INSTALL_DIR) $(1)/usr/bin |
| $(CP) $(USE_SOURCE_DIR)/getprop $(1)/usr/bin/ |
| $(CP) $(USE_SOURCE_DIR)/setprop $(1)/usr/bin/ |
| $(CP) $(USE_SOURCE_DIR)/delprop $(1)/usr/bin/ |
| endef |
| |
| define Package/libprop2uci/install |
| $(INSTALL_DIR) $(1)/usr/lib |
| $(CP) $(USE_SOURCE_DIR)/libprop2uci.so $(1)/usr/lib/ |
| mkdir -p $(BIN_DIR)/symbol/libs/libprop2uci/lib |
| $(CP) $(USE_SOURCE_DIR)/libprop2uci.so $(BIN_DIR)/symbol/libs/libprop2uci/lib/ |
| endef |
| |
| $(eval $(call BuildPackage,prop2uci)) |
| $(eval $(call BuildPackage,libprop2uci)) |