e71d4ca3b0dc76d6212d4a3e97e8f575dc40134c
[openwrt/svn-archive/archive.git] / net / matrixtunnel / 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:=matrixtunnel
12 PKG_VERSION:=0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://znerol.ch/files
17 PKG_MD5SUM:=af169751efc7d87d500716a48d74ddc5
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/matrixtunnel
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libmatrixssl
28 TITLE:=SSL tunnel based on matrixssl
29 URL:=http://znerol.ch/svn/matrixtunnel/trunk/
30 endef
31
32 define Package/matrixtunnel/description
33 matrixtunnel is a stripped down version of stunnel
34 based on matrixssl library.
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --without-libiconv-prefix \
40 --without-libintl-prefix \
41 --with-matrixssl-src="$(BUILD_DIR)/matrixssl" \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR)/src \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install
49 endef
50
51 define Package/matrixtunnel/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(CP) $(PKG_INSTALL_DIR)/usr/bin/matrixtunnel $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,matrixtunnel))