source: freewrt/package/matrixssl/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=matrixssl
6PKG_VERSION:=1.2.4
7PKG_RELEASE:=1
8PKG_MD5SUM:=771c1489488e62668d673478311d63ca
9
10PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13WRKBUILD:=${WRKDIR}/$(PKG_NAME)
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,LIBMATRIXSSL,libmatrixssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 touch $@
21
22$(WRKBUILD)/.built: $(WRKBUILD)/.configured
23 $(MAKE) -C $(WRKBUILD)/src \
24 $(TARGET_CONFIGURE_OPTS) \
25 DFLAGS="$(TARGET_CFLAGS) -Wall"
26 touch $@
27
28$(IPKG_LIBMATRIXSSL):
29 install -d -m0755 $(IDIR_LIBMATRIXSSL)/usr/lib
30 $(CP) $(WRKBUILD)/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: $(WRKBUILD)/.built
35 mkdir -p $(STAGING_DIR)/usr/include/matrixSsl
36 $(CP) $(WRKBUILD)/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) $(WRKBUILD)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib
40
41install-dev: $(STAGING_DIR)/usr/lib/libmatrixssl.so
42
43uninstall-dev:
44 rm -rf \
45 $(STAGING_DIR)/usr/include/matrixSsl* \
46 $(STAGING_DIR)/usr/lib/libmatrixssl.so* \
47
48compile-targets: install-dev
49clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.