freebsd-ports/graphics/bmeps/Makefile
William Grzybowski f621876372 graphics/bmeps: update to 3.16.0
Changes: http://dktools.sourceforge.net/changes.html

PR:		192289
Submitted by:	takefu airport fm
2014-07-31 14:04:58 +00:00

50 lines
1.4 KiB
Makefile

# Created by: Hideyuki KURASHINA <rushani@FreeBSD.org>
# $FreeBSD$
PORTNAME= bmpp
PORTVERSION= 3.16.0
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 \
libpng15.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
PLIST_DIRS= %%DATADIR%%
pre-patch:
@${REINPLACE_CMD} 's@sz->lsz =@// sz->lsz =@' ${WRKSRC}/dk3sf.c
@${REINPLACE_CMD} -e 's@#include <dk3conf.h>@#include <stdio.h>@p'\
-e 's@#include <stdio.h>@#include <dk3conf.h>@'\
${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 <bsd.port.mk>