+++ /dev/null
-Respect host build env
-
---- matrixssl/src/Makefile
-+++ matrixssl/src/Makefile
-@@ -15,7 +15,7 @@
- E =
-
- LIBRARY = libmatrixssl$(SO)
--STATIC = libmatrixsslstatic$(A)
-+STATIC = libmatrixssl$(A)
-
- OBJECTS = \
- cipherSuite$(O) \
-@@ -51,5 +51,6 @@
- else
- #DFLAGS = -Os
--DFLAGS = -O3
-+DFLAGS := $(CFLAGS)
-+STRIP = test
- endif
-
-@@ -62,6 +63,6 @@
- # Override variables for compilation on x86-64 (AMD64, Nacona, etc)
- #
--ifeq ($(shell uname -m),x86_64)
--DFLAGS += -march=k8 -fPIC -DFP_64BIT -DTFM_X86_64 -DRDTSC
-+ifeq ($(findstring x86_64-,$(CHOST)),x86_64-)
-+DFLAGS += -fPIC -DFP_64BIT -DTFM_X86_64 -DRDTSC
- endif
-
-@@ -69,17 +70,17 @@
- # Compile options
- #
--SHARED = -shared
-+SHARED = -shared -Wl,-soname=$(LIBRARY)
- CFLAGS = $(DFLAGS) -DLINUX -I./
--LDFLAGS = -lc -lpthread
-+LDFLAGS += -lc -lpthread
-
- #
- # Override variables for compilation on Mac OS X (Darwin)
- #
--ifeq ($(shell uname),Darwin)
-+ifeq ($(findstring -darwin,$(CHOST)),-darwin)
- CC = cc
- SO = .dylib
- SHARED = -dynamiclib
- CFLAGS += -DOSX -isystem -I/usr/include
--LDFLAGS = -flat_namespace -install_name @executable_path/../src/$(LIBRARY)
-+LDFLAGS += -flat_namespace -install_name @executable_path/../src/$(LIBRARY)
- STRIP = test
- endif
-@@ -122,6 +122,20 @@
- $(RANLIB) $@
-
- #
-+# Install the package
-+#
-+DESTDIR =
-+PREFIX = /usr
-+LIBDIR = $(PREFIX)/lib
-+INCDIR = $(PREFIX)/include
-+MKDIR = mkdir -p
-+
-+install: $(LIBRARY) $(STATIC)
-+ $(MKDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCDIR)
-+ install -m 0644 $(LIBRARY) $(STATIC) $(DESTDIR)$(LIBDIR)
-+ install -m 0644 ../*.h $(DESTDIR)$(INCDIR)
-+
-+#
- # Clean up all generated files
- #
- clean:
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/matrixssl/matrixssl-1.2.4.ebuild,v 1.1 2005/03/18 15:15:19 solar Exp $
-
-DESCRIPTION="embedded SSL implementation"
-HOMEPAGE="http://www.matrixssl.org/"
-SRC_URI="${PN}-${PV//./-}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86"
-IUSE="doc"
-RESTRICT="fetch"
-
-DEPEND="virtual/libc"
-
-S=${WORKDIR}/${PN}/src
-
-pkg_nofetch() {
- einfo "You'll have to visit the website to download the file."
- einfo "http://www.matrixssl.org/download.html"
-}
-
-src_compile() {
- emake DFLAGS="${CFLAGS} -fPIC" || die
-}
-
-src_install() {
- dolib.so libmatrixssl.so || die
- cd ..
- if use doc ; then
- dodoc doc/*
- docinto examples
- dodoc examples/*
- fi
- insinto /usr/include
- doins matrixSsl.h || die
-}
+++ /dev/null
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/matrixssl/matrixssl-1.7.3.ebuild,v 1.2 2006/01/31 01:28:15 vapier Exp $
-
-inherit eutils
-
-DESCRIPTION="embedded SSL implementation"
-HOMEPAGE="http://www.matrixssl.org/"
-SRC_URI="mirror://gentoo/${PN}-${PV//./-}-open.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="doc"
-
-DEPEND=""
-
-S=${WORKDIR}/${PN}/src
-
-pkg_nofetch() {
- einfo "You'll have to visit the website to download the file."
- einfo "http://www.matrixssl.org/download.html"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-build.patch
-}
-
-src_install() {
- make install DESTDIR="${D}" || die
- cd ..
- if use doc ; then
- dodoc doc/*
- docinto examples
- dodoc examples/*
- fi
-}