<commit_before># free peer-reviewed portable C++ source libraries
# http://www.boost.org/
# MIT-like 

include ../../Library/Rules.mk

TITLE=		Boost C++ Libraries
NAME=		boost
VERSION=	1.44.0
REVISION=	0
URL=		http://downloads.sourceforge.net/boost
SOURCE=		$(NAME)_1_44_0.tar.bz2

README=		$(BUILDDIR)/index.html
LICENSE=	$(BUILDDIR)/LICENSE_1_0.txt

prep: retrieve
	tar jxvf $(SOURCE)
	mv $(NAME)_1_44_0 $(NAME)-$(VERSION)
	touch prep

build: prep $(DEPENDS)
	cd $(BUILDDIR) ; ./bootstrap.sh ; \
	./bjam toolset=darwin architecture=x86 address-model=32_64
	touch build

install: build
	install -d $(INSTALLDIR)/usr/local/bin
	install -m 755 $(BUILDDIR)/tools/jam/src/bin.*/bjam $(INSTALLDIR)/usr/local/bin
	install -d $(INSTALLDIR)/usr/local/lib
	install -m 644 $(BUILDDIR)/stage/lib/lib*.dylib $(INSTALLDIR)/usr/local/lib
	cd $(BUILDDIR)/stage/lib ; (tar -cv lib*.dylib | tar -xv -C $(INSTALLDIR)/usr/local/lib)
	install -m 644 $(BUILDDIR)/stage/lib/lib*.a $(INSTALLDIR)/usr/local/lib
	cd $(BUILDDIR) ; find boost -type d -exec install -d $(INSTALLDIR)/usr/local/include/{} \;
	cd $(BUILDDIR) ; find boost ! -name \*.orig -type f -exec install -m 644 {} $(INSTALLDIR)/usr/local/include/{} \;
	install -d $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/{LICENSE_1_0.txt,index.*} $(INSTALLDOCDIR)
	strip $(INSTALLDIR)/usr/local/bin/*
	strip -x $(INSTALLDIR)/usr/local/lib/lib*.dylib
	strip -x $(INSTALLDIR)/usr/local/lib/lib*.a
	touch install

test: install
	#for x in $(wildcard $(INSTALLDIR)/usr/local/bin/*) ; do \
	#	lipo $$x -verify_arch i386 x86_64 ; done
	for x in $(wildcard $(INSTALLDIR)/usr/local/lib/*.dylib) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	for x in $(wildcard $(INSTALLDIR)/usr/local/lib/*.a) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	touch test<commit_msg>boost: adapted to the new buildsystem.<commit_after>include ../../Library/Config.mk
include ../../Library/Rudix.mk

Description=	Boost provides free portable peer-reviewed C++ libraries
Site=		http://www.boost.org/
License=	MIT-like
Title=		Boost C++ Libraries
Name=		boost
Version=	1.46.1
AltVersion=	1_46_1
Revision=	0
URL=		http://downloads.sourceforge.net/boost
Source=		$(Name)_$(AltVersion).tar.bz2
ReadMeFile=	$(SourceDir)/index.html
LicenseFile=	$(SourceDir)/LICENSE_1_0.txt

UncompressedName = $(Name)_$(AltVersion)

ifdef FOO
build: prep $(DEPENDS)
	cd $(SourceDir) ; ./bootstrap.sh ; \
	./bjam toolset=darwin architecture=x86 address-model=32_64
	touch build

install: build
	install -d $(InstallDir)$(BinDir)
	install -m 755 $(SourceDir)/tools/jam/src/bin.*/bjam $(InstallDir)$(BinDir)
	install -d $(InstallDir)$(LibDir)
	install -m 644 $(SourceDir)/stage/lib/lib*.dylib $(InstallDir)$(LibDir)
	cd $(SourceDir)/stage/lib ; (tar -cv lib*.dylib | tar -xv -C $(InstallDir)$(LibDir))
	install -m 644 $(SourceDir)/stage/lib/lib*.a $(InstallDir)$(LibDir)
	cd $(SourceDir) ; find boost -type d -exec install -d $(InstallDir)$(Prefix)/include/{} \;
	cd $(SourceDir) ; find boost ! -name \*.orig -type f -exec install -m 644 {} $(InstallDir)$(Prefix)/include/{} \;
	install -d $(InstallDir)/$(DocDir)/$(Name)
	install -m 644 $(SourceDir)/{LicenseFile_1_0.txt,index.*} $(InstallDir)/$(DocDir)/$(Name)
endif
{'fraction_non_alphanumeric': 0.17951920074929753, 'fraction_numerical': 0.02965969403684046, 'mean_word_length': 4.209756097560976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '310788', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1208, 'n_words': 284}