1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

- Update to 2.12.0

This commit is contained in:
Alex Kozlov 2018-08-01 11:58:21 +00:00
parent e2c8ff645f
commit e24a6bda7e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=476174
4 changed files with 26 additions and 28 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pngquant
PORTVERSION= 2.11.7
PORTVERSION= 2.12.0
DISTVERSIONSUFFIX= -src
CATEGORIES= graphics
MASTER_SITES= http://pngquant.org/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1517669180
SHA256 (pngquant-2.11.7-src.tar.gz) = d70b46c3335c7abf21944aced2d9d2b54819ab84ed1a140b354d5e8cc9f0fb0a
SIZE (pngquant-2.11.7-src.tar.gz) = 141959
TIMESTAMP = 1533123633
SHA256 (pngquant-2.12.0-src.tar.gz) = 0e540c64bb58c05f2a05b4eaf1d3d165f0d3278500f15abfeac47f93f8fa8fa8
SIZE (pngquant-2.12.0-src.tar.gz) = 143335

View File

@ -13,7 +13,7 @@ Index: configure
SSE=auto
OPENMP=
LIBPNG_DIR=.
@@ -41,7 +41,7 @@
@@ -35,7 +35,7 @@
help "--with-libimagequant=<dir> external libimagequant (lib/ default)"
help "--with-openmp=static compile with multicore support"
help "--with-lcms2/--without-lcms2 compile with color profile support"
@ -22,7 +22,7 @@ Index: configure
help "--with-cocoa/--without-cocoa use Cocoa framework to read images"
fi
help "--with-libpng=<dir> search for libpng in directory"
@@ -56,35 +56,35 @@
@@ -50,35 +50,35 @@
CC=*)
CC=${i#*=}
SKIP_CC_CHECK=1
@ -66,7 +66,7 @@ Index: configure
;;
--with-lcms2)
LCMS2=1
@@ -111,16 +111,16 @@
@@ -103,16 +103,16 @@
;;
--prefix=*)
PREFIX=${i#*=}
@ -86,7 +86,7 @@ Index: configure
;;
*)
echo "warning: unknown switch ${i%%=*} (see $0 --help for the list)"
@@ -130,7 +130,7 @@
@@ -122,7 +122,7 @@
# If someone runs sudo make install as very first command, and configure later,
# $CONFIG cannot be overwritten, and must be deleted before continuing.
@ -95,7 +95,7 @@ Index: configure
echo "Cannot overwrite file $CONFIG! Please delete it."
exit 1
fi
@@ -167,7 +167,7 @@
@@ -159,7 +159,7 @@
find_pkgconfig() {
local LIBNAME=$1
@ -104,7 +104,7 @@ Index: configure
cflags "$(pkg-config --cflags "$LIBNAME")"
lflags "$(pkg-config --libs "$LIBNAME")"
LIBRARY_FOUND_VERSION=$(pkg-config --modversion "$LIBNAME")
@@ -248,9 +248,13 @@
@@ -240,9 +240,13 @@
return 0
fi
@ -121,7 +121,7 @@ Index: configure
return 0
fi
done
@@ -305,12 +309,8 @@
@@ -299,12 +303,8 @@
# SSE
if [ "$SSE" = 'auto' ]; then
SSE=0
@ -136,7 +136,7 @@ Index: configure
fi
if [ "$SSE" -eq 1 ]; then
@@ -333,9 +333,8 @@
@@ -327,9 +327,8 @@
else
OPENMPFLAGS="-fopenmp"
fi
@ -148,16 +148,14 @@ Index: configure
cflags "$OPENMPFLAGS"
lflags "$OPENMPFLAGS"
status "OpenMP" "yes"
@@ -342,7 +342,7 @@
@@ -344,38 +343,35 @@
fi
# Cocoa
-if [[ "$OSTYPE" =~ "darwin" ]]; then
+if echo "$OSTYPE" | grep -q "darwin"; then
cflags "-mmacosx-version-min=10.6"
lflags "-mmacosx-version-min=10.6"
fi
@@ -365,32 +366,29 @@
cflags "-mmacosx-version-min=10.7"
lflags "-mmacosx-version-min=10.7"
fi
# pairs of possible *.h and lib*.so locations
@ -201,7 +199,7 @@ Index: configure
SOLIBSUFFIX=dll
else
SOLIBSUFFIX=so
@@ -431,7 +429,7 @@
@@ -416,7 +412,7 @@
if echo "#include \"png.h\"
int main(){
return !png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
@ -210,7 +208,7 @@ Index: configure
status "libpng" "custom flags"
HAS_LIBPNG=1
fi
@@ -442,7 +440,7 @@
@@ -427,7 +423,7 @@
if [ -n "$PNGH" ]; then
PNGH_STRING=$(pngh_string "$PNGH")
PNGH_MAJMIN=$(pngh_majmin "$PNGH")
@ -219,7 +217,7 @@ Index: configure
LIBPNGA=$(find_f "$LIBPNG_DIR" "libpng${PNGH_MAJMIN}.a")
if [ -z "$LIBPNGA" ]; then
LIBPNGA=$(find_f "$LIBPNG_DIR" "libpng.a")
@@ -461,14 +459,19 @@
@@ -446,14 +442,19 @@
if find_pkgconfig libpng; then
HAS_LIBPNG=1
else
@ -244,7 +242,7 @@ Index: configure
if [ -n "$LIBPNGSO" ]; then
cflags "-I${PNGH%/*}"
lflags "-L${LIBPNGSO%/*} -lpng${PNGH_MAJMIN}"
@@ -482,7 +485,7 @@
@@ -467,7 +468,7 @@
fi
fi
if [ "$HAS_LIBPNG" -eq 0 ]; then
@ -253,7 +251,7 @@ Index: configure
LIBPNG_CMD='`brew install libpng`'
else
LIBPNG_CMD='`apt-get install libpng16-dev` or `apt-get install libpng-dev` or `yum install libpng-devel`'
@@ -550,6 +553,6 @@
@@ -534,6 +535,6 @@
SOLIBSUFFIX = $SOLIBSUFFIX
STATICLIBDEPS = $STATICLIBDEPS
LIQSRCDIR = $LIQSRCDIR

View File

@ -5,7 +5,7 @@ Index: lib/configure
CONFIG="config.mk"
PREFIX="/usr/local"
@@ -86,7 +86,7 @@
@@ -105,7 +105,7 @@
# If someone runs sudo make install as very first command, and configure later,
# $CONFIG cannot be overwritten, and must be deleted before continuing.
@ -14,7 +14,7 @@ Index: lib/configure
echo "Cannot overwrite file $CONFIG! Please delete it."
exit 1
fi
@@ -146,12 +146,8 @@
@@ -167,12 +167,8 @@
# SSE
if [ "$SSE" = 'auto' ]; then
SSE=0
@ -29,7 +29,7 @@ Index: lib/configure
fi
if [ "$SSE" -eq 1 ]; then
@@ -174,9 +170,8 @@
@@ -195,9 +191,8 @@
else
OPENMPFLAGS="-fopenmp"
fi
@ -41,14 +41,14 @@ Index: lib/configure
cflags "$OPENMPFLAGS"
lflags "$OPENMPFLAGS"
status "OpenMP" "yes"
@@ -191,20 +186,20 @@
@@ -212,20 +207,20 @@
fi
# Cocoa
-if [[ "$OSTYPE" =~ "darwin" ]]; then
+if echo "$OSTYPE" | grep -q "darwin" ; then
cflags "-mmacosx-version-min=10.6"
lflags "-mmacosx-version-min=10.6"
cflags "-mmacosx-version-min=10.7"
lflags "-mmacosx-version-min=10.7"
fi
-if [[ "$OSTYPE" =~ "darwin" ]]; then