summaryrefslogtreecommitdiffstats
path: root/package/vtun/vtun.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-04-10 18:34:47 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-04-13 16:54:56 +0200
commit516708f94fa1ed9f23c680e7fee6dce78b05f09f (patch)
tree60130e38d214461e7561fd5cbf7844cab9ab273e /package/vtun/vtun.mk
parent04ba0089a672863e333a2de6b19d9b77fd0b26c1 (diff)
downloadbuildroot-novena-516708f94fa1ed9f23c680e7fee6dce78b05f09f.tar.gz
buildroot-novena-516708f94fa1ed9f23c680e7fee6dce78b05f09f.zip
vtun: convert to the autotools infrastructure
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/vtun/vtun.mk')
-rw-r--r--package/vtun/vtun.mk76
1 files changed, 5 insertions, 71 deletions
diff --git a/package/vtun/vtun.mk b/package/vtun/vtun.mk
index 15eba01d9..0990820f5 100644
--- a/package/vtun/vtun.mk
+++ b/package/vtun/vtun.mk
@@ -6,81 +6,15 @@
# to enable that within busybox
#
#############################################################
-#Old version 2.6
VTUN_VERSION:=3.0.2
VTUN_SOURCE:=vtun-$(VTUN_VERSION).tar.gz
VTUN_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/vtun/
-VTUN_DIR:=$(BUILD_DIR)/vtun-$(VTUN_VERSION)
-VTUN_CAT:=$(ZCAT)
-VTUN_BINARY:=vtund
-VTUN_TARGET_BINARY:=usr/sbin/vtund
+VTUN_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
+VTUN_DEPENDENCIES = zlib lzo openssl
-$(DL_DIR)/$(VTUN_SOURCE):
- $(call DOWNLOAD,$(VTUN_SITE),$(VTUN_SOURCE))
-
-vtun-source: $(DL_DIR)/$(VTUN_SOURCE)
-
-$(VTUN_DIR)/.unpacked: $(DL_DIR)/$(VTUN_SOURCE)
- $(VTUN_CAT) $(DL_DIR)/$(VTUN_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $@
-
-$(VTUN_DIR)/.patched: $(VTUN_DIR)/.unpacked
- toolchain/patch-kernel.sh $(VTUN_DIR) package/vtun/ vtun-$(VTUN_VERSION)\*.patch
- touch $@
-
-
-
-$(VTUN_DIR)/.configured: $(VTUN_DIR)/.patched
- (cd $(VTUN_DIR); rm -rf config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- ./configure $(QUIET) \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --libdir=/lib \
- --libexecdir=/usr/lib \
- --sysconfdir=/etc \
- --datadir=/usr/share \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
+VTUN_CONF_OPT = \
--with-ssl-headers=$(STAGING_DIR)/usr/include/openssl \
--with-lzo-headers=$(STAGING_DIR)/usr/include/lzo \
- --with-lzo-lib=$(STAGING_DIR)/usr/lib \
- )
- touch $(VTUN_DIR)/.configured
-
-$(VTUN_DIR)/$(VTUN_BINARY): $(VTUN_DIR)/.configured
- $(MAKE) -C $(VTUN_DIR)
-
-$(TARGET_DIR)/$(VTUN_TARGET_BINARY): $(VTUN_DIR)/$(VTUN_BINARY)
- $(MAKE) DESTDIR=$(TARGET_DIR) -C $(VTUN_DIR) install
- rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
- $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
-
-vtun: zlib lzo openssl $(TARGET_DIR)/$(VTUN_TARGET_BINARY)
+ --with-lzo-lib=$(STAGING_DIR)/usr/lib
-vtun-unpacked: $(VTUN_DIR)/.unpacked
-
-vtun-patched: $(VTUN_DIR)/.patched
-
-vtun-clean:
- $(MAKE) DESTDIR=$(TARGET_DIR) -C $(VTUN_DIR) uninstall
- -$(MAKE) -C $(VTUN_DIR) clean
-
-vtun-dirclean:
- rm -rf $(VTUN_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_VTUN),y)
-TARGETS+=vtun
-endif
+$(eval $(call AUTOTARGETS,package,vtun))