41 lines
976 B
Makefile
41 lines
976 B
Makefile
# $OpenBSD: Makefile,v 1.16 2010/11/17 08:05:16 espie Exp $
|
|
|
|
COMMENT = converts TIFF images to PNG format
|
|
|
|
DISTNAME = tiff2png-0.91
|
|
REVISION = 0
|
|
CATEGORIES = graphics
|
|
|
|
HOMEPAGE = http://www.libpng.org/pub/png/apps/tiff2png.html
|
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
|
|
|
LIB_DEPENDS = graphics/tiff \
|
|
graphics/png
|
|
|
|
WANTLIB = c jpeg m z tiff>=35 png>=8
|
|
|
|
# custom, see tiff2png.c
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=png-mng/}
|
|
|
|
MAKE_FLAGS = CC="${CC}" OPTIMFLAGS="${CFLAGS}" DEBUGFLAGS="-Wall -W" \
|
|
CFLAGS='$$(TIFF_VERSION) -DFAXPECT $$(MIN_INVERT) $$(OPTIMFLAGS) $$(DEBUGFLAGS) -I${LOCALBASE}/include/libpng -I${LOCALBASE}/include' \
|
|
LDFLAGS="-L${LOCALBASE}/lib -lpng -lz -ltiff -ljpeg -lm"
|
|
|
|
MAKE_FILE = Makefile.unx
|
|
|
|
ALL_TARGET = tiff2png
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/tiff2png ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|