Skip to content

Commit

Permalink
+ libecwj2: saved from ::gentoo
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Oct 17, 2016
1 parent de438de commit 5a7a330
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sci-libs/libecwj2/Manifest
@@ -0,0 +1,15 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

AUX libecwj2-3.3-nolcms.patch 2738 SHA256 399bd397b22137714c2cae0938ef66c2f78d3e5a1ebcea51652133c3629e0c03 SHA512 62bc85b5667785e352bd2870d06eb28d8a67647adadb952f00934188824bf0b3d213a941b6b1e16d32835eaf194bf3e6e73675e599ef7697dfb68ea3806a9e25 WHIRLPOOL 7e09b32e4b77b472e7ea0336610fcd648b204596ff0a91c2f3714b41e0969cfe5dbe7e53435e8859c23bd4862a46734ad54ebf89401299dd9430449661241a6a
DIST libecwj2-3.3-2006-09-06.zip 5461201 SHA256 60ae34e2ba34ca77525950822f53243f374940f1cd13d2460eabbbd759e11074 SHA512 531826bc87b89562e3e6f5e68602c3595662ebfce7a5a29d1e31f3f960b17846d0164cda6b4bbcd709614e49cb5a5b764f61f2b2ba76a220b701e93adab4faa0 WHIRLPOOL 8bf529a82f995163f84ce21652b3cf6ed893fe132e299f3abc37b52a9fbec4aa161c42d5a1531cb0508cad15146ada88e8791fa7c5c8b0fb17856c4954a3be75
EBUILD libecwj2-3.3-r1.ebuild 1052 SHA256 1fc78f881d816bb6bf7c71247dad08785760ab31143370ae065b74173e206263 SHA512 751912c78f853e13378e49af1e575ddce7714c0cf40815fe6a80c0e258d1d1fcc51c666b4045173305e8bcedd5a881563f633c3ff90ccd62e1ce83882712bc96 WHIRLPOOL 3d27759f8c4c65a35dc2f02f9c6a6a256506883cc9bff2ecfa8d71d29531d58795dceab7151b4c8ca668415f4807de1e5af30d3385ae19fd3d424b7b46c9a3e0
MISC ChangeLog 2044 SHA256 06a09b2369c4fa8ecf195df06409dedfb789675345cd51baa422c27a772c63f8 SHA512 79cc36fa0e41b2359dbff2eb02e3e088841f98c055b2835cb467897b42520ff17ee25397c56fe90cbb87badb504faa3b0f040ead6aa2dc48660a3df8a1314b4f WHIRLPOOL ff8e36c6943d089758492a027ec3c7ac766b9ecc40bab8ea238ec9e6e239ea0688893b78f703931db35b478244307aa8c8c121847c752dec8d167ac43a839773
MISC metadata.xml 168 SHA256 2fc15316b226307080574c36b3761f27a23a642e89c60f02feabdc64049a188d SHA512 eec7cb4444156fec7e8fa88c1ae6a02d0cf125174ae058f4286c77806eaa40ab8f7644b319bc01a3a8fdb717c9bd13c93111c4756e13cb3724a55783cf9b5eda WHIRLPOOL 3a4c3ce31b3f3a766d4791d8e41880c365501387bca1219bc1b411c27d002c68e31119b18ebbd646d0fb1bd7630176692ac9159350f8bbfe1998fd3a76f83ff1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iEYEAREIAAYFAlGoriUACgkQVWmRsqeSphMv5gCff90yiXEmTWc5lcar37By++Cu
TZMAn2uI0v2EFmp/tKoL/JxIOs0N1QiW
=+N+c
-----END PGP SIGNATURE-----
82 changes: 82 additions & 0 deletions sci-libs/libecwj2/files/libecwj2-3.3-nolcms.patch
@@ -0,0 +1,82 @@
--- a/Makefile.am 2006-07-02 20:14:18.000000000 -0500
+++ b/Makefile.am 2009-03-16 14:04:13.000000000 -0500
@@ -1,3 +1,5 @@
+AUTOMAKE_OPTIONS = foreign
+
SUBDIRS = \
Source

@@ -127,7 +129,5 @@
Source/include/gdt_pub.h \
Source/include/gdt_stat.h \
Source/include/pcs_erm.h \
- Source/C/NCSEcw/lcms/include/lcms.h \
- Source/C/NCSEcw/lcms/include/icc34.h \
Source/NCSBuildGnu/NCSGnuConfig.h

