Changeset 4165


Ignore:
Timestamp:
2006-07-19T08:58:56+02:00 (12 years ago)
Author:
nico
Message:

port matrixssl to buildroot-ng

Location:
packages/libs/matrixssl
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/libs/matrixssl/Makefile

    r3112 r4165  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.2.4 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt 
    818PKG_MD5SUM:=771c1489488e62668d673478311d63ca 
    9  
    10 PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,LIBMATRIXSSL,libmatrixssl,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/libmatrixssl 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  DEPENDS:=+libpthread 
     29  TITLE:=Embedded SSL implementation 
     30  DESCRIPTION:=An embedded SSL implementation. 
     31  URL:=http://www.matrixssl.org/ 
     32endef 
    2033 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         touch $@ 
     34define Build/Configure 
     35endef 
    2336 
    24 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured 
     37define Build/Compile 
    2538        $(MAKE) -C $(PKG_BUILD_DIR)/src \ 
    2639                $(TARGET_CONFIGURE_OPTS) \ 
    2740                DFLAGS="$(TARGET_CFLAGS) -Wall" 
    28         touch $@ 
     41endef 
    2942 
    30 $(IPKG_LIBMATRIXSSL): 
    31         install -d -m0755 $(IDIR_LIBMATRIXSSL)/usr/lib 
    32         $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(IDIR_LIBMATRIXSSL)/usr/lib/ 
    33         $(RSTRIP) $(IDIR_LIBMATRIXSSL) 
    34         $(IPKG_BUILD) $(IDIR_LIBMATRIXSSL) $(PACKAGE_DIR) 
     43define Package/libmatrixssl/install 
     44        install -d -m0755 $(1)/usr/lib 
     45        $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so.* $(1)/usr/lib/ 
     46endef 
    3547 
    36 $(STAGING_DIR)/usr/lib/libmatrixssl.so: $(PKG_BUILD_DIR)/.built 
     48define Build/InstallDev 
    3749        mkdir -p $(STAGING_DIR)/usr/include/matrixSsl 
    3850        $(CP) $(PKG_BUILD_DIR)/matrixSsl.h $(STAGING_DIR)/usr/include/matrixSsl 
     
    4052        mkdir -p $(STAGING_DIR)/usr/lib 
    4153        $(CP) $(PKG_BUILD_DIR)/src/libmatrixssl.so* $(STAGING_DIR)/usr/lib 
     54endef 
    4255 
    43 install-dev: $(STAGING_DIR)/usr/lib/libmatrixssl.so 
     56define Build/UninstallDev 
     57        rm -rf \ 
     58                $(STAGING_DIR)/usr/include/matrixSsl* \ 
     59                $(STAGING_DIR)/usr/lib/libmatrixssl.so* 
     60endef 
    4461 
    45 uninstall-dev: 
    46         rm -rf \ 
    47           $(STAGING_DIR)/usr/include/matrixSsl* \ 
    48           $(STAGING_DIR)/usr/lib/libmatrixssl.so* \ 
    49  
    50 compile-targets: install-dev 
    51 clean-targets: uninstall-dev 
     62$(eval $(call BuildPackage,libmatrixssl)) 
Note: See TracChangeset for help on using the changeset viewer.