[92361] trunk/dports/graphics
takeshi at macports.org
takeshi at macports.org
Thu Apr 26 00:37:34 PDT 2012
Revision: 92361
https://trac.macports.org/changeset/92361
Author: takeshi at macports.org
Date: 2012-04-26 00:37:34 -0700 (Thu, 26 Apr 2012)
Log Message:
-----------
Adding jbig2enc
Added Paths:
-----------
trunk/dports/graphics/jbig2enc/
trunk/dports/graphics/jbig2enc/Portfile
trunk/dports/graphics/jbig2enc/files/
trunk/dports/graphics/jbig2enc/files/patch-Makefile.diff
Added: trunk/dports/graphics/jbig2enc/Portfile
===================================================================
--- trunk/dports/graphics/jbig2enc/Portfile (rev 0)
+++ trunk/dports/graphics/jbig2enc/Portfile 2012-04-26 07:37:34 UTC (rev 92361)
@@ -0,0 +1,45 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup agl jbig2enc 20110822
+set bin jbig2
+categories graphics
+platforms darwin
+license GPL-2
+maintainers takeshi openmaintainer
+description JBIG2 Encoder
+long_description \
+ JBIG2 encodes bi-level (1 bpp) images using a number of \
+ clever tricks to get better compression than G4. \
+ This encoder can: \
+ * Generate JBIG2 files, or fragments for embedding in PDFs \
+ * Generic region encoding \
+ * Perform symbol extraction, classification and text region coding \
+ * Perform refinement coding and, \
+ * Compress multipage documents
+homepage https://github.com/agl/jbig2enc
+fetch.type git
+git.branch e8be922fb5
+
+depends_lib port:leptonica
+
+patchfiles patch-Makefile.diff
+
+use_configure no
+configure.cppflags-append -I${prefix}/include/leptonica
+
+build.target ${bin}
+build.args CC=${configure.cxx} \
+ CFLAGS="${configure.cppflags} ${configure.cflags}" \
+ LDFLAGS="${configure.ldflags}"
+
+destroot {
+ xinstall -m 755 ${worksrcpath}/${bin} ${destroot}${prefix}/bin
+ xinstall -m 644 ${worksrcpath}/${name}.h ${destroot}${prefix}/include
+ xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
+ xinstall -d -m 755 ${destroot}${prefix}/share/${name}
+ xinstall -m 644 ${worksrcpath}/pdf.py ${destroot}${prefix}/share/${name}
+}
Added: trunk/dports/graphics/jbig2enc/files/patch-Makefile.diff
===================================================================
--- trunk/dports/graphics/jbig2enc/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/graphics/jbig2enc/files/patch-Makefile.diff 2012-04-26 07:37:34 UTC (rev 92361)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2012-04-26 12:53:40.000000000 +0900
++++ Makefile 2012-04-26 12:54:35.000000000 +0900
+@@ -5,7 +5,7 @@
+ CFLAGS=-I${LEPTONICA}/src -Wall -I/usr/include -L/usr/lib -O3 ${EXTRA}
+
+ jbig2: libjbig2enc.a jbig2.cc
+- $(CC) -o jbig2 jbig2.cc -L. -ljbig2enc ${LEPTONICA}/src/.libs/liblept.a $(CFLAGS) -lpng -ljpeg -ltiff -lm -lz
++ $(CC) -o jbig2 jbig2.cc -L. -ljbig2enc -llept $(CFLAGS) $(LDFLAGS) -lpng -ljpeg -ltiff -lm -lz
+
+ libjbig2enc.a: jbig2enc.o jbig2arith.o jbig2sym.o
+ ar -rcv libjbig2enc.a jbig2enc.o jbig2arith.o jbig2sym.o
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120426/a21a5cc8/attachment.html>
More information about the macports-changes
mailing list