fix kismet client dependency
[openwrt.git] / package / matrixssl / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := matrixssl
6 PKG_VERSION := 1.2.4
7 PKG_RELEASE := 1
8 PKG_MD5SUM := 771c1489488e62668d673478311d63ca
9
10 PKG_SOURCE_SITE := http://nbd.vd-s.ath.cx/openwrt \
11 http://openwrt.openbsd-geek.de/
12 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_CAT := zcat
14 PKG_SOURCE_DIR := $(PKG_NAME)
15 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
16 PKG_IPK := $(PACKAGE_DIR)/lib$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
17
18 $(DL_DIR)/$(PKG_SOURCE_FILE):
19 mkdir -p $(DL_DIR)
20 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
21
22 $(PKG_BUILD_DIR)/.patched: $(DL_DIR)/$(PKG_SOURCE_FILE)
23 mkdir -p $(TOOL_BUILD_DIR)
24 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
25 $(PATCH) $(PKG_BUILD_DIR) ./patches
26 touch $(PKG_BUILD_DIR)/.patched
27
28 $(PKG_BUILD_DIR)/src/libmatrixssl.so: $(PKG_BUILD_DIR)/.patched
29 $(MAKE) -C $(PKG_BUILD_DIR)/src \
30 $(TARGET_CONFIGURE_OPTS) \
31 DFLAGS="$(TARGET_CFLAGS) -Wall"
32
33 $(STAGING_DIR)/lib/libmatrixssl.so: $(PKG_BUILD_DIR)/src/libmatrixssl.so
34 cp -a $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/lib
35 mkdir -p $(STAGING_DIR)/include/matrixSsl
36 cp $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/include/matrixSsl
37 ln -sf matrixSsl/matrixSsl.h $(STAGING_DIR)/include/matrixSsl.h
38
39 $(PKG_IPK): $(STAGING_DIR)/lib/libmatrixssl.so
40 mkdir -p $(PACKAGE_DIR)
41 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_BUILD_DIR)/ipkg/matrixssl matrixssl.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
42 mkdir -p $(PKG_BUILD_DIR)/ipkg/matrixssl/usr/lib
43 cp -a $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(PKG_BUILD_DIR)/ipkg/matrixssl/usr/lib
44 $(STRIP) $(PKG_BUILD_DIR)/ipkg/matrixssl/usr/lib/*
45 $(IPKG_BUILD) $(PKG_BUILD_DIR)/ipkg/matrixssl $(PACKAGE_DIR)
46
47 $(IPKG_STATE_DIR)/info/libmatrixssl.list: $(PKG_IPK)
48 $(IPKG) install $(PKG_IPK)
49
50 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
51 prepare: $(PKG_BUILD_DIR)/.patched
52 compile: $(STAGING_DIR)/lib/libmatrixssl.so $(PKG_IPK)
53 install: $(PKG_ZLIB) $(IPKG_STATE_DIR)/info/libmatrixssl.list
54
55 clean:
56 rm -rf $(PKG_BUILD_DIR)
57 rm -f $(STAGING_DIR)/lib/libmatrixssl* $(STAGING_DIR)/include/matrixssl*
58 rm -f $(PKG_IPK)
59
This page took 0.040537 seconds and 5 git commands to generate.