# Created by: Hideyuki KURASHINA # $FreeBSD$ PORTNAME= bmpp PORTVERSION= 3.16.0 PORTREVISION= 1 CATEGORIES= graphics perl5 MASTER_SITES= SF/dktools/dktools/dktools-${PORTVERSION} DISTNAME= dktools-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Convert PNG/JPEG/TIFF to PDF/EPS LICENSE= BSD3CLAUSE LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ libpng.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff GNU_CONFIGURE= yes CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/dktools\ --libdir=${PREFIX}/lib\ --includedir=${PREFIX}/include\ --with-gui=no\ --with-fallback-string-functions=yes CONFIGURE_ENV= ac_cv_header_sys_termios_h=no ALL_TARGET= bmpp MAKEFILE= GNUmakefile USES= gmake CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PLIST_FILES= bin/bmpp %%DATADIR%%/bmpp.txt pre-patch: @${REINPLACE_CMD} 's@sz->lsz =@// sz->lsz =@' ${WRKSRC}/dk3sf.c @${REINPLACE_CMD} -e 's@#include @#include @p'\ -e 's@#include @#include @'\ ${WRKSRC}/dk3types.h ${REINPLACE_CMD} 's|-e "/^SOVERS/cSOVERS=$$VERSNO"|"s/^\(SOVERS.*\)/SOVERS=$$VERSNO/"|'\ ${WRKSRC}/configure do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bmpp ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/bmpp.txt ${STAGEDIR}${DATADIR} .include