Added patch for djvulibre from cipri, and marked the .bep as being for

gcc4 only.
This commit is contained in:
Scott McCreary
2012-03-25 18:30:45 +00:00
parent a6fb99ad42
commit e33ec97bf2
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ CHECKSUM_MD5="994e2ff1d4ae6a763764dfe20509826e"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
cd djvulibre-3.5.25
COMMON_DIR=`finddir B_COMMON_DIRECTORY`

View File

@@ -0,0 +1,12 @@
diff -Naur djvulibre-3.5.25/libdjvu/miniexp.cpp djvulibre-3.5.25-haiku/libdjvu/miniexp.cpp
--- djvulibre-3.5.25/libdjvu/miniexp.cpp 2012-03-17 23:49:02.048758784 +0100
+++ djvulibre-3.5.25-haiku/libdjvu/miniexp.cpp 2012-03-25 14:42:11.949223424 +0200
@@ -1010,7 +1010,7 @@
if (io == &miniexp_io && !CompatCounter::count)
return (*minilisp_getc)(); /* compatibility hack */
FILE *f = (io->data[0]) ? (FILE*)(io->data[0]) : stdin;
- return ::getc(f);
+ return getc(f);
}
static int