first 2.6 stuff for netgear wgt634u, unusable.
[openwrt.git] / openwrt / 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_URL:=http://nbd.vd-s.ath.cx/openwrt
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,LIBMATRIXSSL,libmatrixssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 touch $@
23
24 $(PKG_BUILD_DIR)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR)/src \
26 $(TARGET_CONFIGURE_OPTS) \
27 DFLAGS="$(TARGET_CFLAGS) -Wall"
28 touch $@
29
30 $(IPKG_LIBMATRIXSSL):
31 install -d -m0755 $(IDIR_LIBMATRIXSSL)/usr/lib
32 cp -fpR $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(IDIR_LIBMATRIXSSL)/usr/lib/
33 $(RSTRIP) $(IDIR_LIBMATRIXSSL)
34 $(IPKG_BUILD) $(IDIR_LIBMATRIXSSL) $(PACKAGE_DIR)
35
36 $(STAGING_DIR)/usr/lib/libmatrixssl.so: $(PKG_BUILD_DIR)/.built
37 mkdir -p $(STAGING_DIR)/usr/include/matrixSsl
38 cp -fpR $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl
39 ln -sf matrixSsl/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl.h
40 mkdir -p $(STAGING_DIR)/usr/lib
41 cp -fpR $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib
42
43 install-dev: $(STAGING_DIR)/usr/lib/libmatrixssl.so
44
45 uninstall-dev:
46 rm -rf \
47 $(STAGING_DIR)/usr/include/matrixSsl* \
48 $(STAGING_DIR)/usr/lib/libmatrixssl.so* \
49
50 compile: install-dev
51 clean: uninstall-dev
This page took 0.042228 seconds and 5 git commands to generate.