[packages] libfreecwmp: add package
authorLuka Perkov <luka@openwrt.org>
Tue, 25 Sep 2012 17:34:21 +0000 (17:34 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 25 Sep 2012 17:34:21 +0000 (17:34 +0000)
SVN-Revision: 33552

libs/libfreecwmp/Makefile [new file with mode: 0644]

diff --git a/libs/libfreecwmp/Makefile b/libs/libfreecwmp/Makefile
new file mode 100644 (file)
index 0000000..205b732
--- /dev/null
@@ -0,0 +1,44 @@
+#
+# Copyright (C) 2012 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:=libfreecwmp
+PKG_VERSION:=2012-09-25
+PKG_RELEASE=$(PKG_SOURCE_VERSION)
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=git://dev.libfreecwmp.org/libfreecwmp
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=54e86aecbbb32c2032f78fc4781b346ed8573e56
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
+
+PKG_INSTALL:=1
+PKG_FIXUP:=autoreconf
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libfreecwmp
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=CWMP library
+  URL:=http://libfreecwmp.org/
+endef
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/libfreecwmp.h $(1)/usr/include
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreecwmp.{a,so*} $(1)/usr/lib
+endef
+
+define Package/libfreecwmp/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreecwmp.so.* $(1)/usr/lib
+endef
+
+$(eval $(call BuildPackage,libfreecwmp))