2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
11 PKG_VERSION:=2012-09-25
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
15 PKG_SOURCE_URL:=git://dev.libfreecwmp.org/libfreecwmp
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=54e86aecbbb32c2032f78fc4781b346ed8573e56
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
23 include $(INCLUDE_DIR)/package.mk
25 define Package/libfreecwmp
29 URL:=http://libfreecwmp.org/
32 define Build/InstallDev
33 $(INSTALL_DIR) $(1)/usr/include
34 $(CP) $(PKG_INSTALL_DIR)/usr/include/libfreecwmp.h $(1)/usr/include
35 $(INSTALL_DIR) $(1)/usr/lib
36 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreecwmp.{a,so*} $(1)/usr/lib
39 define Package/libfreecwmp/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreecwmp.so.* $(1)/usr/lib
44 $(eval $(call BuildPackage,libfreecwmp))