BSDBuild-SVN | 6 Oct 15:52

BSDBuild: r740 - trunk

Author: vedge
Date: 2008-10-06 10:52:55 -0300 (Mon, 06 Oct 2008)
New Revision: 740

Modified:
   trunk/mkify.pl
Log:
simplify

Modified: trunk/mkify.pl
===================================================================
--- trunk/mkify.pl	2008-10-06 11:21:54 UTC (rev 739)
+++ trunk/mkify.pl	2008-10-06 13:52:55 UTC (rev 740)
@@ -22,165 +22,235 @@
 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE..
+#

-sub MKCopy;
+@Scripts = qw(
+	mkdep
+	mkconcurrent.pl
+	manlinks.pl
+	cmpfiles.pl
+	gen-declspecs.pl);
+		  
+@LibtoolFiles = qw(
+	config.guess
+	config.sub
(Continue reading)

BSDBuild-SVN | 6 Oct 13:18

BSDBuild: r738 - trunk

Author: vedge
Date: 2008-10-06 08:21:10 -0300 (Mon, 06 Oct 2008)
New Revision: 738

Modified:
   trunk/configure
   trunk/configure.in
Log:
2.4

Modified: trunk/configure
===================================================================
--- trunk/configure	2008-10-05 06:38:22 UTC (rev 737)
+++ trunk/configure	2008-10-06 11:21:10 UTC (rev 738)
@@ -8,7 +8,7 @@
 #
 #     $ cat configure.in | mkconfigure > configure
 #
-# Copyright (c) 2001-2007 Hypertriton, Inc. <http://hypertriton.com/>
+# Copyright (c) 2001-2008 Hypertriton, Inc. <http://hypertriton.com/>
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -112,6 +112,9 @@
 	--testdir=*)
 	    testdir=$optarg
 	    ;;
+	--cache=*)
+	    cache=$optarg
+	    ;;
(Continue reading)

BSDBuild-SVN | 5 Oct 08:34

BSDBuild: r737 - trunk/BSDBuild

Author: vedge
Date: 2008-10-05 03:38:22 -0300 (Sun, 05 Oct 2008)
New Revision: 737

Modified:
   trunk/BSDBuild/Core.pm
   trunk/BSDBuild/byte_order.pm
   trunk/BSDBuild/cc.pm
   trunk/BSDBuild/cxx.pm
Log:
always set $MK_COMPILE_STATUS

Modified: trunk/BSDBuild/Core.pm
===================================================================
--- trunk/BSDBuild/Core.pm	2008-10-05 04:35:22 UTC (rev 736)
+++ trunk/BSDBuild/Core.pm	2008-10-05 06:38:22 UTC (rev 737)
@@ -350,16 +350,16 @@
 echo "int main (int argc, char *argv[]) { return (0); }" >> conftest.c
 EOF
 	print << 'EOF';
-compile="ok"
+MK_COMPILE_STATUS="OK"
 echo "$CC $CFLAGS $TEST_CFLAGS -o $testdir/conftest conftest.c" >>config..log
 $CC $CFLAGS $TEST_CFLAGS -o $testdir/conftest conftest.c 2>>config.log
 if [ $? != 0 ]; then
 	echo "-> failed ($?)" >> config.log
-	compile="failed"
+	MK_COMPILE_STATUS="FAIL($?)"
 fi
 rm -f $testdir/conftest conftest.c
(Continue reading)

BSDBuild-SVN | 5 Oct 06:35

BSDBuild: r736 - trunk/BSDBuild

Author: vedge
Date: 2008-10-05 01:35:22 -0300 (Sun, 05 Oct 2008)
New Revision: 736

Modified:
   trunk/BSDBuild/Core.pm
Log:
fix code in TryCompile()

