diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-27 23:20:34 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-27 23:20:34 +0000 |
commit | fe6af23ad45e116649d8e2f219146980eacf593f (patch) | |
tree | 88af494794d9bb901fe8ae508ce8d3dc0fcba995 /obsolete-buildroot/make/matrixssl.mk | |
parent | 220968fb96814a0c3fa1287a76665a60dbf13496 (diff) |
buildroot-20040827-matrixssl.patch.txt
buildroot-20040827-ntpclient.patch.txt
buildroot-20040827-radvd.patch.txt
buildroot-20040827-strace.patch.txt
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@152 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/matrixssl.mk')
-rw-r--r-- | obsolete-buildroot/make/matrixssl.mk | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/matrixssl.mk b/obsolete-buildroot/make/matrixssl.mk new file mode 100644 index 000000000..c71d22415 --- /dev/null +++ b/obsolete-buildroot/make/matrixssl.mk @@ -0,0 +1,80 @@ +## matrixssl + +MATRIXSSL_VERSION := 1.2.1 +MATRIXSSL_RELEASE := 1 + +MATRIXSSL_SOURCE := matrixssl-1-2-1.tar.gz +#MATRIXSSL_SITE := http://www.matrixssl.org/ +MATRIXSSL_SITE := http://nthill.free.fr/openwrt/sources/ +MATRIXSSL_DIR := $(BUILD_DIR)/matrixssl +MATRIXSSL_CAT := zcat + +MATRIXSSL_PATCH_DIR := $(SOURCE_DIR)/openwrt/patches/matrixssl + +MATRIXSSL_BUILD_DIR := $(BUILD_DIR)/libmatrixssl_$(MATRIXSSL_VERSION)-$(MATRIXSSL_RELEASE) +MATRIXSSL_IPK_DIR := $(OPENWRT_IPK_DIR)/libmatrixssl +MATRIXSSL_IPK := $(MATRIXSSL_BUILD_DIR)_$(ARCH).ipk + + +$(DL_DIR)/$(MATRIXSSL_SOURCE): + $(WGET) -P $(DL_DIR) $(MATRIXSSL_SITE)/$(MATRIXSSL_SOURCE) + + +$(MATRIXSSL_DIR)/.stamp-unpacked: $(DL_DIR)/$(MATRIXSSL_SOURCE) + $(MATRIXSSL_CAT) $(DL_DIR)/$(MATRIXSSL_SOURCE) | tar -C $(BUILD_DIR) -xvf - + + touch $(MATRIXSSL_DIR)/.stamp-unpacked + + +$(MATRIXSSL_DIR)/.stamp-patched: $(MATRIXSSL_DIR)/.stamp-unpacked + $(SOURCE_DIR)/patch-kernel.sh $(MATRIXSSL_DIR) $(MATRIXSSL_PATCH_DIR) + + touch $(MATRIXSSL_DIR)/.stamp-patched + + +$(MATRIXSSL_DIR)/.stamp-built: $(MATRIXSSL_DIR)/.stamp-patched + cd $(MATRIXSSL_DIR) ; \ + $(MAKE) -C src \ + CC=$(TARGET_CC) \ + DFLAGS="$(TARGET_CFLAGS)" \ + STRIP=/bin/true \ + all + + touch $(MATRIXSSL_DIR)/.stamp-built + + +$(MATRIXSSL_BUILD_DIR): $(MATRIXSSL_DIR)/.stamp-built + mkdir -p $(MATRIXSSL_BUILD_DIR) + + install -m0755 -d $(STAGING_DIR)/include/matrixSsl + install -m0644 $(MATRIXSSL_DIR)/matrixSsl.h $(STAGING_DIR)/include/matrixSsl/ + ln -fs matrixSsl/matrixSsl.h $(STAGING_DIR)/include/ + install -m0755 $(MATRIXSSL_DIR)/src/libmatrixssl.so $(STAGING_DIR)/lib/libmatrixssl.so.$(MATRIXSSL_VERSION) + ln -fs libmatrixssl.so.$(MATRIXSSL_VERSION) $(STAGING_DIR)/lib/libmatrixssl.so.1.2 + ln -fs libmatrixssl.so.1.2 $(STAGING_DIR)/lib/libmatrixssl.so + + mkdir -p $(MATRIXSSL_BUILD_DIR)/usr/lib + cp -a $(STAGING_DIR)/lib/libmatrixssl.so.* $(MATRIXSSL_BUILD_DIR)/usr/lib/ + + $(STRIP) $(MATRIXSSL_BUILD_DIR)/usr/lib/libmatrixssl.so.* + + +$(MATRIXSSL_IPK): $(MATRIXSSL_BUILD_DIR) + cp -a $(MATRIXSSL_IPK_DIR)/CONTROL $(MATRIXSSL_BUILD_DIR)/ + perl -pi -e "s/^Vers.*:.*$$/Version: $(MATRIXSSL_VERSION)-$(MATRIXSSL_RELEASE)/" $(MATRIXSSL_BUILD_DIR)/CONTROL/control + perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(MATRIXSSL_BUILD_DIR)/CONTROL/control + cd $(BUILD_DIR); $(IPKG_BUILD) $(MATRIXSSL_BUILD_DIR) + + +matrixssl-ipk: ipkg-utils libpthread-ipk $(MATRIXSSL_IPK) + +matrixssl-clean: + $(MAKE) -C $(MATRIXSSL_DIR) clean + +matrixssl-clean-all: + rm -rf $(MATRIXSSL_DIR) + rm -rf $(MATRIXSSL_BUILD_DIR) + rm -rf $(MATRIXSSL_IPK) + rm -rf $(STAGING_DIR)/include/pcap*.h + rm -rf $(STAGING_DIR)/lib/libpcap.a + rm -rf $(STAGING_DIR)/lib/libpcap.so* |