--- a/Source/NCSBuildGnu/Makefile.am 2006-07-02 20:14:18.000000000 -0500
+++ b/Source/NCSBuildGnu/Makefile.am 2009-03-16 14:00:50.000000000 -0500
@@ -113,22 +113,6 @@
../C/NCSEcw/shared_src/qmf_util.c \
../C/NCSEcw/shared_src/quantize.c \
../C/NCSEcw/shared_src/unpack.c \
- ../C/NCSEcw/lcms/src/cmscnvrt.c \
- ../C/NCSEcw/lcms/src/cmserr.c \
- ../C/NCSEcw/lcms/src/cmsgamma.c \
- ../C/NCSEcw/lcms/src/cmsgmt.c \
- ../C/NCSEcw/lcms/src/cmsintrp.c \
- ../C/NCSEcw/lcms/src/cmsio1.c \
- ../C/NCSEcw/lcms/src/cmslut.c \
- ../C/NCSEcw/lcms/src/cmsmatsh.c \
- ../C/NCSEcw/lcms/src/cmsmtrx.c \
- ../C/NCSEcw/lcms/src/cmsnamed.c \
- ../C/NCSEcw/lcms/src/cmspack.c \
- ../C/NCSEcw/lcms/src/cmspcs.c \
- ../C/NCSEcw/lcms/src/cmssamp.c \
- ../C/NCSEcw/lcms/src/cmsvirt.c \
- ../C/NCSEcw/lcms/src/cmswtpnt.c \
- ../C/NCSEcw/lcms/src/cmsxform.c \
../C/NCSGDT2/NCSGDTEpsg.cpp \
../C/NCSGDT2/NCSGDTEPSGKey.cpp \
../C/NCSGDT2/NCSGDTLocation.cpp
--- a/Source/include/NCSJPCDefs.h 2006-07-02 20:15:24.000000000 -0500
+++ b/Source/include/NCSJPCDefs.h 2009-03-16 14:00:27.000000000 -0500
@@ -59,7 +59,7 @@
// Use LCMS for ICC->RGB conversions, supports both
// restricted and full ICC profiles.
//
-#define NCSJPC_USE_LCMS
+//#define NCSJPC_USE_LCMS

//
// Use TinyXML for XML DOM Parsing
--- a/configure.in 2006-07-02 20:13:30.000000000 -0500
+++ b/configure.in 2009-03-16 14:00:14.000000000 -0500
@@ -32,17 +32,6 @@
# Build some standard absolute include paths for the build

MAIN_INCLUDE_DIR="$PWD/Source/include"
-LCMS_INCLUDE_DIR="$PWD/Source/C/NCSEcw/lcms/include"
-
-# Run configure in the LCMS directory (using LCMS's own configure script)
-# to initialise any platform dependent settings that it uses
-# (e.g. typedefs for int types)
-
-THISDIR=$PWD
-cd Source/C/NCSEcw/lcms
-chmod +x configure
-./configure
-cd $THISDIR

# Build LIBECWJ2_DEFS with all defines, and NCSGnuSystemDefs.h with defines
# needed by apps building against libecwj2.
@@ -89,7 +78,7 @@
LIBECWJ2_CFLAGS="$PLATFORM_CFLAGS"
LIBECWJ2_STATIC_LDFLAGS="$PLATFORM_STATIC_LDFLAGS"
LIBECWJ2_SHARED_LDFLAGS="$PLATFORM_SHARED_LDFLAGS"
-LIBECWJ2_INCLUDES="-I$MAIN_INCLUDE_DIR -I$LCMS_INCLUDE_DIR"
+LIBECWJ2_INCLUDES="-I$MAIN_INCLUDE_DIR"

rm -f Source/NCSBuildGnu/NCSGnuSystemDefs.h
echo "#ifndef LIBECWJ2" > Source/NCSBuildGnu/NCSGnuSystemDefs.h

41 changes: 41 additions & 0 deletions sci-libs/libecwj2/libecwj2-3.3-r1.ebuild
@@ -0,0 +1,41 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/libecwj2/Attic/libecwj2-3.3-r1.ebuild,v 1.6 2012/08/03 19:42:46 bicatali Exp $

EAPI=4
inherit eutils autotools

DESCRIPTION="Library for both the ECW and the ISO JPEG 2000 image file formats"
SRC_URI="http://meuk.technokrat.nl/libecwj2-3.3-2006-09-06.zip"
HOMEPAGE="http://www.ermapper.com/ProductView.aspx?t=28"

LICENSE="ECWPL"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="doc examples static-libs"

DEPEND="${RDEPEND}
app-arch/unzip"

src_prepare() {
epatch "${FILESDIR}"/${P}-nolcms.patch
rm -rf Source/C/libjpeg Source/C/NCSEcw/lcms
# bug 328075
sed -i -e "s:includeHEADERS_INSTALL:INSTALL_HEADER:" \
Source/NCSBuildGnu/Makefile.am || die
eautoreconf
}

src_configure() {
econf $(use_enable static-libs static)
}

src_install() {
dodir /usr/include
default
use doc && dodoc SDK.pdf
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}

0 comments on commit 5a7a330

Please sign in to comment.