aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/ocrad
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2006-05-11 01:42:50 +0800
committervs <vs@FreeBSD.org>2006-05-11 01:42:50 +0800
commit9c2dd313fe8aef197dee5b376ad1eeccb16ff05f (patch)
treee0864477417094b0bea13bb9de849d509f774b34 /graphics/ocrad
parent91b4e3b015d3ed8f748ce6004d7fad37a39ac5c2 (diff)
downloadfreebsd-ports-gnome-9c2dd313fe8aef197dee5b376ad1eeccb16ff05f.tar.gz
freebsd-ports-gnome-9c2dd313fe8aef197dee5b376ad1eeccb16ff05f.tar.zst
freebsd-ports-gnome-9c2dd313fe8aef197dee5b376ad1eeccb16ff05f.zip
Update to 0.14
PR: ports/94529 Submitted by: Pedro F. Giffuni via maintainer
Diffstat (limited to 'graphics/ocrad')
-rw-r--r--graphics/ocrad/Makefile7
-rw-r--r--graphics/ocrad/distinfo6
-rw-r--r--graphics/ocrad/files/patch-main.cc11
3 files changed, 9 insertions, 15 deletions
diff --git a/graphics/ocrad/Makefile b/graphics/ocrad/Makefile
index afac46608f9e..9a3f541c8431 100644
--- a/graphics/ocrad/Makefile
+++ b/graphics/ocrad/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ocrad
-PORTVERSION= 0.13
+PORTVERSION= 0.14
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -27,7 +27,12 @@ MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
.if ${OSVERSION} < 500035
USE_GCC= 3.4
+post-patch:
+. for f in main.cc rational.cc
+ @${REINPLACE_CMD} 's/std::snprintf/snprintf/g' ${WRKSRC}/$f
+. endfor
.endif
+
.if ${OSVERSION} < 500041
MAKE_ENV+= CPPFLAGS="${CPPFLAGS} -DHAVE_DECL_GETOPT"
.endif
diff --git a/graphics/ocrad/distinfo b/graphics/ocrad/distinfo
index f7f1c66c84d3..69ea620d42dd 100644
--- a/graphics/ocrad/distinfo
+++ b/graphics/ocrad/distinfo
@@ -1,3 +1,3 @@
-MD5 (ocrad-0.13.tar.bz2) = bf09dbb433c1ecf9e9a3b7c0f838ce73
-SHA256 (ocrad-0.13.tar.bz2) = 65c4e199584021faa1aa69ec7f40322e9adb1f45c102075b1f9b59fa118cd25c
-SIZE (ocrad-0.13.tar.bz2) = 66654
+MD5 (ocrad-0.14.tar.bz2) = 6a72f723175e799cc72b81b96793491f
+SHA256 (ocrad-0.14.tar.bz2) = c31ba791840fae5a867f86cbb01880fe1ef3adf33175fdf30eeea857d9e9fcce
+SIZE (ocrad-0.14.tar.bz2) = 73632
diff --git a/graphics/ocrad/files/patch-main.cc b/graphics/ocrad/files/patch-main.cc
deleted file mode 100644
index 3a1b06e3454f..000000000000
--- a/graphics/ocrad/files/patch-main.cc
+++ /dev/null
@@ -1,11 +0,0 @@
---- main.cc.orig Fri Oct 14 16:46:22 2005
-+++ main.cc Fri Oct 14 16:46:30 2005
-@@ -198,7 +198,7 @@
- void Ocrad::internal_error( const char * msg ) throw()
- {
- char buf[80];
-- std::snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
-+ snprintf( buf, sizeof( buf ), "internal error: %s.\n", msg );
- show_error( buf );
- exit( 3 );
- }