1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/graphics/tiff2png/Makefile
Beech Rintoul 6878838a98 - Add OptionsNG
PR:		PR_176922
Submitted by:	nemysis <nemysis@gmx.ch>
2013-03-15 02:27:30 +00:00

44 lines
981 B
Makefile

# Created by: will
# $FreeBSD$
PORTNAME= tiff2png
PORTVERSION= 0.91
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= SF/png-mng/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts TIFF images to PNG format
LIB_DEPENDS= tiff:${PORTSDIR}/graphics/tiff \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${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
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
PLIST_FILES+= %%DOCSDIR%%/README
PLIST_DIRS+= %%DOCSDIR%%
.endif
.include <bsd.port.mk>