diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-03-06 03:53:29 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-03-06 03:53:29 +0000 |
commit | 3f5c61219e3ea85f757cf1b8896a4ecd88507248 (patch) | |
tree | 274deffea4eff7519a6519e05cc459c11ce3b514 /openwrt/package/matrixssl/matrixssl.mk | |
parent | 9d30652149fd745711342cec7ee8574e973ec241 (diff) |
bring up to date with nbd's br2_test20.tar.bz2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@308 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/matrixssl/matrixssl.mk')
-rw-r--r-- | openwrt/package/matrixssl/matrixssl.mk | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/openwrt/package/matrixssl/matrixssl.mk b/openwrt/package/matrixssl/matrixssl.mk new file mode 100644 index 000000000..c71d22415 --- /dev/null +++ b/openwrt/package/matrixssl/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* |