freebsd-ports/graphics/tif22pnm/Makefile
Tijl Coosemans cdb8256f1b Fix problems with missing libs when the linker enforces explicit linking
(ports that are dependencies of other ports)

net-p2p/transmission-cli: add USES=libtool and remove PTHREAD_LIBS
sysutils/deltup: simplify patch by using MAKE_ARGS
x11-fm/rox-filer: convert to USES=shared-mime-info
x11-wm/emerald: remove PTHREAD_LIBS

PR:		192062
2014-08-12 15:29:37 +00:00

41 lines
1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= tif22pnm
PORTVERSION= 0.14
CATEGORIES= graphics
MASTER_SITES= http://pts.szit.bme.hu/ \
GOOGLE_CODE
MAINTAINER= martymac@FreeBSD.org
COMMENT= Converts TIFF-sampled images to PNM image
LICENSE= GPLv2
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff
PROJECTHOST= sam2p
USES= pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libtiff-ldir=${LOCALBASE}/lib \
--with-libtiff-idir=${LOCALBASE}/include
PLIST_FILES= bin/png22pnm bin/tif22pnm
TIF22PNM_SRCS= ptspnm.c minigimp.c miniglib.c ptstiff3.c tif22pnm.c
PNG2PNM_SRCS= png22pnm.c
do-build:
cd ${WRKSRC} \
&& ${CC} ${CFLAGS} -DNDEBUG -I${LOCALBASE}/include \
${TIF22PNM_SRCS} -o tif22pnm -L${LOCALBASE}/lib -ltiff \
&& ${CC} ${CFLAGS} -DNDEBUG `pkg-config libpng15 --cflags` \
${PNG2PNM_SRCS} -o png22pnm `pkg-config libpng15 --libs` -lm
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/png22pnm ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tif22pnm ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>