summaryrefslogtreecommitdiff
path: root/graphics/bmeps
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-07-13 09:43:28 +0000
committerJohn Marino <marino@FreeBSD.org>2014-07-13 09:43:28 +0000
commit21315bd977be49ae9e530cdc576a82c6b65aa238 (patch)
treecad8be5ac0897c7f6584b86650e26a6b0f6aa948 /graphics/bmeps
parentFix slipshod typing. This has nothing to do with the Council for the (diff)
graphics/bmeps: Update version 2.2.26 => 3.8.2
PR: 187025 Submitted by: takefu (airport.fm) Verified by: Redports 8x
Notes
Notes: svn path=/head/; revision=361667
Diffstat (limited to 'graphics/bmeps')
-rw-r--r--graphics/bmeps/Makefile47
-rw-r--r--graphics/bmeps/distinfo4
-rw-r--r--graphics/bmeps/files/patch-configure101
-rw-r--r--graphics/bmeps/pkg-descr22
4 files changed, 22 insertions, 152 deletions
diff --git a/graphics/bmeps/Makefile b/graphics/bmeps/Makefile
index 4fbe1c20aa77..4cc5317dcabb 100644
--- a/graphics/bmeps/Makefile
+++ b/graphics/bmeps/Makefile
@@ -1,57 +1,46 @@
# Created by: Hideyuki KURASHINA <rushani@FreeBSD.org>
# $FreeBSD$
-PORTNAME= bmeps
-PORTVERSION= 2.2.26
+PORTNAME= bmpp
+PORTVERSION= 3.8.2
CATEGORIES= graphics perl5
MASTER_SITES= SF/dktools/dktools/dktools-${PORTVERSION}
DISTNAME= dktools-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Convert bitmap images (PNG/JPEG/NetPBM) to EPS
+COMMENT= Convert PNG/JPEG/TIFF to PDF/EPS
LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/bsdlic.txt
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff
-USES= perl5 zip
GNU_CONFIGURE= yes
-CONFIGURE_ENV= ac_cv_header_sys_termios_h=no
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/dktools\
--libdir=${PREFIX}/lib\
--includedir=${PREFIX}/include\
- --without-perl\
- --with-lzw
-ALL_TARGET= stc ${PORTNAME}
+ --with-gui=no\
+ --with-fallback-string-functions=yes
+CONFIGURE_ENV= ac_cv_header_sys_termios_h=no
+
+ALL_TARGET= bmpp
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-PLIST_FILES= bin/bmeps \
- man/man1/bmeps.1.gz \
- %%DATADIR%%/bmeps.str \
- %%DATADIR%%/bmeps.stt.bz2 \
- %%DATADIR%%/bmeps.txt \
- %%DATADIR%%/de/bmeps.stt.bz2 \
- %%DATADIR%%/de/bmeps.txt
-PLIST_DIRS= %%DATADIR%%/de \
- %%DATADIR%%
-
-post-build:
- @(cd ${WRKSRC} && ./stc --/log/stderr/level=error \
- --log/stdout/level=none --/log/file/keep=none \
- bmeps.str share/dktools)
+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
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bmeps ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/man/man1/bmeps.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/bmpp ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/bmeps.str ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/share/dktools/en/bmeps.* ${STAGEDIR}${DATADIR}
- @${MKDIR} ${STAGEDIR}${DATADIR}/de
- ${INSTALL_DATA} ${WRKSRC}/share/dktools/de/bmeps.* ${STAGEDIR}${DATADIR}/de
+ ${INSTALL_DATA} ${WRKSRC}/bmpp.txt ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
diff --git a/graphics/bmeps/distinfo b/graphics/bmeps/distinfo
index 3682c50b322d..f8719a7f7d05 100644
--- a/graphics/bmeps/distinfo
+++ b/graphics/bmeps/distinfo
@@ -1,2 +1,2 @@
-SHA256 (dktools-2.2.26.zip) = f618f1b663f777c57ba5b3b9370a9103a77b91acb5c804764afe2f47cce29aab
-SIZE (dktools-2.2.26.zip) = 5813528
+SHA256 (dktools-3.8.2.tar.gz) = 089bab8ad6440d7dd28ab96ed9c9b2f958bfc0ad6643cb2ae6d453c8af7165a2
+SIZE (dktools-3.8.2.tar.gz) = 11227762
diff --git a/graphics/bmeps/files/patch-configure b/graphics/bmeps/files/patch-configure
deleted file mode 100644
index 99543874255c..000000000000
--- a/graphics/bmeps/files/patch-configure
+++ /dev/null
@@ -1,101 +0,0 @@
---- ./configure.orig 2011-11-02 10:37:26.000000000 -0700
-+++ ./configure 2012-01-13 18:35:08.000000000 -0800
-@@ -4234,19 +4234,6 @@
-
-
- GDBMLIB=""
--ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
--if test "x$ac_cv_header_gdbm_h" = x""yes; then :
-- $as_echo "#define HAVE_GDBM_H 1" >>confdefs.h
--
--else
-- ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
--if test "x$ac_cv_header_ndbm_h" = x""yes; then :
-- ANYDB='ndbm';$as_echo "#define HAVE_NDBM_H 1" >>confdefs.h
--
--fi
--
--
--fi
-
-
-
-@@ -6710,74 +6697,16 @@
- NETSNMP_LIBS=""
- FSNMP=""
- SNMPYALC=""
--NETSNMP_CFLAGS=`net-snmp-config --cflags`
--NETSNMP_LIBS=`net-snmp-config --libs`
-+NETSNMP_CFLAGS=""
-+NETSNMP_LIBS=""
- UNAME=''
- UNAME=`uname -s`
--if test "X$UNAME" = "XSunOS"
--then
-- { $as_echo "$as_me:${as_lineno-$LINENO}: checking SunOS Net-SNMP flags" >&5
--$as_echo_n "checking SunOS Net-SNMP flags... " >&6; }
-- NETSNMP_LIBS=`echo $NETSNMP_LIBS | sed -f modsnmp.sed`
-- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
--$as_echo "yes" >&6; }
--fi
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--
--#include <net-snmp/net-snmp-config.h>
--#include <net-snmp/net-snmp-includes.h>
--#include <net-snmp/utilities.h>
--
--int
--main ()
--{
-
--netsnmp_session session, *ss;
-
-- ;
-- return 0;
--}
--_ACEOF
--if ac_fn_c_try_compile "$LINENO"; then :
-- FSNMP='fsnmp';SNMPYALC='snmpyalc klpinfo';$as_echo "#define HAVE_LIBNETSNMP 1" >>confdefs.h
--
--fi
--rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_enable_filelog in -lnetsnmp" >&5
--$as_echo_n "checking for netsnmp_enable_filelog in -lnetsnmp... " >&6; }
--if test "${ac_cv_lib_netsnmp_netsnmp_enable_filelog+set}" = set; then :
-- $as_echo_n "(cached) " >&6
--else
-- ac_check_lib_save_LIBS=$LIBS
--LIBS="-lnetsnmp $LIBS"
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
-+ac_cv_lib_netsnmp_netsnmp_enable_filelog=no
-
--/* Override any GCC internal prototype to avoid an error.
-- Use char because int might match the return type of a GCC
-- builtin and then its argument prototype would still apply. */
--#ifdef __cplusplus
--extern "C"
--#endif
--char netsnmp_enable_filelog ();
--int
--main ()
--{
--return netsnmp_enable_filelog ();
-- ;
-- return 0;
--}
--_ACEOF
--if ac_fn_c_try_link "$LINENO"; then :
-- ac_cv_lib_netsnmp_netsnmp_enable_filelog=yes
--else
-- ac_cv_lib_netsnmp_netsnmp_enable_filelog=no
--fi
--rm -f core conftest.err conftest.$ac_objext \
-- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
--fi
-+
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_enable_filelog" >&5
- $as_echo "$ac_cv_lib_netsnmp_netsnmp_enable_filelog" >&6; }
- if test "x$ac_cv_lib_netsnmp_netsnmp_enable_filelog" = x""yes; then :
diff --git a/graphics/bmeps/pkg-descr b/graphics/bmeps/pkg-descr
index 8729a8059caa..91610b14174e 100644
--- a/graphics/bmeps/pkg-descr
+++ b/graphics/bmeps/pkg-descr
@@ -1,21 +1,3 @@
-The bmeps package contains a command line program and a library to convert
-bitmap image files (PNG/JPEG/NetPBM) to EPS or PDF and produces bounding box
-files for use with LaTeX.
+bmpp - Convert PNG/JPEG/TIFF to PDF/EPS
-The program produces EPS level 1, 2 and 3 and PDF level 1.2, 1.3 and 1.4.
-
-Depending on the EPS level there are different compression and encoding
-algorithms available:
-
- _ ASCII-Hex encoding
- _ ASCII-85-encoding (requires PS level 2)
- _ DCT-pass-through of JPEG files (requires PS level 2)
- _ flate compression (requires PS level 3)
-
-The program is intended to be used with LaTeX/dvips or other DTP software
-accepting EPS graphics.
-
-No automated scaling/rotating is done by the program to fit pages of any
-paper size, this is left up to the DTP application including the graphics.
-
-WWW: http://dktools.sourceforge.net/bmeps.html
+WWW: http://dktools.sourceforge.net/bmpp.html