aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2006-12-14 07:43:55 +0800
committermarkus <markus@FreeBSD.org>2006-12-14 07:43:55 +0800
commit038658b84475cb58c6d835e32c1b4ecf94422857 (patch)
tree89be5682dc59965d7b6302c69b09aceaa1e63c89 /sysutils
parent99c1d0bd94fa3b6d6ab4b5583456f572f96d3ef9 (diff)
downloadfreebsd-ports-gnome-038658b84475cb58c6d835e32c1b4ecf94422857.tar.gz
freebsd-ports-gnome-038658b84475cb58c6d835e32c1b4ecf94422857.tar.zst
freebsd-ports-gnome-038658b84475cb58c6d835e32c1b4ecf94422857.zip
Add patch in order to fix the build with gcc 4.1 and set WRKSRC accordingly
Reported by: kris
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/pdixtract/Makefile1
-rw-r--r--sysutils/pdixtract/files/patch-pdixtract.c28
2 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/pdixtract/Makefile b/sysutils/pdixtract/Makefile
index f3df3ba8262c..3e3850ac5521 100644
--- a/sysutils/pdixtract/Makefile
+++ b/sysutils/pdixtract/Makefile
@@ -14,6 +14,7 @@ DISTNAME= PDITOOL
MAINTAINER= markus@FreeBSD.org
COMMENT= Extracts or converts .pdi file sets to .iso
+WRKSRC= ${WRKDIR}
USE_ZIP= yes
PLIST_FILES= bin/pdixtract
diff --git a/sysutils/pdixtract/files/patch-pdixtract.c b/sysutils/pdixtract/files/patch-pdixtract.c
new file mode 100644
index 000000000000..8a2540fee7f4
--- /dev/null
+++ b/sysutils/pdixtract/files/patch-pdixtract.c
@@ -0,0 +1,28 @@
+--- pdixtract.c.orig Thu Dec 14 00:18:17 2006
++++ pdixtract.c Thu Dec 14 00:25:55 2006
+@@ -79,6 +79,12 @@
+ char name [1];
+ };
+
++struct filedesc {
++ char *name;
++ size_t size; /* size in extents */
++ size_t extent;
++ int hits; /* flag for individual file selection */
++};
+
+ char buffer[BUFFSIZE];
+ struct filedesc files[MAX_FILES];
+@@ -106,12 +112,6 @@
+ exit(1);
+ }
+
+-struct filedesc {
+- char *name;
+- size_t size; /* size in extents */
+- size_t extent;
+- int hits; /* flag for individual file selection */
+-};
+
+
+ /* helper for qsort, compares extents of 2 filedescs */