diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2010-02-09 15:13:28 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2010-02-09 15:13:28 +0000 |
commit | ebc3a88489a43cd3d2f03e87974fe5ad3cf149b9 (patch) | |
tree | 8da9b0190acca7a5b8cb524bf01ca431735a9719 /x11-toolkits | |
parent | bdaca27c6e25a38239911c4436b6adf0a17f51b2 (diff) | |
download | ports-ebc3a88489a43cd3d2f03e87974fe5ad3cf149b9.tar.gz ports-ebc3a88489a43cd3d2f03e87974fe5ad3cf149b9.zip |
Notes
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/fltk/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/fltk/files/patch-src_filename_list.cxx | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/x11-toolkits/fltk/Makefile b/x11-toolkits/fltk/Makefile index 2dad8ea4036f..585acd39bc78 100644 --- a/x11-toolkits/fltk/Makefile +++ b/x11-toolkits/fltk/Makefile @@ -62,6 +62,8 @@ post-patch: ${REINPLACE_CMD} -e 's|LINKSHARED)|LINKSHARED) ../src/fl_gtk.o|' \ ${WRKSRC}/fluid/Makefile ${REINPLACE_CMD} -e 's|cat1|man1|g;s|cat3|man3|g' ${WRKSRC}/documentation/Makefile +post-configure: + ${REINPLACE_CMD} -e '78s|=|= -L../src|' ${WRKSRC}/makeinclude .if defined(NOPORTDOCS) ${REINPLACE_CMD} -e 's|test ||' ${WRKSRC}/Makefile ${REINPLACE_CMD} -e '234,238d' ${WRKSRC}/documentation/Makefile diff --git a/x11-toolkits/fltk/files/patch-src_filename_list.cxx b/x11-toolkits/fltk/files/patch-src_filename_list.cxx new file mode 100644 index 000000000000..2872c8fa4fc1 --- /dev/null +++ b/x11-toolkits/fltk/files/patch-src_filename_list.cxx @@ -0,0 +1,11 @@ +--- src/filename_list.cxx.orig 2010-02-09 11:00:46.000000000 +0100 ++++ src/filename_list.cxx 2010-02-09 11:35:23.000000000 +0100 +@@ -54,7 +54,7 @@ + Fl_File_Sort_F *sort) { + #ifndef HAVE_SCANDIR + int n = scandir(d, list, 0, sort); +-#elif defined(__hpux) || defined(__CYGWIN__) ++#elif defined(__hpux) || defined(__CYGWIN__) || defined(__FreeBSD__) + // HP-UX, Cygwin define the comparison function like this: + int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort); + #elif defined(__osf__) |