<commit_before>PROG?=		pkg
SRCS=		add.c \
		audit.c \
		autoremove.c \
		backup.c \
		check.c \
		clean.c \
		create.c \
		delete.c \
		event.c \
		info.c \
		install.c \
		lock.c \
		main.c \
		plugins.c \
		progressmeter.c \
		query.c \
		register.c \
		repo.c \
		rquery.c \
		update.c \
		upgrade.c \
		search.c \
		set.c \
		shlib.c \
		updating.c \
		utils.c \
		version.c \
		which.c \
		fetch.c \
		shell.c \
		stats.c

PREFIX?=	/usr/local
BINDIR=		${PREFIX}/sbin
MANDIR=		${PREFIX}/man/man

.if exists(${.CURDIR}/../.git) && exists(/usr/local/bin/git)
GITHASH!=	cd ${.CURDIR} && git rev-parse HEAD
CFLAGS+=	-DGITHASH="\" ${GITHASH}\""
.endif

DEBUG_FLAGS+=	-g -O0
.if defined(PROFILE_BUILD)
DEBUG_FLAGS+=	-pg
.endif

CFLAGS+=	-I${.CURDIR}/../libpkg
LDADD+=		-L${.OBJDIR}/../libpkg \
		-lpkg \
		-lutil \
		-lpthread \
		${LDADD_STATIC}

.if !exists(/usr/include/jail.h)
CFLAGS+=	-DNO_LIBJAIL
.else
LDADD+=		-ljail
.endif

WARNS?=		6
MAN=	pkg.8 \
	pkg-add.8 \
	pkg-audit.8 \
	pkg-autoremove.8 \
	pkg-backup.8 \
	pkg-check.8 \
	pkg-clean.8 \
	pkg-create.8 \
	pkg-delete.8 \
	pkg-fetch.8 \
	pkg-info.8 \
	pkg-install.8 \
	pkg-lock.8 \
	pkg-query.8 \
	pkg-register.8 \
	pkg-repo.8 \
	pkg-rquery.8 \<commit_msg>Use -rpath to make sure pkg can find its library once installed and not depend on ldconfig<commit_after>PROG?=		pkg
SRCS=		add.c \
		audit.c \
		autoremove.c \
		backup.c \
		check.c \
		clean.c \
		create.c \
		delete.c \
		event.c \
		info.c \
		install.c \
		lock.c \
		main.c \
		plugins.c \
		progressmeter.c \
		query.c \
		register.c \
		repo.c \
		rquery.c \
		update.c \
		upgrade.c \
		search.c \
		set.c \
		shlib.c \
		updating.c \
		utils.c \
		version.c \
		which.c \
		fetch.c \
		shell.c \
		stats.c

PREFIX?=	/usr/local
BINDIR=		${PREFIX}/sbin
MANDIR=		${PREFIX}/man/man

.if exists(${.CURDIR}/../.git) && exists(/usr/local/bin/git)
GITHASH!=	cd ${.CURDIR} && git rev-parse HEAD
CFLAGS+=	-DGITHASH="\" ${GITHASH}\""
.endif

DEBUG_FLAGS+=	-g -O0
.if defined(PROFILE_BUILD)
DEBUG_FLAGS+=	-pg
.endif

CFLAGS+=	-I${.CURDIR}/../libpkg
LDADD+=		-L${.OBJDIR}/../libpkg \
		-lpkg \
		-lutil \
		-lpthread \
		${LDADD_STATIC}

.if !exists(/usr/include/jail.h)
CFLAGS+=	-DNO_LIBJAIL
.else
LDADD+=		-ljail
.endif

.if !defined(STATIC_PKGNG)
LDFLAGS+=	-Wl,-rpath=/usr/lib:${PREFIX}/lib
.endif

WARNS?=		6
MAN=	pkg.8 \
	pkg-add.8 \
	pkg-audit.8 \
	pkg-autoremove.8 \
	pkg-backup.8 \
	pkg-check.8 \
	pkg-clean.8 \
	pkg-create.8 \
	pkg-delete.8 \
	pkg-fetch.8 \
	pkg-info.8 \
	pkg-install.8 \
	pkg-lock.8 \
	pkg-query.8 \
	pkg-register.8 \
	pkg-repo.8 \
	pkg-rquery.8 \
{'fraction_non_alphanumeric': 0.19064191802010827, 'fraction_numerical': 0.014694508894044857, 'mean_word_length': 2.0257309941520467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '4172766', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1242, 'n_words': 215}