summaryrefslogtreecommitdiffstats
path: root/textproc/xmlppm
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2003-07-24 15:10:05 +0000
committerosa <osa@FreeBSD.org>2003-07-24 15:10:05 +0000
commitaac07b627568641050974b5c5e685fa1de0c75ec (patch)
tree848be0d8c390585ddf36c863ecfdb3ccd7529018 /textproc/xmlppm
parenta802d325def48332a6cca274b173507ca0b30ea1 (diff)
downloadFreeBSD-ports-aac07b627568641050974b5c5e685fa1de0c75ec.zip
FreeBSD-ports-aac07b627568641050974b5c5e685fa1de0c75ec.tar.gz
Fix building under -CURRENT (gcc 3.3) [1]
Use %%DOCSDIR%% instead of hardcoded path (save 10 bytes) [2] Submitted by: Simon Barner <barner@in.tum.de> [1], osa [2]
Diffstat (limited to 'textproc/xmlppm')
-rw-r--r--textproc/xmlppm/files/patch-IFile.cpp11
-rw-r--r--textproc/xmlppm/pkg-plist4
2 files changed, 13 insertions, 2 deletions
diff --git a/textproc/xmlppm/files/patch-IFile.cpp b/textproc/xmlppm/files/patch-IFile.cpp
new file mode 100644
index 0000000..d50b235
--- /dev/null
+++ b/textproc/xmlppm/files/patch-IFile.cpp
@@ -0,0 +1,11 @@
+--- IFile.cpp.orig Wed Jul 23 04:32:54 2003
++++ IFile.cpp Wed Jul 23 04:35:43 2003
+@@ -100,7 +100,7 @@
+ while(insz > 0) {
+ size_t result;
+ outsz = BUFFSIZE;
+- result = iconv(ifile->iconv, &(char*)inptr, &insz, &outptr, &outsz);
++ result = iconv(ifile->iconv, &inptr, &insz, &outptr, &outsz);
+ total += fwrite(outbuf, sizeof(char), BUFFSIZE-outsz, ifile->file);
+ if(result == (size_t)-1 && errno != E2BIG) {
+ return total;
diff --git a/textproc/xmlppm/pkg-plist b/textproc/xmlppm/pkg-plist
index 4915a00..54d4e73 100644
--- a/textproc/xmlppm/pkg-plist
+++ b/textproc/xmlppm/pkg-plist
@@ -1,4 +1,4 @@
bin/xmlppm
bin/xmlunppm
-%%PORTDOCS%%share/doc/xmlppm/README
-%%PORTDOCS%%@dirrm share/doc/xmlppm
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud