2013-04-23 12:47:02 +02:00
|
|
|
# Created by: ijliao
|
2003-01-07 13:53:49 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tif22pnm
|
2012-11-27 13:22:40 +01:00
|
|
|
PORTVERSION= 0.14
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 1
|
2003-01-07 13:53:49 +01:00
|
|
|
CATEGORIES= graphics
|
2010-10-15 13:28:40 +02:00
|
|
|
MASTER_SITES= http://pts.szit.bme.hu/ \
|
|
|
|
GOOGLE_CODE
|
2003-01-07 13:53:49 +01:00
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2012-08-01 14:53:30 +02:00
|
|
|
COMMENT= Converts TIFF-sampled images to PNM image
|
2003-01-07 13:53:49 +01:00
|
|
|
|
2012-08-01 14:53:30 +02:00
|
|
|
LICENSE= GPLv2
|
2012-07-26 07:40:22 +02:00
|
|
|
|
2014-12-24 21:02:04 +01:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
2013-11-21 14:24:27 +01:00
|
|
|
libtiff.so:${PORTSDIR}/graphics/tiff
|
2003-01-07 13:53:49 +01:00
|
|
|
|
2010-10-15 13:28:40 +02:00
|
|
|
PROJECTHOST= sam2p
|
2013-04-23 12:47:02 +02:00
|
|
|
USES= pkgconfig
|
2010-10-15 13:28:40 +02:00
|
|
|
|
2003-01-07 13:53:49 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-libtiff-ldir=${LOCALBASE}/lib \
|
|
|
|
--with-libtiff-idir=${LOCALBASE}/include
|
|
|
|
|
2004-08-23 21:05:06 +02:00
|
|
|
PLIST_FILES= bin/png22pnm bin/tif22pnm
|
|
|
|
|
2005-10-20 23:10:48 +02:00
|
|
|
TIF22PNM_SRCS= ptspnm.c minigimp.c miniglib.c ptstiff3.c tif22pnm.c
|
|
|
|
PNG2PNM_SRCS= png22pnm.c
|
2004-08-23 21:05:06 +02:00
|
|
|
|
2003-01-07 13:53:49 +01:00
|
|
|
do-build:
|
2005-10-20 23:10:48 +02:00
|
|
|
cd ${WRKSRC} \
|
|
|
|
&& ${CC} ${CFLAGS} -DNDEBUG -I${LOCALBASE}/include \
|
|
|
|
${TIF22PNM_SRCS} -o tif22pnm -L${LOCALBASE}/lib -ltiff \
|
2014-12-24 21:02:04 +01:00
|
|
|
&& ${CC} ${CFLAGS} -DNDEBUG `pkg-config libpng --cflags` \
|
|
|
|
${PNG2PNM_SRCS} -o png22pnm `pkg-config libpng --libs` -lm
|
2003-01-07 13:53:49 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-11-21 14:24:27 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/png22pnm ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tif22pnm ${STAGEDIR}${PREFIX}/bin
|
2003-01-07 13:53:49 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|