[117656] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Thu Mar 6 23:12:54 PST 2014


Revision: 117656
          https://trac.macports.org/changeset/117656
Author:   ryandesign at macports.org
Date:     2014-03-06 23:12:54 -0800 (Thu, 06 Mar 2014)
Log Message:
-----------
pngquant: new port, version 2.1.0 (#42730)

Added Paths:
-----------
    trunk/dports/graphics/pngquant/
    trunk/dports/graphics/pngquant/Portfile
    trunk/dports/graphics/pngquant/files/
    trunk/dports/graphics/pngquant/files/patch-Makefile.diff

Added: trunk/dports/graphics/pngquant/Portfile
===================================================================
--- trunk/dports/graphics/pngquant/Portfile	                        (rev 0)
+++ trunk/dports/graphics/pngquant/Portfile	2014-03-07 07:12:54 UTC (rev 117656)
@@ -0,0 +1,58 @@
+# -*- 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        pornel pngquant 2.1.0
+categories          graphics
+platforms           darwin
+maintainers         gmail.com:lpancescu
+license             BSD
+
+description         command-line utility and library for lossy compression of PNG images.
+
+long_description    pngquant is a ${description}. \
+                    The conversion reduces file sizes significantly (often as \
+                    much as 70%) and preserves full alpha transparency. \
+                    Generated images are compatible with all modern web \
+                    browsers, and have better fallback in IE6 than 24-bit PNGs.
+
+homepage            http://pngquant.org/
+master_sites        ${homepage}
+use_bzip2           yes
+distfiles           ${name}-${version}-src${extract.suffix}
+
+checksums           rmd160  f76bf91ed33b00eb5f5daf1e3b03ffe1170d5707 \
+                    sha256  ef41138ff320495c785155eb9f774ae6e1d41978b3e490854e6a8c46c0b032e2
+
+depends_lib         port:libpng \
+                    port:zlib
+
+patchfiles          patch-Makefile.diff
+
+use_configure       no
+
+variant universal {}
+
+build.env-append    PREFIX=${prefix} \
+                    CC=${configure.cc} \
+                    CFLAGSADD="[get_canonical_archflags cc]" \
+                    LDFLAGSADD="[get_canonical_archflags ld]" \
+                    ARFLAGS=rsv
+
+eval destroot.env-append ${build.env}
+
+post-destroot {
+    set docdir ${prefix}/share/doc/${subport}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        CHANGELOG \
+        COPYRIGHT \
+        README.md \
+        ${destroot}${docdir}
+}
+
+livecheck.type      regex
+livecheck.url       ${homepage}releases.html
+livecheck.regex     ${name}-(\[0-9.\]+)-src${extract.suffix}


Property changes on: trunk/dports/graphics/pngquant/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/pngquant/files/patch-Makefile.diff
===================================================================
--- trunk/dports/graphics/pngquant/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/graphics/pngquant/files/patch-Makefile.diff	2014-03-07 07:12:54 UTC (rev 117656)
@@ -0,0 +1,35 @@
+--- Makefile.orig	2014-02-26 16:33:10.000000000 -0600
++++ Makefile	2014-03-07 01:04:08.000000000 -0600
+@@ -15,10 +15,10 @@
+ 
+ CFLAGSOPT ?= -DNDEBUG -O3 -ffast-math -funroll-loops -fomit-frame-pointer
+ 
+-CFLAGS ?= -Wall -Wno-unknown-pragmas -I. -I/usr/local/include/ -I/usr/include/ $(CFLAGSOPT)
++CFLAGS ?= -Wall -Wno-unknown-pragmas -I. -I$(PREFIX)/include -I/usr/include $(CFLAGSOPT)
+ CFLAGS += -std=c99 $(CFLAGSADD)
+ 
+-LDFLAGS ?= -L/usr/local/lib/ -L/usr/lib/
++LDFLAGS ?= -L$(PREFIX)/lib -L/usr/lib
+ 
+ ifneq "$(wildcard $(CUSTOMZLIB))" ""
+ LDFLAGS += -L$(CUSTOMZLIB) -L$(CUSTOMZLIB)/lib
+@@ -29,19 +29,6 @@
+ LDFLAGS += -L$(CUSTOMLIBPNG) -L$(CUSTOMLIBPNG)/lib
+ CFLAGS += -I$(CUSTOMLIBPNG) -I$(CUSTOMLIBPNG)/include
+ 
+-else ifneq "$(wildcard /usr/local/include/png.h)" ""
+-
+-else ifneq "$(wildcard /opt/local/include/libpng15)" ""
+-LDFLAGS += -L/opt/local/lib
+-CFLAGS += -I/opt/local/include/libpng15
+-
+-else ifneq "$(wildcard /opt/X11/include/libpng15/)" ""
+-LDFLAGS += -L/opt/X11/lib
+-CFLAGS += -I/opt/X11/include/libpng15/
+-
+-else ifneq "$(wildcard /usr/X11/lib/)" ""
+-LDFLAGS += -L/usr/X11/lib/
+-CFLAGS += -I/usr/X11/include/
+ endif
+ 
+ LDFLAGS += -lpng -lz -lm lib/libimagequant.a -lm $(LDFLAGSADD)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140306/b5e180fc/attachment.html>


More information about the macports-changes mailing list