branch Attitude Adjustment packages
[12.09/packages.git] / libs / libfreecwmp / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libfreecwmp
11 PKG_VERSION:=2012-09-25
12 PKG_RELEASE=$(PKG_SOURCE_VERSION)
13
14 PKG_SOURCE_PROTO:=git
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
19
20 PKG_INSTALL:=1
21 PKG_FIXUP:=autoreconf
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libfreecwmp
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=CWMP library
29   URL:=http://libfreecwmp.org/
30 endef
31
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
37 endef
38
39 define Package/libfreecwmp/install
40         $(INSTALL_DIR) $(1)/usr/lib
41         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfreecwmp.so.* $(1)/usr/lib
42 endef
43
44 $(eval $(call BuildPackage,libfreecwmp))