<commit_before>#! /usr/bin/make -f
STOWDEST ?= /usr/local/stow/gpac

MAX_LOAD ?= $(shell echo `nproc` + 0.5 | bc)
export MULTIMAKE ?= $(MAKE) -j -l $(MAX_LOAD)


build: config
	$(MULTIMAKE) -C $@
install: build
	$(MAKE) -C $^ $@
	- mkdir -p $(STOWDEST)/include
	[ -d $(STOWDEST)/include ] && cp -Ru SRC/include/gpac $(STOWDEST)/include
	cd $(STOWDEST)/.. && sudo stow gpac


debian-dep:
	sudo apt-get install -y \
		libssl-dev libxmlrpc-core-c3-dev libwxgtk3.0-dev \
		libjpeg-dev libpng12-dev libfreetype6-dev \
		libasound2-dev libmozjs185-dev zlib1g-dev \
		libxv-dev libxvidcore-dev libopenjpeg-dev liba52-0.7.4-dev libfaad-dev \
		libogg-dev libvorbis-dev libtheora-dev libpulse-dev
#fedora-dep:
#	sudo dnf install -y yasm-devel


SRC:
	[ -d $@ ] || git submodule add -b master git://github.com/gpac/gpac.git $@
update: SRC
	git submodule update --init
config: SRC
	[ -d build ] || mkdir -p build
	chmod +x SRC/configure
	cd build && sh ../SRC/configure \
		--prefix=$(STOWDEST) --mandir=$(STOWDEST)/share/man \
		--disable-static \
		--use-ffmpeg=/usr/local --enable-pic
<commit_msg>Template added<commit_after>#! /usr/bin/make -f
STOWDEST ?= gpac
include ../autoconf-template.mk

# custom installation
reinstall:
	$(MAKE) -C build install
	mkdir $(PREFIX)/include
	cp -Ruv -t $(PREFIX)/include SRC/include/gpac
	cd $(STOWROOT) && sudo stow gpac

debian-dep:
	sudo apt-get install -y \
		libssl-dev libxmlrpc-core-c3-dev libwxgtk3.0-dev \
		libjpeg-dev libpng12-dev libfreetype6-dev \
		libasound2-dev libmozjs185-dev zlib1g-dev \
		libxv-dev libxvidcore-dev libopenjpeg-dev liba52-0.7.4-dev libfaad-dev \
		libogg-dev libvorbis-dev libtheora-dev libpulse-dev
#fedora-dep:
#	sudo dnf install -y yasm-devel


SRC:
	[ -d $@ ] || git submodule add -b master git://github.com/gpac/gpac.git $@
update: SRC
	git submodule update --init
config: SRC
	[ -d build ] || mkdir -p build
	chmod +x SRC/configure
	cd build && sh ../SRC/configure \
		--prefix=$(PREFIX) --mandir=$(PREFIX)/share/man \
		--disable-static \
		--use-ffmpeg=/usr/local --enable-pic

{'fraction_non_alphanumeric': 0.1599219892735251, 'fraction_numerical': 0.01657727937591419, 'mean_word_length': 3.1707317073170733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1298983', 'n_tokens_mistral': 901, 'n_tokens_neox': 835, 'n_words': 190}