Update to 4.2.2.

* It is no longer necessary to set CONFIGURE_ARGS.
* Explain why we set CONFIGURE_ENV.

PR:		207688
Submitted by:	takefu@airport.fm
This commit is contained in:
Raphael Kubo da Costa
2016-03-09 17:15:18 +00:00
parent 0de3f2636e
commit 037f3e1ee6
2 changed files with 12 additions and 21 deletions

View File

@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= bmpp
PORTVERSION= 3.16.0
PORTREVISION= 1
PORTVERSION= 4.2.2
CATEGORIES= graphics perl5
MASTER_SITES= SF/dktools/dktools/dktools-${PORTVERSION}
DISTNAME= dktools-${PORTVERSION}
@@ -12,38 +11,30 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Convert PNG/JPEG/TIFF to PDF/EPS
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/bsdlic.txt
LIB_DEPENDS= 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
# We do not want to include sys/termios.h even if it exists, and we do not want
# to depend on BDB for db.h (it is used by other parts of dktools).
CONFIGURE_ENV= ac_cv_header_sys_termios_h=no \
ac_cv_header_db_h=no
ALL_TARGET= bmpp
MAKEFILE= GNUmakefile
USES= gmake jpeg
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/bmpp %%DATADIR%%/bmpp.txt
PLIST_FILES= bin/bmpp
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
post-patch:
${REINPLACE_CMD} 's@sz->lsz =@st->lsz =@' ${WRKSRC}/dk3sf.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bmpp ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/bmpp.txt ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>

View File

@@ -1,2 +1,2 @@
SHA256 (dktools-3.16.0.tar.gz) = 581cdbcb65e99b0f4cfd389f9ee597d7b4fcb2c6a35f0fc356882a28efed5e3c
SIZE (dktools-3.16.0.tar.gz) = 7366172
SHA256 (dktools-4.2.2.tar.gz) = 6d35d417f4fa62fd87716acbc0aabb458ba5d6c675aa825f0cdc371d978616c4
SIZE (dktools-4.2.2.tar.gz) = 8851310