<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[141470] trunk/dports/textproc/barcode</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/141470">141470</a></dd>
<dt>Author</dt> <dd>cal@macports.org</dd>
<dt>Date</dt> <dd>2015-10-19 10:56:17 -0700 (Mon, 19 Oct 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>barcode: update to 0.99

Additionally:
 - Drop Debian patches that have neither been submitted upstream nor have
   a good description of why they are necessary
 - Apply patches that fix two build problems
 - Reorganize the Portfile a bit, use modern checksums
 - Rename the ${prefix}/bin/sample binary to ${prefix}/bin/barcode-sample</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportstextprocbarcodePortfile">trunk/dports/textproc/barcode/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportstextprocbarcodefilespatchMakefileamsamplemayneedreplacementcallocfromlibgnudiff">trunk/dports/textproc/barcode/files/patch-Makefile.am-sample-may-need-replacement-calloc-from-libgnu.diff</a></li>
<li><a href="#trunkdportstextprocbarcodefilespatchbarcodehlibraryhavoidglobaldeclarationinheaderdiff">trunk/dports/textproc/barcode/files/patch-barcode.h-library.h-avoid-global-declaration-in-header.diff</a></li>
<li><a href="#trunkdportstextprocbarcodefilespatchcodeabarccorrectoutputdiff">trunk/dports/textproc/barcode/files/patch-codeabar.c-correct-output.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportstextprocbarcodefiles01codabarpatch">trunk/dports/textproc/barcode/files/01-codabar.patch</a></li>
<li><a href="#trunkdportstextprocbarcodefiles02marginpatch">trunk/dports/textproc/barcode/files/02-margin.patch</a></li>
<li><a href="#trunkdportstextprocbarcodefiles03oversizepatch">trunk/dports/textproc/barcode/files/03-oversize.patch</a></li>
<li><a href="#trunkdportstextprocbarcodefilesMakefileinpatch">trunk/dports/textproc/barcode/files/Makefile.in.patch</a></li>
<li><a href="#trunkdportstextprocbarcodefilesmaincpatch">trunk/dports/textproc/barcode/files/main.c.patch</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportstextprocbarcodePortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/textproc/barcode/Portfile (141469 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/Portfile        2015-10-19 16:13:27 UTC (rev 141469)
+++ trunk/dports/textproc/barcode/Portfile        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -2,13 +2,15 @@
</span><span class="cx"> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span class="cx"> 
</span><span class="cx"> PortSystem          1.0
</span><ins>+PortGroup           gnu_info 1.0
</ins><span class="cx"> 
</span><span class="cx"> name                barcode
</span><del>-version             0.98
-revision            2
-categories          textproc print
</del><ins>+version             0.99
+checksums           rmd160  44c1574c0a48efae2fc267aab914c03577a4ec4a \
+                    sha256  7c031cf3eb811242f53664379aebbdd9fae0b7b26b5e5d584c31a9f338154b64
+
+homepage            http://www.gnu.org/software/${name}/
</ins><span class="cx"> license             GPL-2+
</span><del>-maintainers         nomaintainer
</del><span class="cx"> description         convert text strings to printed barcodes
</span><span class="cx"> long_description    \
</span><span class="cx">     Main features of GNU Barcode: \
</span><span class="lines">@@ -17,23 +19,27 @@
</span><span class="cx">     - PostScript and Encapsulated PostScript output \
</span><span class="cx">     - Accepts sizes and positions as inches, centimeters, millimeters \
</span><span class="cx">     - Can create tables of barcodes (to print labels on sticker pages)
</span><del>-homepage            http://www.gnu.org/software/${name}/
</del><ins>+
+categories          textproc print
+maintainers         nomaintainer
</ins><span class="cx"> platforms           darwin
</span><ins>+
</ins><span class="cx"> master_sites        gnu
</span><del>-checksums           md5 7f10c3307b84a19a4ab2fa4b3f2974da
</del><span class="cx"> 
</span><del>-patch.pre_args      -p1
-patchfiles          Makefile.in.patch \
-                    01-codabar.patch \
-                    02-margin.patch \
-                    03-oversize.patch \
-                    main.c.patch
</del><ins>+patchfiles          patch-Makefile.am-sample-may-need-replacement-calloc-from-libgnu.diff \
+                    patch-barcode.h-library.h-avoid-global-declaration-in-header.diff \
+                    patch-codeabar.c-correct-output.diff
</ins><span class="cx"> 
</span><span class="cx"> use_autoreconf      yes
</span><ins>+autoreconf.args     -fvi
</ins><span class="cx"> 
</span><span class="cx"> destroot.destdir    prefix=${destroot}${prefix} \
</span><span class="cx">                     MAN1DIR=${destroot}${prefix}/share/man/man1 \
</span><span class="cx">                     MAN3DIR=${destroot}${prefix}/share/man/man3 \
</span><span class="cx">                     INFODIR=${destroot}${prefix}/share/info
</span><span class="cx"> 
</span><ins>+post-destroot {
+    file rename ${destroot}${prefix}/bin/sample ${destroot}${prefix}/bin/${name}-sample
+}
+
</ins><span class="cx"> depends_lib         port:libpaper
</span></span></pre></div>
<a id="trunkdportstextprocbarcodefiles01codabarpatch"></a>
<div class="delfile"><h4>Deleted: trunk/dports/textproc/barcode/files/01-codabar.patch (141469 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/01-codabar.patch        2015-10-19 16:13:27 UTC (rev 141469)
+++ trunk/dports/textproc/barcode/files/01-codabar.patch        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -1,46 +0,0 @@
</span><del>-Author: Chris Howie &lt;crazycomputers@yahoo.com&gt;
-Description: Following codabar specification (Closes: #320908).
-
-diff -Naurp barcode.orig/codabar.c barcode/codabar.c
---- barcode.orig/codabar.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/codabar.c        2009-07-16 21:55:33.000000000 +0000
-@@ -29,10 +29,11 @@

- /* this is ordered in decades to simplify encoding */
- static char alphabet[] = 
--   &quot;0123456789&quot; &quot;-$:/.+ABCD&quot;;
-+   &quot;0123456789&quot; &quot;-$:/.+ABCDTN*E&quot;;

- #define CODE_A        16
- #define CODE_B        17
-+#define CODE_T        20

- #define NARROW        12
- #define WIDE        14
-@@ -42,7 +43,8 @@ static char *patterns[] = {
- &quot;1111133&quot;,&quot;1111331&quot;,&quot;1113113&quot;,&quot;3311111&quot;,&quot;1131131&quot;,
- &quot;3111131&quot;,&quot;1311113&quot;,&quot;1311311&quot;,&quot;1331111&quot;,&quot;3113111&quot;,
- &quot;1113311&quot;,&quot;1133111&quot;,&quot;3111313&quot;,&quot;3131113&quot;,&quot;3131311&quot;,
--&quot;1131313&quot;,&quot;1133131&quot;,&quot;1313113&quot;,&quot;1113133&quot;,&quot;1113331&quot; };
-+&quot;1131313&quot;,&quot;1133131&quot;,&quot;1313113&quot;,&quot;1113133&quot;,&quot;1113331&quot;,
-+&quot;1133131&quot;,&quot;1313113&quot;,&quot;1113133&quot;,&quot;1113331&quot;};

- /*
-  * Check that the text can be encoded. Returns 0 or -1.
-@@ -167,13 +169,13 @@ int Barcode_cbr_encode(struct Barcode_It
-     }
-     if (!startpresent) {
-         if (usesum) {
--            /* if no start character specified, B is used as a stop char */
--            checksum += CODE_B;
-+            /* if no start character specified, T is used as a stop char */
-+            checksum += CODE_T;
-             checksum = (checksum + 15) / 16 * 16 - checksum;
-             add_one(ptr, checksum);
-             ptr += strlen(ptr);
-         }
--        add_one(ptr, CODE_B);
-+        add_one(ptr, CODE_T);
-     }
-     bc-&gt;partial = partial;
-     bc-&gt;textinfo = textinfo;
</del></span></pre></div>
<a id="trunkdportstextprocbarcodefiles02marginpatch"></a>
<div class="delfile"><h4>Deleted: trunk/dports/textproc/barcode/files/02-margin.patch (141469 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/02-margin.patch        2015-10-19 16:13:27 UTC (rev 141469)
+++ trunk/dports/textproc/barcode/files/02-margin.patch        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -1,83 +0,0 @@
</span><del>-Author: n/a
-Description: Adjusts correct margins.
-
-diff -Naurp barcode.orig/main.c barcode/main.c
---- barcode.orig/main.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/main.c        2009-07-16 21:56:09.000000000 +0000
-@@ -419,7 +419,6 @@ char *strerror(int error)
-  */
- int main(int argc, char **argv)
- {
--    struct Barcode_Item * bc;
-     FILE *ifile = stdin;
-     FILE *ofile = stdout;
-     char *line;
-@@ -549,50 +548,37 @@ int main(int argc, char **argv)
-         int ystep = (page_hei - ymargin0 - ymargin1)/lines;
-         int x = columns, y = -1; /* position in the table, start off-page */

--        if (!ximargin) ximargin = BARCODE_DEFAULT_MARGIN;
--        if (!yimargin) yimargin = BARCODE_DEFAULT_MARGIN;
--        /* Assign default size unless -g did it (Joachim Reichelt) */
--        if ( !code_width &amp;&amp; !code_height) {
--            code_width = xstep - 2*ximargin;
--            code_height = ystep - 2*yimargin;
--        }
--
-         page=0;
-+
-+
-         while ( (line = retrieve_input_string(ifile)) ) {
-             x++;  /* fit x and y */
-             if (x &gt;= columns) {
-                 x=0; y--;
-                 if (y&lt;0) {
-                     y = lines-1; page++;
--                    /* flush page */
--                    if (ps &amp;&amp; page &gt; 1) fprintf(ofile, &quot;showpage\n&quot;);
--                    if (pcl &amp;&amp; page &gt; 1) fprintf(ofile, &quot;\f&quot;);
--                    /* new page */
--                    if (ps) fprintf(ofile, &quot;%%%%Page: %i %i\n\n&quot;,page,page);
-+                    if (page&gt;1) {
-+                        if (ps) {
-+                            fprintf(ofile, &quot;showpage\n&quot;);
-+                            fprintf(ofile, &quot;%%%%Page: %i %i\n\n&quot;,page,page);
-+                        }
-+                        if (pcl) fprintf(ofile, &quot;\f&quot;);
-+                    }
-                 }
-             }

-             /*
--             * Create a barcode item. This allows to set the margin to 0, as
--             * we have [xy]imargin to use. But don't use Encode_and_Print(),
--             * unroll it here instead
-+             * Print this code, using the internal margins as spacing.
-+             * In order to remove the extra (default) margin, subtract it
-+             * in advance (dirty)
-              */
--            bc = Barcode_Create(line);
--            if (!bc) {
--                fprintf(stderr, &quot;%s: Barcode_Create(): %s\n&quot;, argv[0],
--                        strerror(errno));
--                exit(1);
--            }
--            bc-&gt;margin = 0;
--            if ( (Barcode_Position(bc, code_width, code_height,
--                                   xmargin0 + ximargin + x * xstep,
--                                   ymargin0 + yimargin + y * ystep, 0.0) &lt; 0)
--                 || (Barcode_Encode(bc, flags) &lt; 0)
--                 || (Barcode_Print(bc, ofile, flags) &lt; 0) ) {
--                fprintf(stderr, &quot;%s: can't encode \&quot;%s\&quot;: %s\n&quot;, argv[0],
--                        line, strerror(bc-&gt;error));
-+            if (Barcode_Encode_and_Print(line, ofile,
-+                    xstep - 2*ximargin, ystep - 2*yimargin,
-+                    xmargin0 + ximargin + x * xstep - BARCODE_DEFAULT_MARGIN,
-+                    ymargin0 + yimargin + y * ystep - BARCODE_DEFAULT_MARGIN,
-+                    flags)&lt;0) {
-+                fprintf(stderr, &quot;%s: can't encode \&quot;%s\&quot;\n&quot;, argv[0], line);
-             }
--            Barcode_Delete(bc);
-         }
-         if (ps) fprintf(ofile, &quot;showpage\n\n%%%%Trailer\n\n&quot;);
-         if (pcl) fprintf(ofile, &quot;\f&quot;);
</del></span></pre></div>
<a id="trunkdportstextprocbarcodefiles03oversizepatch"></a>
<div class="delfile"><h4>Deleted: trunk/dports/textproc/barcode/files/03-oversize.patch (141469 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/03-oversize.patch        2015-10-19 16:13:27 UTC (rev 141469)
+++ trunk/dports/textproc/barcode/files/03-oversize.patch        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -1,147 +0,0 @@
</span><del>-Author: Paolo &lt;oopla@users.sf.net&gt;
-Description: Fixing oversized images (Closes: #320908).
-
-diff -Naurp barcode.orig/codabar.c barcode/codabar.c
---- barcode.orig/codabar.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/codabar.c        2009-07-16 21:57:12.000000000 +0000
-@@ -165,6 +165,7 @@ int Barcode_cbr_encode(struct Barcode_It
-             ptr += strlen(ptr);
-         }
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     if (!startpresent) {
-         if (usesum) {
-             /* if no start character specified, B is used as a stop char */
-diff -Naurp barcode.orig/code128.c barcode/code128.c
---- barcode.orig/code128.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/code128.c        2009-07-16 21:57:12.000000000 +0000
-@@ -142,6 +142,7 @@ int Barcode_128b_encode(struct Barcode_I
-         textptr += strlen(textptr);
-         textpos += SYMBOL_WID; /* width of each code */
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     /* Add the checksum, independent of BARCODE_NO_CHECKSUM */
-     checksum %= 103;
-     strcat(partial, codeset[checksum]);
-@@ -232,6 +233,7 @@ int Barcode_128c_encode(struct Barcode_I
-         textptr += strlen(textptr);
-         textpos += SYMBOL_WID; /* width of each code */
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     /* Add the checksum, independent of BARCODE_NO_CHECKSUM */
-     checksum %= 103;
-     strcat(partial, codeset[checksum]);
-@@ -492,6 +494,7 @@ int Barcode_128_encode(struct Barcode_It
-         textptr += strlen(textptr);
-         textpos += step;
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */

-     bc-&gt;partial = partial;
-     bc-&gt;textinfo = textinfo;
-@@ -593,6 +596,7 @@ int Barcode_128raw_encode(struct Barcode
-         textpos += SYMBOL_WID; /* width of each code */
-         i += n;
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     /* Add the checksum, independent of BARCODE_NO_CHECKSUM */
-     checksum %= 103;
-     strcat(partial, codeset[checksum]);
-diff -Naurp barcode.orig/code39.c barcode/code39.c
---- barcode.orig/code39.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/code39.c        2009-07-16 21:57:12.000000000 +0000
-@@ -160,6 +160,7 @@ int Barcode_39_encode(struct Barcode_Ite
-         textptr += strlen(textptr);
-         ptr += strlen(ptr); 
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     /* Add the checksum */
-     if ( (bc-&gt;flags &amp; BARCODE_NO_CHECKSUM)==0 ) {
-         code = (strchr(alphabet, checkbet[checksum % 43]) - alphabet);
-diff -Naurp barcode.orig/code93.c barcode/code93.c
---- barcode.orig/code93.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/code93.c        2009-07-16 21:57:12.000000000 +0000
-@@ -182,6 +182,7 @@ int Barcode_93_encode(struct Barcode_Ite
-          */
-         textpos += 9;
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     c_checksum=0;
-     k_checksum=0;

-diff -Naurp barcode.orig/i25.c barcode/i25.c
---- barcode.orig/i25.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/i25.c        2009-07-16 21:57:12.000000000 +0000
-@@ -153,6 +153,7 @@ int Barcode_i25_encode(struct Barcode_It
-         textpos += 18; /* width of two codes */
-         textptr += strlen(textptr);
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     strcat(partial, guard[1]);

-     bc-&gt;partial = partial;
-diff -Naurp barcode.orig/msi.c barcode/msi.c
---- barcode.orig/msi.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/msi.c        2009-07-16 21:57:12.000000000 +0000
-@@ -132,6 +132,7 @@ int Barcode_msi_encode(struct Barcode_It
-             }
-         }
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     /* Some implementations use a double checksum. Currently the only way
-      * to print a barcode with double checksum is to put the checksum
-      * digit printed below at the end of a code in the command line
-diff -Naurp barcode.orig/plessey.c barcode/plessey.c
---- barcode.orig/plessey.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/plessey.c        2009-07-16 21:57:12.000000000 +0000
-@@ -140,6 +140,7 @@ int Barcode_pls_encode(struct Barcode_It
-         checkptr[4*i+2] = (code &gt;&gt; 2) &amp; 1;
-         checkptr[4*i+3] = (code &gt;&gt; 3) &amp; 1;
-     }
-+    textptr[-1] = '\0'; /* overwrite last space */
-     /* The CRC checksum is required */
-     for (i=0; i &lt; 4*strlen(text); i++) {
-         int j;
-diff -Naurp barcode.orig/ps.c barcode/ps.c
---- barcode.orig/ps.c        2009-07-16 21:49:31.000000000 +0000
-+++ barcode/ps.c        2009-07-16 21:57:12.000000000 +0000
-@@ -146,11 +146,38 @@ int Barcode_ps_print(struct Barcode_Item
-             fprintf(f, &quot;%%!PS-Adobe-2.0\n&quot;);
-         fprintf(f, &quot;%%%%Creator: libbarcode\n&quot;);
-         if (bc-&gt;flags &amp; BARCODE_OUT_EPS)  {
-+            int bboxw;
-+            bboxw=bc-&gt;xoff + bc-&gt;width + 2* bc-&gt;margin;
-+            if (!(bc-&gt;flags &amp; BARCODE_NO_ASCII)) {
-+                ptr = strrchr(bc-&gt;textinfo,' ');
-+                /*fprintf(stderr, &quot;bc-&gt;textinfo=%s\n&quot;,bc-&gt;textinfo);*/
-+                if (ptr == NULL) {
-+                    fprintf(stderr,
-+                        &quot;barcode: last char: impossible data: NULL\n&quot;);
-+                } else {
-+                    /*fprintf(stderr, &quot;ptr=%s\n&quot;,ptr);*/
-+                   if (sscanf(ptr, &quot;%lf:%lf:%c&quot;, &amp;f1, &amp;f2, &amp;c) != 3) {
-+                        fprintf(stderr,
-+                           &quot;barcode: last char: impossible data: %s\n&quot;, ptr);
-+                   } else {
-+                        /* Both the backslash and the two parens are special */
-+                        if (c!='\\' &amp;&amp; c!=')' &amp;&amp; c!='(') {
-+                            f1=bc-&gt;xoff + (f1+f2) * scalef + bc-&gt;margin;
-+                           if (f1 &gt; bboxw) bboxw=f1;
-+                        }
-+                    }
-+                }
-+            }
-             fprintf(f, &quot;%%%%BoundingBox: %i %i %i %i\n&quot;,
-                     bc-&gt;xoff,
-                     bc-&gt;yoff,
--                    bc-&gt;xoff + bc-&gt;width + 2* bc-&gt;margin,
-+                    bboxw,
-                     bc-&gt;yoff + bc-&gt;height + 2* bc-&gt;margin);
-+        /*    fprintf(f, &quot;%%DEBUG: bc-&gt;width=%i bc-&gt;height=%i bc-&gt;margin=%i &quot;
-+                    &quot;scalef=%6.2f barlen=%6.2f bc-&gt;partial=%c\n&quot;,
-+                    bc-&gt;width, bc-&gt;height, bc-&gt;margin,
-+                    scalef, (double)barlen, (char)bc-&gt;partial[0]);
-+         */
-         }
-         fprintf(f, &quot;%%%%EndComments\n&quot;);
-         if (bc-&gt;flags &amp; BARCODE_OUT_PS)  {
</del></span></pre></div>
<a id="trunkdportstextprocbarcodefilesMakefileinpatch"></a>
<div class="delfile"><h4>Deleted: trunk/dports/textproc/barcode/files/Makefile.in.patch (141469 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/Makefile.in.patch        2015-10-19 16:13:27 UTC (rev 141469)
+++ trunk/dports/textproc/barcode/files/Makefile.in.patch        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -1,17 +0,0 @@
</span><del>---- a/Makefile.in.orig        2012-02-03 15:32:12.000000000 +0100
-+++ b/Makefile.in        2012-02-03 15:32:39.000000000 +0100
-@@ -3,12 +3,12 @@
- #

- CC = @CC@
--CFLAGS = @CFLAGS@ @DEFS@ @NO_GETOPT@ @NO_LIBPAPER@ @NO_STRERROR@
-+CFLAGS = @CFLAGS@ @CPPFLAGS@ @DEFS@ @NO_GETOPT@ @NO_LIBPAPER@ @NO_STRERROR@
- RANLIB = @RANLIB@

- INSTALL = @INSTALL@

--LDFLAGS = -L. -l$(TARGET) @LIBPAPER@
-+LDFLAGS = -L. -l$(TARGET) @LIBPAPER@ @LDFLAGS@

- prefix = @prefix@
- BINDIR = $(prefix)/bin
</del></span></pre></div>
<a id="trunkdportstextprocbarcodefilesmaincpatch"></a>
<div class="delfile"><h4>Deleted: trunk/dports/textproc/barcode/files/main.c.patch (141469 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/main.c.patch        2015-10-19 16:13:27 UTC (rev 141469)
+++ trunk/dports/textproc/barcode/files/main.c.patch        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -1,12 +0,0 @@
</span><del>---- barcode-0.98/main.c.orig        2002-03-02 08:31:07.000000000 +1100
-+++ barcode-0.98/main.c        2012-07-16 12:40:37.000000000 +1000
-@@ -299,6 +299,9 @@ int get_page_geometry(void *arg)
-     int n;
-     double dpw, dph; /* page width, height in mm or inches */
-     static char tmpstr[20];
-+    if (!arg) {
-+        return -1;
-+    }
-     page_name = arg; /* if undecipherable, we won't run the program :) */
-     /*
-      * try to decode a &quot;mm&quot; string (eg. &quot;210mmx297mm&quot; or &quot;210x297mm&quot;)
</del></span></pre></div>
<a id="trunkdportstextprocbarcodefilespatchMakefileamsamplemayneedreplacementcallocfromlibgnudiff"></a>
<div class="addfile"><h4>Added: trunk/dports/textproc/barcode/files/patch-Makefile.am-sample-may-need-replacement-calloc-from-libgnu.diff (0 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/patch-Makefile.am-sample-may-need-replacement-calloc-from-libgnu.diff                                (rev 0)
+++ trunk/dports/textproc/barcode/files/patch-Makefile.am-sample-may-need-replacement-calloc-from-libgnu.diff        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+The sample binary will fail to link on systems that need a replacement for
+calloc because their implementation isn't GNU-calloc compatible. For example,
+OS X is affected by this.
+
+Signed-off-by: Clemens Lang &lt;cal@macports.org&gt;
+Upstream-Status: Pending
+--- Makefile.am.orig        2015-10-19 19:14:29.000000000 +0200
++++ Makefile.am        2015-10-19 19:14:36.000000000 +0200
+@@ -38,4 +38,4 @@


+ sample_SOURCES = sample.c
+-sample_LDADD = libbarcode.la
++sample_LDADD = libbarcode.la lib/libgnu.la
</ins></span></pre></div>
<a id="trunkdportstextprocbarcodefilespatchbarcodehlibraryhavoidglobaldeclarationinheaderdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/textproc/barcode/files/patch-barcode.h-library.h-avoid-global-declaration-in-header.diff (0 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/patch-barcode.h-library.h-avoid-global-declaration-in-header.diff                                (rev 0)
+++ trunk/dports/textproc/barcode/files/patch-barcode.h-library.h-avoid-global-declaration-in-header.diff        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+Providing a global declaration without &quot;extern&quot; in a header adds a symbol with
+that name to every compilation unit that includes the header. Consequently,
+some compilers (e.g., clang) fail to link more than one of these compilation
+units because there are two versions of the &quot;streaming&quot; symbol. Fix this by
+moving the declaration to pcl.c and keeping changing the one in the header to
+be extern.
+
+Upstream-Status: Pending
+--- ./barcode.h  2013-03-29 16:51:07.000000000 -0500
++++ ./barcode.h       2015-08-16 16:06:23.000000000 -0500
+@@ -123,6 +123,6 @@
+ }
+ #endif
+
+-int streaming;
++extern int streaming;
+
+ #endif /* _BARCODE_H_ */
+--- ./pcl.c      2013-03-29 17:23:31.000000000 -0500
++++ ./pcl.c   2015-08-16 16:07:06.000000000 -0500
+@@ -29,6 +29,7 @@
+
+ #define SHRINK_AMOUNT 0.15  /* shrink the bars to account for ink spreading */
+
++int streaming;
+
+ /*
+  * How do the &quot;partial&quot; and &quot;textinfo&quot; strings work? See file &quot;ps.c&quot;
</ins></span></pre></div>
<a id="trunkdportstextprocbarcodefilespatchcodeabarccorrectoutputdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/textproc/barcode/files/patch-codeabar.c-correct-output.diff (0 => 141470)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/textproc/barcode/files/patch-codeabar.c-correct-output.diff                                (rev 0)
+++ trunk/dports/textproc/barcode/files/patch-codeabar.c-correct-output.diff        2015-10-19 17:56:17 UTC (rev 141470)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+Hi, with this correction, output barcodes match what I'm seeing with other
+codabar outputs. Found in Debian:
+
+Author: Chris Howie &lt;crazycomputers@yahoo.com&gt;
+Description: Following codabar specification (Closes: #320908).
+Upstream-Status: Submitted [http://lists.gnu.org/archive/html/bug-barcode/2014-01/msg00000.html]
+--- codabar.c.orig        2015-10-19 19:48:14.000000000 +0200
++++ codabar.c        2015-10-19 19:49:50.000000000 +0200
+@@ -28,10 +28,11 @@

+ /* this is ordered in decades to simplify encoding */
+ static char alphabet[] = 
+-   &quot;0123456789&quot; &quot;-$:/.+ABCD&quot;;
++   &quot;0123456789&quot; &quot;-$:/.+ABCDTN*E&quot;;

+ #define CODE_A        16
+ #define CODE_B        17
++#define CODE_T        20

+ #define NARROW        12
+ #define WIDE        14
+@@ -167,13 +168,13 @@
+     }
+     if (!startpresent) {
+         if (usesum) {
+-            /* if no start character specified, B is used as a stop char */
+-            checksum += CODE_B;
++            /* if no start character specified, T is used as a stop char */
++            checksum += CODE_T;
+             checksum = (checksum + 15) / 16 * 16 - checksum;
+             add_one(ptr, checksum);
+             ptr += strlen(ptr);
+         }
+-        add_one(ptr, CODE_B);
++        add_one(ptr, CODE_T);
+     }
+     bc-&gt;partial = partial;
+     bc-&gt;textinfo = textinfo;
</ins></span></pre>
</div>
</div>

</body>
</html>