1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Update to 1.1

PR:		ports/158607
Submitted by:	Stefan Bethke <stb@lassitu.de> (maintainer)
This commit is contained in:
Steve Wills 2011-07-03 13:21:38 +00:00
parent 1ca864e36e
commit 5e7ea86673
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276983
3 changed files with 7 additions and 21 deletions

View File

@ -6,13 +6,15 @@
#
PORTNAME= pngnq
PORTVERSION= 1.0
PORTVERSION= 1.1
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= stb@lassitu.de
COMMENT= A tool for quantizing PNG images in RGBA format
LICENSE= BSD
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
GNU_CONFIGURE= yes
@ -20,6 +22,8 @@ GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" LIBS=-lpng
USE_GNOME= pkgconfig
PORTDOCS= README COPYING
PLIST_FILES= bin/pngcomp bin/pngnq
MAN1= pngnq.1

View File

@ -1,2 +1,2 @@
SHA256 (pngnq-1.0.tar.gz) = 3413cb72af4e1a25268892ad182f6f9f516c5b67d9ff873968e5a60c293c00a7
SIZE (pngnq-1.0.tar.gz) = 105155
SHA256 (pngnq-1.1.tar.gz) = c147fe0a94b32d323ef60be9fdcc9b683d1a82cd7513786229ef294310b5b6e2
SIZE (pngnq-1.1.tar.gz) = 117372

View File

@ -1,18 +0,0 @@
--- src/errors.h.orig 2011-04-14 19:57:13.000000000 +0400
+++ src/errors.h 2011-04-14 20:00:25.000000000 +0400
@@ -20,9 +20,11 @@
PNGNQ_LOG_ERR(__VA_ARGS__)\
fflush(stderr);
-#define PNGNQ_WARNING(...) (fprintf(stderr,"pngnq - Warning: "));\
- fprintf(stderr, __VA_ARGS__);\
- PNGNQ_LOG_WARNING(__VA_ARGS__)\
- fflush(stderr);
+#define PNGNQ_WARNING(...) \
+ do { \
+ fprintf(stderr, "pngnq - Warning: " __VA_ARGS__); \
+ PNGNQ_LOG_WARNING(__VA_ARGS__) \
+ fflush(stderr); \
+ } while (0)
#define PNGNQ_MESSAGE(...) {if(verbose) {fprintf(stderr,__VA_ARGS__);fflush(stderr);}}