aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/optipng
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/optipng')
-rw-r--r--graphics/optipng/Makefile6
-rw-r--r--graphics/optipng/distinfo6
-rw-r--r--graphics/optipng/files/patch-src__scripts__gcc-syslib.mak26
-rw-r--r--graphics/optipng/files/patch-src__scripts__unix-secure.mak34
4 files changed, 41 insertions, 31 deletions
diff --git a/graphics/optipng/Makefile b/graphics/optipng/Makefile
index 097c774ac7ba..8eb1591ae4b3 100644
--- a/graphics/optipng/Makefile
+++ b/graphics/optipng/Makefile
@@ -6,15 +6,17 @@
#
PORTNAME= optipng
-PORTVERSION= 0.5.3
+PORTVERSION= 0.5.4
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= freaky@aagh.net
COMMENT= An optimizer for PNG files
+LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
+
BUILD_WRKSRC= ${WRKSRC}/src
-MAKEFILE= scripts/gcc-syslib.mak
+MAKEFILE= scripts/unix-secure.mak
ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/optipng
MAN1= optipng.1
diff --git a/graphics/optipng/distinfo b/graphics/optipng/distinfo
index 2df2bc94f15d..855d4a305763 100644
--- a/graphics/optipng/distinfo
+++ b/graphics/optipng/distinfo
@@ -1,3 +1,3 @@
-MD5 (optipng-0.5.3.tar.gz) = a6f3234a47464ecc1f455b52f0769492
-SHA256 (optipng-0.5.3.tar.gz) = fa910c7dc8dbe29323494097255f034d374f8ef0e42ace3e3855408e014319e5
-SIZE (optipng-0.5.3.tar.gz) = 1090872
+MD5 (optipng-0.5.4.tar.gz) = 8d989971e674a06b55e17fc5b70c41aa
+SHA256 (optipng-0.5.4.tar.gz) = 3074f7ebac74683c12b805d58f836400cbec51355fad13f47d46775792ad35ab
+SIZE (optipng-0.5.4.tar.gz) = 1094572
diff --git a/graphics/optipng/files/patch-src__scripts__gcc-syslib.mak b/graphics/optipng/files/patch-src__scripts__gcc-syslib.mak
deleted file mode 100644
index b37cbb39e323..000000000000
--- a/graphics/optipng/files/patch-src__scripts__gcc-syslib.mak
+++ /dev/null
@@ -1,26 +0,0 @@
---- ./src/scripts/gcc-syslib.mak.orig Mon Jul 24 20:49:09 2006
-+++ ./src/scripts/gcc-syslib.mak Mon Jul 24 20:53:49 2006
-@@ -15,18 +15,16 @@
- # Usage: make -f scripts/gcc-syslib.mak
-
-
--prefix=/usr/local
-+prefix=${PREFIX}
- exec_prefix=${prefix}
- bindir=${exec_prefix}/bin
--mandir=${prefix}/man
--man1dir=${mandir}/man1
-+man1dir=${MAN1PREFIX}/man/man1
-
--CC = gcc
- LD = $(CC)
--CFLAGS = -O2 -Wall
--LDFLAGS = -s
-+CFLAGS ?= -O2 -Wall
-+LDFLAGS += -s
-
--OPTIPNG = optipng$(EXE)
-+OPTIPNG = optipng
- PNGLIB = libpng.a
- PNGXLIB = pngxtern.a
- PNGMAK = scripts/makefile.gcc
diff --git a/graphics/optipng/files/patch-src__scripts__unix-secure.mak b/graphics/optipng/files/patch-src__scripts__unix-secure.mak
new file mode 100644
index 000000000000..ba0debf7a3b9
--- /dev/null
+++ b/graphics/optipng/files/patch-src__scripts__unix-secure.mak
@@ -0,0 +1,34 @@
+--- ./src/scripts/unix-secure.mak.orig Fri Aug 11 19:08:00 2006
++++ ./src/scripts/unix-secure.mak Sat Aug 12 10:56:39 2006
+@@ -12,17 +12,14 @@
+ # Usage: make -f scripts/unix-secure.mak
+
+
+-prefix=/usr/local
++prefix=${PREFIX}
+ exec_prefix=${prefix}
+ bindir=${exec_prefix}/bin
+-mandir=${prefix}/man
+-man1dir=${mandir}/man1
++man1dir=${MAN1PREFIX}/man/man1
+
+-CC = cc
+-LD = $(CC)
+-MAKE = make
+-CFLAGS = -O
+-LDFLAGS = -s
++CFLAGS ?= -O
++LDFLAGS += -s -L${LOCALBASE}/lib
++CFLAGS += -I${LOCALBASE}/include
+
+ OPTIPNG = optipng
+ PNGXLIB = pngxtern.a
+@@ -35,7 +32,7 @@
+
+
+ $(OPTIPNG): $(OBJS) $(LIBS)
+- $(LD) -o $(OPTIPNG) $(LDFLAGS) $(OBJS) $(LIBS) -lpng -lz
++ $(CC) -o $(OPTIPNG) $(LDFLAGS) $(OBJS) $(LIBS) -lpng -lz
+
+
+ .c.o:
08-25 12:37:30 +0800'>2002-08-252-4/+3 * 1. Changed the lib depends on gettext to a build depends. This will meanalane2002-08-031-2/+2 * Bump PORTREVISION. KDE is fragile enough in its dependencies; we don'talane2002-08-021-0/+1 * Chase shlib rev of devel/gettextade2002-08-021-1/+1 * Fix MASTER_SITE_SUBDIR.will2002-07-101-1/+1 * Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-053-23/+9 * Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-163-2/+8 * Please welcome Qt3/KDE3 to our ports tree. This includes work since thewill2002-04-227-128/+343 * gettext upgrade uber-patch (stage 3)ade2002-04-131-1/+2 * Stage 1 of gettext update.ade2002-03-161-1/+1 * Add WWW.demon2001-12-281-0/+2 * Update to 2.2.2.demon2001-12-133-9/+16 * Upgrade to 2.2.1.demon2001-10-276-26/+23 * Set DIST_SUBDIR=KDEdemon2001-09-112-1/+2 * MAINTAINER -> kde@FreeBSD.orgdemon2001-09-011-1/+1 * Fix installation in a slightly different way.demon2001-08-212-6/+8 * Remove two languages not presented in new version.demon2001-08-201-3/+1 * Forgot to remove debug comment.demon2001-08-161-1/+1 * Upgrade to 2.2.demon2001-08-165-8/+31 * Remove Ukrainian from BATCH builds.demon2001-07-051-1/+1 * Exclude de, fr, ja, ru, zh_CN, zh_TW from bento's package.demon2001-04-171-1/+1 * Sort languages by name.demon2001-04-131-10/+10 * Examine LINGUAS variable before BATCH.demon2001-04-111-5/+5 * Allow to override MAINTAINER and CATEGORIES (in slave ports).demon2001-04-101-2/+2 * Add the ability to select which languages to install via dialog(1)-baseddemon2001-04-102-0/+87 * Update to 2.1.1demon2001-04-063-13/+2 * Overhaul QT/KDE support:will2001-04-031-2/+2