1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

- Fix build on 10.x

This commit is contained in:
Dmitry Marakasov 2014-02-19 09:00:34 +00:00
parent 3c8a5b8967
commit b23ce6574a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345032
2 changed files with 15 additions and 2 deletions

View File

@ -33,12 +33,13 @@ post-patch:
s:CFLAGS =:CFLAGS +=:g; \
s:CXXFLAGS=:CXXFLAGS+=:g; \
s:-lm:${PTHREAD_LIBS} -lm:g; \
s:/usr/X11R6:${LOCALBASE}:g" \
s:/usr/X11R6:${LOCALBASE}:g; \
s:gcc:${CC}:; s:g\+\+:${CXX}:" \
< ${WRKSRC}/Makefile.in.orig > ${WRKSRC}/Makefile.in
@${FIND} ${WRKSRC} -type f -name "*.C" -o -name "*.cpp" -o -name "*.h" | ${XARGS} \
${REINPLACE_CMD} -e '/^#include <FL/s|.h>$$|.H>|; /^#include "FL/s|.h"$$|.H"|; \
s|fl_file_chooser.H|Fl_File_Chooser.H|g'
s|fl_file_chooser.H|Fl_File_Chooser.H|g; s|iostream.h|iostream|; s|fstream.h|fstream|'
pre-install:
${ECHO_CMD} bin/SpiralLoops > ${PLIST}

View File

@ -0,0 +1,12 @@
--- GUI/Widgets/Fl_Trigger.h.orig 2001-04-20 00:48:10.000000000 +0400
+++ GUI/Widgets/Fl_Trigger.h 2014-02-13 05:50:41.290374838 +0400
@@ -24,6 +24,9 @@
#ifndef TRIGGERWIDGET
#define TRIGGERWIDGET
+using std::istream;
+using std::ostream;
+
class Fl_Trigger : public Fl_Widget
{
public: