diff options
author | tron <tron@pkgsrc.org> | 2001-12-08 18:38:50 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-12-08 18:38:50 +0000 |
commit | 61eaa9aa37975a5dcbb2c5363e72e52759084780 (patch) | |
tree | 847c1cb59339c20c83bb641cb7ed509a6c4bca27 | |
parent | 27bcab30fe5f46c58746bb779d1bf3c814701571 (diff) | |
download | pkgsrc-61eaa9aa37975a5dcbb2c5363e72e52759084780.tar.gz |
Fix build problems under Solaris.
-rw-r--r-- | misc/bidwatcher/Makefile | 8 | ||||
-rw-r--r-- | misc/bidwatcher/distinfo | 4 | ||||
-rw-r--r-- | misc/bidwatcher/patches/patch-ac | 48 |
3 files changed, 44 insertions, 16 deletions
diff --git a/misc/bidwatcher/Makefile b/misc/bidwatcher/Makefile index 637f3193338..78898230459 100644 --- a/misc/bidwatcher/Makefile +++ b/misc/bidwatcher/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2001/11/21 22:40:05 tron Exp $ +# $NetBSD: Makefile,v 1.7 2001/12/08 18:38:50 tron Exp $ DISTNAME= bidwatcher-1.3.0 PKGNAME= bidwatcher-1.3.0.99 @@ -15,6 +15,12 @@ USE_GMAKE= YES DOCDIR= ${PREFIX}/share/doc/bidwatcher HTMLDIR= ${PREFIX}/share/doc/html/bidwatcher +.include "../../mk/bsd.prefs.mk" + +.if (${OPSYS} == SunOS) +MAKE_ENV+= CC="${CC}" CXX="${CXX}" +.endif + post-install: ${INSTALL_DATA_DIR} ${DOCDIR} for FILE in AUTHORS COPYING INSTALL NEWS README; do \ diff --git a/misc/bidwatcher/distinfo b/misc/bidwatcher/distinfo index 678ae61d0cd..0620efbb63c 100644 --- a/misc/bidwatcher/distinfo +++ b/misc/bidwatcher/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.5 2001/11/21 22:40:05 tron Exp $ +$NetBSD: distinfo,v 1.6 2001/12/08 18:38:50 tron Exp $ SHA1 (bidwatcher-1.3.0.tar.gz) = 2fc2d17d65aab43fd0b716cce3588207aebb8a68 Size (bidwatcher-1.3.0.tar.gz) = 97828 bytes SHA1 (patch-aa) = 5576ea59e5a996a95b285cceed59fca83555191c SHA1 (patch-ab) = 638a20dd89941b7b1033b655c8c51813e70f8814 -SHA1 (patch-ac) = 84246dbea849dfe78265e8867b33a1007d006a04 +SHA1 (patch-ac) = 6eee0f87d0e75955a65082c0339a1e832fcaa815 SHA1 (patch-ad) = 346f653298f0c254b3f1669710753cba7426af41 diff --git a/misc/bidwatcher/patches/patch-ac b/misc/bidwatcher/patches/patch-ac index 583aeb27e58..ec07282aebc 100644 --- a/misc/bidwatcher/patches/patch-ac +++ b/misc/bidwatcher/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.1 2001/11/21 22:42:04 tron Exp $ +$NetBSD: patch-ac,v 1.2 2001/12/08 18:38:50 tron Exp $ --- helpers.cpp.orig Thu Jul 5 01:54:48 2001 -+++ helpers.cpp Wed Nov 21 23:34:17 2001 ++++ helpers.cpp Sat Dec 8 19:33:32 2001 @@ -5,6 +5,7 @@ // Tom McNair (tmcnair@cyberhighway.net) // Wayne Schlitt (wayne@midwestcs.com) @@ -64,6 +64,28 @@ $NetBSD: patch-ac,v 1.1 2001/11/21 22:42:04 tron Exp $ return ERROR; } /* +@@ -347,8 +366,8 @@ + + while( *Buff ) + { +- if(index(Buff,'\n')==NULL) nlpos=strlen(Buff)-1; +- else nlpos=index(Buff,'\n')-Buff; ++ if(strchr(Buff,'\n')==NULL) nlpos=strlen(Buff)-1; ++ else nlpos=strchr(Buff,'\n')-Buff; + strncpy(lineBuff,Buff,nlpos); + Buff+=nlpos+1; + lineBuff[nlpos]='\0'; +@@ -405,8 +424,8 @@ + while( *Buff ) + { + // Get the next line +- if(index(Buff,'\n')==NULL) nlpos=strlen(Buff)-1; +- else nlpos=index(Buff,'\n')-Buff; ++ if(strchr(Buff,'\n')==NULL) nlpos=strlen(Buff)-1; ++ else nlpos=strchr(Buff,'\n')-Buff; + strncpy(lineBuff,Buff,nlpos); + Buff+=nlpos+1; + lineBuff[nlpos]='\0'; @@ -448,13 +467,15 @@ ////////////////////////////////////////////////////////////////////////////// // ReturnBidVarNum @@ -244,17 +266,6 @@ $NetBSD: patch-ac,v 1.1 2001/11/21 22:42:04 tron Exp $ - HighBidder[75] = '\0'; - } - break; -- -- //case 12: idx=GetLineOfData(idx,1024,LineData,Buff); -- // CheckBadChars(LineData,CheckPrice); -- // strncpy(BidInc,LineData,14); -- // break; -- -- case 13: // dutch auction -- streamBuff.getline(LineData, 1024, '\n'); -- CheckBadChars(LineData,CheckPrice); -- strcpy(HighBidder, "Dutch Auction"); -- break; + parseprice(LineData,this,FALSE); + /* CheckBadChars(LineData,CheckPrice); + strncpy(CurrentBid,LineData,14); */ @@ -327,6 +338,17 @@ $NetBSD: patch-ac,v 1.1 2001/11/21 22:42:04 tron Exp $ + } + break; +- //case 12: idx=GetLineOfData(idx,1024,LineData,Buff); +- // CheckBadChars(LineData,CheckPrice); +- // strncpy(BidInc,LineData,14); +- // break; +- +- case 13: // dutch auction +- streamBuff.getline(LineData, 1024, '\n'); +- CheckBadChars(LineData,CheckPrice); +- strcpy(HighBidder, "Dutch Auction"); +- break; +- - default:; - } - } |