Convert matrixssl to new packaging style, install devel. stuff in STAGING_DIR/usr
[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)/.built:
23 $(MAKE) -C $(PKG_BUILD_DIR)/src \
24 $(TARGET_CONFIGURE_OPTS) \
25 DFLAGS="$(TARGET_CFLAGS) -Wall"
26 touch $(PKG_BUILD_DIR)/.built
27
28 $(IPKG_LIBMATRIXSSL):
29 install -d -m0755 $(IDIR_LIBMATRIXSSL)/usr/lib
30 cp -fpR $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(IDIR_LIBMATRIXSSL)/usr/lib/
31 $(RSTRIP) $(IDIR_LIBMATRIXSSL)
32 $(IPKG_BUILD) $(IDIR_LIBMATRIXSSL) $(PACKAGE_DIR)
33
34 $(STAGING_DIR)/usr/lib/libmatrixssl.so: $(PKG_BUILD_DIR)/.built
35 mkdir -p $(STAGING_DIR)/usr/include/matrixSsl
36 cp -fpR $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl
37 ln -sf matrixSsl/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl.h
38 mkdir -p $(STAGING_DIR)/usr/lib
39 cp -fpR $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib
40
41 install-dev: $(STAGING_DIR)/usr/lib/libmatrixssl.so
42
43 uninstall-dev:
44 rm -rf \
45 $(STAGING_DIR)/usr/include/matrixSsl* \
46 $(STAGING_DIR)/usr/lib/libmatrixssl.so* \
47
48 compile: install-dev
49 clean: uninstall-dev
This page took 0.049574 seconds and 5 git commands to generate.