remove UninstallDev
[openwrt/svn-archive/archive.git] / libs / axtls / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=axtls
12 PKG_VERSION:=1.1.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/axtls http://www.leroc.com.au/axTLS/
17 PKG_MD5SUM:=50e63d5fe002399e2ae63591908f7f5a
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/axTLS
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libaxtls
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Embedded client/server TLSv1 SSL library
27 URL:=http://sourceforge.net/projects/axtls
28 endef
29
30 define Package/axhttpd
31 SECTION:=net
32 CATEGORY:=Network
33 DEPENDS:=+libaxtls
34 TITLE:=A small embedded web server using the axTLS library
35 URL:=http://www.axtls.co.nr/
36 endef
37
38 define Build/Configure
39 $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
40 $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 CC="$(TARGET_CC)" \
46 STRIP="/bin/true" \
47 OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" \
48 all
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 PREFIX="$(PKG_INSTALL_DIR)/usr" \
51 install
52 endef
53
54 define Build/InstallDev
55 mkdir -p $(1)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/axTLS $(1)/usr/include/
57 mkdir -p $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.{a,so*} $(1)/usr/lib/
59 endef
60
61 define Package/libaxtls/install
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
64 endef
65
66 define Package/axhttpd/install
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
69 endef
70
71 $(eval $(call BuildPackage,libaxtls))
72 $(eval $(call BuildPackage,axhttpd))