head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.42 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.40 pkgsrc-2012Q4-base:1.5 pkgsrc-2011Q4:1.5.0.38 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q2:1.5.0.36 pkgsrc-2011Q2-base:1.5 pkgsrc-2009Q4:1.5.0.34 pkgsrc-2009Q4-base:1.5 pkgsrc-2008Q4:1.5.0.32 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.30 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.28 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.26 pkgsrc-2008Q2-base:1.5 pkgsrc-2008Q1:1.5.0.24 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.22 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.20 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.18 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.16 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.14 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.12 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.10 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.8 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.6 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.4 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.2 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.4.0.20 pkgsrc-2005Q1-base:1.4 pkgsrc-2004Q4:1.4.0.18 pkgsrc-2004Q4-base:1.4 pkgsrc-2004Q3:1.4.0.16 pkgsrc-2004Q3-base:1.4 pkgsrc-2004Q2:1.4.0.14 pkgsrc-2004Q2-base:1.4 pkgsrc-2004Q1:1.4.0.12 pkgsrc-2004Q1-base:1.4 pkgsrc-2003Q4:1.4.0.10 pkgsrc-2003Q4-base:1.4 netbsd-1-6-1:1.4.0.6 netbsd-1-6-1-base:1.4 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 netbsd-1-4-PATCH002:1.1.1.1 comdex-fall-1999:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2005.05.18.22.39.01; author wiz; state dead; branches; next 1.4; 1.4 date 2001.05.11.14.12.10; author dmcmahill; state Exp; branches; next 1.3; 1.3 date 2000.12.15.03.20.50; author garbled; state Exp; branches; next 1.2; 1.2 date 2000.12.15.03.13.05; author garbled; state Exp; branches; next 1.1; 1.1 date 99.07.21.22.56.35; author garbled; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.07.21.22.56.35; author garbled; state Exp; branches; next ; desc @@ 1.5 log @Remove packages that have been broken on 2.0/i386 for over 9 months now; neither maintainer nor anyone else stepped up to fix them. Predicted on tech-pkg and in private mail to maintainers; no comments. @ text @$NetBSD: patch-ac,v 1.4 2001/05/11 14:12:10 dmcmahill Exp $ add an operator overload for CL_String << long so this can build on 64-bit systems. --- Sources/API/Core/System/clanstring.h.orig Tue May 9 17:09:32 2000 +++ Sources/API/Core/System/clanstring.h Thu May 10 17:57:14 2001 @@@@ -26,4 +26,6 @@@@ #ifndef WIN32 #include +#include +#include #endif @@@@ -69,4 +71,36 @@@@ } } + +void ltoa(long num, char *str, const int number_format) +{ + long num1 = num; + int num_chars = 0; + + while (num1>0) + { + num_chars++; + num1 /= number_format; + } + + if (num_chars == 0) num_chars = 1; + + str[num_chars] = 0; // Null-terminate the str + + for (int pos = num_chars-1; pos>=0; pos--) + { + int cur_char = num % number_format; + + if (cur_char < 10) // Insert number + { + str[pos] = cur_char + '0'; + } + else // Insert letter + { + str[pos] = cur_char-10 + 'A'; + } + + num /= number_format; + } +} #else #pragma warning( disable : 4244 ) @@@@ -97,4 +131,26 @@@@ return text; } + + char *long_to_string(const char *prefix, const long number) + { + char buf[20]; + ltoa(number, buf, 10); + + int len=0; + if (prefix!=NULL) len=strlen(prefix); + + char *text=new char[len+strlen(buf)+1]; + if (prefix!=NULL) + { + strcpy(text, prefix); + strcat(text, buf); + } + else + { + strcpy(text, buf); + } + + return text; + } char *float_to_string(const char *prefix, const float _float_number) @@@@ -102,7 +158,10 @@@@ char buf[25]; buf[0]=0; + int precision=4; +#if (defined(BSD) && BSD >= 199306) + snprintf(buf, sizeof buf, "%.*f", precision, (double)_float_number); +#else int decimal, sign; - int precision=4; char temp; @@@@ -135,4 +194,5 @@@@ copy_strings: +#endif int len=0; if (prefix!=NULL) len=strlen(prefix); @@@@ -434,4 +494,22 @@@@ { char *new_string=int_to_string(str, number); + if (str!=NULL) delete str; + str=new_string; + + return *this; + } + + CL_String &operator<< (const unsigned long number) + { + char *new_string=long_to_string(str, number); + if (str!=NULL) delete str; + str=new_string; + + return *this; + } + + CL_String &operator<< (const long number) + { + char *new_string=long_to_string(str, number); if (str!=NULL) delete str; str=new_string; @ 1.4 log @add a missing CL_String << long operator overload needed on systems for which sizeof(long) != sizeof(int). @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Fix the hermes version requirement, and unhose a hosed patch @ text @d1 9 a9 5 $NetBSD: patch-ac,v 1.2 2000/12/15 03:13:05 garbled Exp $ --- Sources/API/Core/System/clanstring.h.orig Tue May 9 14:09:32 2000 +++ Sources/API/Core/System/clanstring.h Thu Dec 14 18:08:39 2000 @@@@ -25,6 +25,8 @@@@ d16 65 a80 3 #ifdef __BEOS__ @@@@ -101,9 +103,12 @@@@ { d92 1 a92 3 float float_number = _float_number; @@@@ -134,6 +139,7 @@@@ strcat(buf, &float_buffer[decimal]); d98 23 a120 1 @ 1.2 log @Update this package to Clanlib-0.4.4.. too many changes to list. @ text @d1 3 a3 3 $NetBSD$ --- Sources/API/Core/System/clanstring.h.orig Tue May 9 14:09:32 2000 +++ Sources/API/Core/System/clanstring.h Thu Dec 14 18:08:39 2000 @ 1.1 log @Initial revision @ text @d2 19 a20 8 --- Layer1/Sound/ClanSound/ClanSound/oss.cpp.orig Mon Dec 21 16:24:50 1998 +++ Layer1/Sound/ClanSound/ClanSound/oss.cpp Sat Jul 17 08:41:13 1999 @@@@ -8,7 +8,11 @@@@ #include #include #include +#ifdef __NetBSD__ +#include d22 9 a30 1 #include d32 2 a33 1 #include a34 13 #include "oss.h" @@@@ -24,7 +28,11 @@@@ int cs_oss_init() //: Initialize sound playback. { +#ifndef __NetBSD__ dev_dsp_fd = open("/dev/dsp", O_WRONLY); +#else + dev_dsp_fd = open("/dev/sound", O_WRONLY); +#endif if (dev_dsp_fd == -1) { cout << "ClanSound: Could not open /dev/dsp. No sound will be available." << endl; @ 1.1.1.1 log @Import of clanlib 0.1.15. Known to work on ELF.. a.out may need some work. The ClanLib Game SDK. @ text @@