Modified: trunk/BSDBuild/Core.pm
===================================================================
--- trunk/BSDBuild/Core.pm	2008-10-05 03:58:31 UTC (rev 735)
+++ trunk/BSDBuild/Core.pm	2008-10-05 04:35:22 UTC (rev 736)
@@ -281,7 +281,7 @@

 sub TryCompile
 {
-	my $define = shift;
+	my ($define, $code) = @_;

 	print << "EOF";
 MK_CACHED="No"
BSDBuild-SVN | 5 Oct 05:56

BSDBuild: r735 - in trunk: . BSDBuild

Author: vedge
Date: 2008-10-05 00:58:31 -0300 (Sun, 05 Oct 2008)
New Revision: 735

Removed:
   trunk/BSDBuild/agar-sc.pm
   trunk/BSDBuild/agar-sg.pm
Modified:
   trunk/BSDBuild/Core.pm
   trunk/BSDBuild/Makefile
   trunk/BSDBuild/agar-core.pm
   trunk/BSDBuild/agar-dev.pm
   trunk/BSDBuild/agar-map.pm
   trunk/BSDBuild/agar-net.pm
   trunk/BSDBuild/agar-rg.pm
   trunk/BSDBuild/agar-vg.pm
   trunk/BSDBuild/agar.pm
   trunk/BSDBuild/edacious.pm
   trunk/BSDBuild/freesg.pm
   trunk/mkconfigure.pl
Log:
- implement --cache option.
- warn users about multiple instances of "foo-config" scripts in $PATH.

Modified: trunk/BSDBuild/Core.pm
===================================================================
--- trunk/BSDBuild/Core.pm	2008-10-05 01:55:45 UTC (rev 734)
+++ trunk/BSDBuild/Core.pm	2008-10-05 03:58:31 UTC (rev 735)
@@ -71,23 +71,101 @@
 EOF
(Continue reading)

BSDBuild: r734 - trunk

Author: vedge
Date: 2008-10-04 22:55:45 -0300 (Sat, 04 Oct 2008)
New Revision: 734

Modified:
   trunk/build.lib.mk
   trunk/build.man.mk
   trunk/build.po.mk
   trunk/build.prog.mk
   trunk/build.proj.mk
Log:
avoid usage of "echo -n"

Modified: trunk/build.lib.mk
===================================================================
--- trunk/build.lib.mk	2008-10-05 01:55:28 UTC (rev 733)
+++ trunk/build.lib.mk	2008-10-05 01:55:45 UTC (rev 734)
@@ -334,14 +334,14 @@
 	    rm -f ${CLEANFILES}; \
 	fi
 	@if [ -e ".depend" ]; then \
-		echo "echo -n >.depend"; \
-		echo -n >.depend; \
+		echo "echo >.depend"; \
+		echo >.depend; \
 	fi

 cleandir-lib:
 	rm -f ${LIBTOOL} ${LIBTOOL_COOKIE} ${LTCONFIG_LOG} config.log tags
 	if [ -e "./config/prefix.h" ]; then rm -fr ./config; fi
(Continue reading)

BSDBuild: r733 - trunk

Author: vedge
Date: 2008-10-04 22:55:28 -0300 (Sat, 04 Oct 2008)
New Revision: 733

Modified:
   trunk/mkconcurrent.pl
Log:
+ Makefile.prog to @MKFILES

Modified: trunk/mkconcurrent.pl
===================================================================
--- trunk/mkconcurrent.pl	2008-10-05 01:54:06 UTC (rev 732)
+++ trunk/mkconcurrent.pl	2008-10-05 01:55:28 UTC (rev 733)
@@ -32,6 +32,7 @@
 $BUILD = '';
 @MKFILES = (
 	'Makefile.proj',
+	'Makefile.prog',
 	'\.mk$',
 	'\.inc$',
 	'^mkdep$',

BSDBuild: r732 - trunk/BSDBuild

Author: vedge
Date: 2008-10-04 22:54:06 -0300 (Sat, 04 Oct 2008)
New Revision: 732

Modified:
   trunk/BSDBuild/pthreads.pm
Log:
test for the pthreadsGC* libraries from Pthreads-w32; patch from Ryan Lindeman.

Modified: trunk/BSDBuild/pthreads.pm
===================================================================
--- trunk/BSDBuild/pthreads.pm	2008-09-28 06:05:03 UTC (rev 731)
+++ trunk/BSDBuild/pthreads.pm	2008-10-05 01:54:06 UTC (rev 732)
@@ -25,10 +25,36 @@
 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 # USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE..

-my $pthreads_test = << 'EOF';
+my @include_dirs = (
+	'/usr/include/pthreads',
+	'/usr/local/include',
+	'/usr/local/include/pthreads',
+);
+
+my @lib_dirs = (
+	'/usr/local/lib',
+);
+
+my @lib_files = (
+	'pthread',
(Continue reading)

BSDBuild: r731 - trunk/BSDBuild

Author: vedge
Date: 2008-09-28 03:05:03 -0300 (Sun, 28 Sep 2008)
New Revision: 731

Added:
   trunk/BSDBuild/percgi.pm
Modified:
   trunk/BSDBuild/Makefile
Log:
test for PerCGI

Modified: trunk/BSDBuild/Makefile
===================================================================
--- trunk/BSDBuild/Makefile	2008-09-27 05:53:00 UTC (rev 730)
+++ trunk/BSDBuild/Makefile	2008-09-28 06:05:03 UTC (rev 731)
@@ -86,7 +86,8 @@
 	dyld.pm \
 	shl_load.pm \
 	float_h.pm \
-	agar-math.pm
+	agar-math.pm \
+	percgi.pm

 all:

Added: trunk/BSDBuild/percgi.pm
===================================================================
--- trunk/BSDBuild/percgi.pm	                        (rev 0)
+++ trunk/BSDBuild/percgi.pm	2008-09-28 06:05:03 UTC (rev 731)
@@ -0,0 +1,65 @@
(Continue reading)

BSDBuild: r730 - trunk

Author: vedge
Date: 2008-09-27 02:53:00 -0300 (Sat, 27 Sep 2008)
New Revision: 730

Modified:
   trunk/build.proj.mk
Log:
pass --with-proj-generation to configure scripts (useful to avoid symlink
creation, etc).

Modified: trunk/build.proj.mk
===================================================================
--- trunk/build.proj.mk	2008-09-27 05:51:54 UTC (rev 729)
+++ trunk/build.proj.mk	2008-09-27 05:53:00 UTC (rev 730)
@@ -84,7 +84,7 @@
 			rm -fR configure.tmp configure.lua; \
 			exit 1; \
 		fi; \
-		/bin/sh ./configure.tmp $$_tgtopts; \
+		/bin/sh ./configure.tmp $$_tgtopts --with-proj-generation; \
 		if [ $$? != 0 ]; then \
 			echo "configure failed"; \
 			echo -n > Makefile.config; \

BSDBuild: r729 - trunk

Author: vedge
Date: 2008-09-27 02:51:54 -0300 (Sat, 27 Sep 2008)
New Revision: 729

Modified:
   trunk/mkconfigure.pl
Log:
- don't quote variables in C_INCDIR().
- pre-check for any conflicting ./config files.

Modified: trunk/mkconfigure.pl
===================================================================
--- trunk/mkconfigure.pl	2008-09-02 02:27:18 UTC (rev 728)
+++ trunk/mkconfigure.pl	2008-09-27 05:51:54 UTC (rev 729)
@@ -70,7 +70,7 @@
 	my $dir = shift;
 	my $qdir = $dir;

-	if ($dir =~ /^\$/) { $qdir = '\"'.$dir.'\"'; }
+#	if ($dir =~ /^\$/) { $qdir = '\"'.$dir.'\"'; }
 	MkDefine('CFLAGS', '$CFLAGS -I'.$qdir);
 	MkDefine('CXXFLAGS', '$CXXFLAGS -I'.$qdir);
 	MkSaveMK('CFLAGS');
@@ -84,7 +84,7 @@
 {
 	my $dir = shift;

-	if ($dir =~ /^\$/) { $qdir = '\"'.$dir.'\"'; }
+#	if ($dir =~ /^\$/) { $qdir = '\"'.$dir.'\"'; }
 	MkDefine('LIBS', '$LIBS -L'.$dir);
(Continue reading)


Gmane