diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2003-11-20 09:28:34 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2003-11-20 09:28:34 +0000 |
commit | 9e79d0a9c6127b7d4f5ebb5d42d009232319aed3 (patch) | |
tree | 678aa3cfb02bb5df60658638de6bd09fbacad5e5 /biology | |
parent | a2ca93df1cd2f4d9a959aa1e0fd09b315ba379e7 (diff) | |
download | ports-9e79d0a9c6127b7d4f5ebb5d42d009232319aed3.tar.gz ports-9e79d0a9c6127b7d4f5ebb5d42d009232319aed3.zip |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/L-Breeder/Makefile | 8 | ||||
-rw-r--r-- | biology/L-Breeder/files/patch-Lsystem::Lstring.cpp | 28 | ||||
-rw-r--r-- | biology/L-Breeder/files/patch-thinair::environ.h | 25 |
3 files changed, 54 insertions, 7 deletions
diff --git a/biology/L-Breeder/Makefile b/biology/L-Breeder/Makefile index 0fd1e8394b5a..321eee665850 100644 --- a/biology/L-Breeder/Makefile +++ b/biology/L-Breeder/Makefile @@ -37,12 +37,6 @@ pre-everything:: @${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS" .endif -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 500000 -BROKEN= "invalid C++" -.endif - post-patch: @${FIND} ${WRKDIR} -type f -name Makefile | \ ${XARGS} -n 10 ${REINPLACE_CMD} -E -e \ @@ -65,4 +59,4 @@ post-patch: do-install: @${INSTALL_PROGRAM} ${WRKSRC}/L-Breeder ${PREFIX}/bin -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/biology/L-Breeder/files/patch-Lsystem::Lstring.cpp b/biology/L-Breeder/files/patch-Lsystem::Lstring.cpp new file mode 100644 index 000000000000..603dc3658d52 --- /dev/null +++ b/biology/L-Breeder/files/patch-Lsystem::Lstring.cpp @@ -0,0 +1,28 @@ +--- Lsystem/Lstring.cpp.orig Wed Aug 16 18:54:26 2000 ++++ Lsystem/Lstring.cpp Wed Nov 19 22:05:11 2003 +@@ -199,7 +199,7 @@ + + if (sscanf(the_text.c_str(),"%f",&temp)==1) + return temp; +- return sqrt(-1); ++ return sqrtf(-1); + + } + +@@ -329,13 +329,13 @@ + float param; + int conv,dummy; + the_length=0; +- if (the_pos==info_length()-1) return sqrt(-1); +- if (bracketed_chars.find(the_text[the_pos])==string::npos) return sqrt(-1); ++ if (the_pos==info_length()-1) return sqrt(-1.0); ++ if (bracketed_chars.find(the_text[the_pos])==string::npos) return sqrt(-1.0); + + conv=sscanf(&(the_text.data()[the_pos+1]),"(%f)%n",¶m,&the_length); + if (conv==sscanf("","%n",&dummy)) { + the_length=0; +- return sqrt(-1); ++ return sqrt(-1.0); + } else { + return param; + }; diff --git a/biology/L-Breeder/files/patch-thinair::environ.h b/biology/L-Breeder/files/patch-thinair::environ.h new file mode 100644 index 000000000000..53eb1b9055be --- /dev/null +++ b/biology/L-Breeder/files/patch-thinair::environ.h @@ -0,0 +1,25 @@ +--- thinair/environ.h.orig Wed Aug 16 17:08:27 2000 ++++ thinair/environ.h Wed Nov 19 21:54:56 2003 +@@ -35,17 +35,20 @@ + #include <minmax.h> + #endif + +- #if __GNUC__ >= 2 && __GNUC_MINOR__ >= 6 && defined( __cplusplus ) ++ #if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 6) || __GNUC__ > 2) && defined( __cplusplus ) + #define _HAS_BOOL + #define _STRING_CLASS +- #if __GNUC__ >= 2 && __GNUC_MINOR__ < 7 ++ #define _ANSI_CPP_HEADERS ++ #if __GNUC__ == 2 && __GNUC_MINOR__ < 7 + #define _STRING_HEADER <g++/String.h> + #define _STRING String + #else + #define _STRING_HEADER <string> + #define _STRING string + #define _DIFFERING_RETURNS_ALLOWED ++ #if __GNUC__ == 2 + #include <stl.h> ++ #endif + #endif + #define _HAS_INT64 + |