<commit_before># Apache Portable Runtime library
# http://apr.apache.org/
# Apache License

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

TITLE=		Apache Portable Runtime $(VERSION)
NAME=		apr
VERSION=	1.4.2
REVISION=	0
URL=		http://www.apache.org/dist/apr
SOURCE=		$(NAME)-$(VERSION).tar.bz2

prep: retrieve
	tar jxvf $(SOURCE)
	$(TOUCH) prep

build: prep $(DEPENDS)
	cd $(BUILDDIR) ; env CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAG)" \
	$(configure) \
		--prefix=/usr/local \
		--with-installbuilddir=/usr/local/share/apr-1/build-1 \
		--enable-threads ; $(make)
	$(TOUCH) build

install: build
	cd $(BUILDDIR) ; make DESTDIR=$(INSTALLDIR) install
	install -d $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/{CHANGES,LICENSE,NOTICE,README} $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/docs/* $(INSTALLDOCDIR)
	strip -x $(INSTALLDIR)/usr/local/lib/*.dylib
	strip -x $(INSTALLDIR)/usr/local/lib/*.a
	$(TOUCH) install

test: install
	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
	cd $(BUILDDIR)/test ; make all ; ./testall -v
	$(TOUCH) test<commit_msg>Expanded TOUCH Added support to compile only static<commit_after># Apache Portable Runtime library
# http://apr.apache.org/
# Apache License

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

TITLE=		Apache Portable Runtime $(VERSION)
NAME=		apr
VERSION=	1.4.2
REVISION=	0
URL=		http://www.apache.org/dist/apr
SOURCE=		$(NAME)-$(VERSION).tar.bz2

ifdef STATIC_ONLY
CONFIG_OPTS=	--enable-static --disable-shared
endif

prep: retrieve
	tar jxvf $(SOURCE)
	touch prep

build: prep $(DEPENDS)
	cd $(BUILDDIR) ; env CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAG)" \
	$(configure) $(CONFIG_OPTS) \
		--prefix=/usr/local \
		--with-installbuilddir=/usr/local/share/apr-1/build-1 \
		--enable-threads ; $(make)
	touch build

install: build
	cd $(BUILDDIR) ; make DESTDIR=$(INSTALLDIR) install
	install -d $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/{CHANGES,LICENSE,NOTICE,README} $(INSTALLDOCDIR)
	install -m 644 $(BUILDDIR)/docs/* $(INSTALLDOCDIR)
ifndef STATIC_ONLY
	strip -x $(INSTALLDIR)/usr/local/lib/*.dylib
endif
	strip -x $(INSTALLDIR)/usr/local/lib/*.a
	touch install

test: install
ifndef STATIC_ONLY
	for x in $(wildcard $(INSTALLDIR)/usr/local/lib/*.dylib) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
endif
	for x in $(wildcard $(INSTALLDIR)/usr/local/lib/*.a) ; do \
		lipo $$x -verify_arch i386 x86_64 ; done
	cd $(BUILDDIR)/test ; make all ; ./testall -v
	touch test
{'fraction_non_alphanumeric': 0.1681068342498036, 'fraction_numerical': 0.021209740769835034, 'mean_word_length': 3.974609375, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7512784', 'n_tokens_mistral': 1040, 'n_tokens_neox': 976, 'n_words': 237}