summaryrefslogtreecommitdiff
path: root/graphics/tiff2png
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-07-15 16:45:52 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-07-15 16:45:52 +0000
commit02a9459f39b0cba2c05d9fd4e3dc534dbf3e8796 (patch)
treed545c33c0751a41db52e78f6cde62e31927bbacf /graphics/tiff2png
parent- Fix MASTER_SITES (diff)
- Fix MASTER_SITES
- Support PLIST_FILES PR: ports/69115 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=113730
Diffstat (limited to 'graphics/tiff2png')
-rw-r--r--graphics/tiff2png/Makefile11
-rw-r--r--graphics/tiff2png/files/patch-aa35
-rw-r--r--graphics/tiff2png/pkg-plist3
3 files changed, 10 insertions, 39 deletions
diff --git a/graphics/tiff2png/Makefile b/graphics/tiff2png/Makefile
index 62358efe121d..8178838e8ac9 100644
--- a/graphics/tiff2png/Makefile
+++ b/graphics/tiff2png/Makefile
@@ -9,8 +9,9 @@ PORTNAME= tiff2png
PORTVERSION= 0.91
PORTEPOCH= 1
CATEGORIES= graphics
-MASTER_SITES= http://www.libpng.org/pub/png/src/ \
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://swrinde.nde.swri.edu/pub/png/applications/
+MASTER_SITE_SUBDIR= png-mng
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts TIFF images to PNG format
@@ -19,8 +20,16 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
png.5:${PORTSDIR}/graphics/png
MAKEFILE= Makefile.unx
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
ALL_TARGET= tiff2png
+PORTDOCS= README
+PLIST_FILES= bin/tiff2png
+
+CFLAGS+= -DINVERT_MINISWHITE -DFAXPECT -DDEFAULT_DESTDIR_IS_CURDIR \
+ -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib -lpng -lz -ltiff -ljpeg -lm
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tiff2png ${PREFIX}/bin
.if !defined(NOPORTDOCS)
diff --git a/graphics/tiff2png/files/patch-aa b/graphics/tiff2png/files/patch-aa
deleted file mode 100644
index 6ec4ab106a1c..000000000000
--- a/graphics/tiff2png/files/patch-aa
+++ /dev/null
@@ -1,35 +0,0 @@
---- Makefile.unx.orig Wed Jul 3 21:31:37 2002
-+++ Makefile.unx Wed Jul 3 21:32:29 2002
-@@ -3,9 +3,9 @@
- # Copyright 2002 Greg Roelofs
-
- #CC=cc
--CC=gcc
--OPTIMFLAGS = -O3
--DEBUGFLAGS = -g -Wall -W
-+#CC=gcc
-+#OPTIMFLAGS = -O3
-+#DEBUGFLAGS = -g -Wall -W
- #COPY=cp
- COPY=/bin/cp -p
- DEL=/bin/rm -f
-@@ -60,16 +60,9 @@
-
- INSTALL=/usr/local
-
--CFLAGS=$(TIFF_VERSION) $(OPTION_FLAGS) $(OPTIMFLAGS) $(DEBUGFLAGS) \
-- -I$(TIFFINC) \
-- -I$(PNGINC) \
-- -I$(ZINC)
--LDFLAGS=-L. \
-- -L$(LIBTIFF) -ltiff \
-- -L$(LIBJPEG) -ljpeg \
-- -L$(LIBPNG) -lpng \
-- -L$(ZLIB) -lz \
-- -lm
-+CFLAGS+=$(TIFF_VERSION) -DFAXPECT $(MIN_INVERT) $(OPTIMFLAGS) $(DEBUGFLAGS) \
-+ -I${LOCALBASE}/include
-+LDFLAGS=-L. -L${LOCALBASE}/lib -lpng -lz -ltiff -ljpeg -lm
- SLDFLAGS=-L. \
- $(LIBTIFF)/libtiff.a \
- $(LIBJPEG)/libjpeg.a \
diff --git a/graphics/tiff2png/pkg-plist b/graphics/tiff2png/pkg-plist
deleted file mode 100644
index 4d802422e46f..000000000000
--- a/graphics/tiff2png/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-bin/tiff2png
-%%PORTDOCS%%share/doc/tiff2png/README
-%%PORTDOCS%%@dirrm share/doc/tiff2png