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