<commit_before>PACKAGE=OSCopensc
PACKAGE_NAME=opensc
VERSION=CVS
PWD=<PASSWORD>
CONFIGURE_PREFIX=$(PWD:sh)/..
CONFIGURE=${CONFIGURE_PREFIX}/configure
CONFIGURE_ARGS=--prefix=/usr --sysconfdir=/etc/opensc --mandir=/usr/share/man --enable-pcsc --enable-openct
CONFIG_GUESS=${CONFIGURE_PREFIX}/config.guess
UNAME_ARCH=/sbin/uname -p
PLATFORM = $(CONFIG_GUESS:sh)
ARCH = $(UNAME_ARCH:sh)

build:
	@echo "Setup platform specific build directory build-${PLATFORM}"
	mkdir -p build-${PLATFORM}
	( cd build-${PLATFORM}; CC=cc ${CONFIGURE} ${CONFIGURE_ARGS}; make )

dist:
	@echo "Setup platform specific dist directory dist-${PLATFORM}"
	mkdir -p dist-${PLATFORM}
	@echo "Performing Installing in dist directory"
	( cd build-${PLATFORM}; make DESTDIR=`pwd`/../dist-${PLATFORM} install )
package:
	@echo "Setup package meta files"
	-cp proto dist-${PLATFORM}
	-sed "s|@ARCH@|${ARCH}|" <checkinstall.in >dist-${PLATFORM}/checkinstall
	-sed	-e "s|@ARCH@|${ARCH}|" \
		-e "s|@VERSION@|${VERSION}|" \
		-e "s|@PACKAGE@|${PACKAGE}|" \
		-e "s|@PACKAGE_NAME@|${PACKAGE_NAME}|" \
		<pkginfo.in >dist-${PLATFORM}/pkginfo
	mkdir -p dist-${PLATFORM}/etc/opensc
	-cp opensc.conf-dist dist-${PLATFORM}/etc/opensc/opensc.conf
	@echo "Creating package"
	( \
		cd dist-${PLATFORM}; \
		pkgmk -o -r . -d . -f proto; \
		pkgtrans -s . ../OSCopensc-${VERSION}-${PLATFORM}.pkg ${PACKAGE} \
	)<commit_msg><NAME>: modify Makefile so configure finds the include files  of PC/SC lite.<commit_after>PACKAGE=OSCopensc
PACKAGE_NAME=opensc
VERSION=CVS
PWD=<PASSWORD>
CONFIGURE_PREFIX=$(PWD:sh)/..
CONFIGURE=${CONFIGURE_PREFIX}/configure
CONFIGURE_ARGS=--prefix=/usr --sysconfdir=/etc/opensc --mandir=/usr/share/man --enable-pcsc --enable-openct
CONFIG_GUESS=${CONFIGURE_PREFIX}/config.guess
UNAME_ARCH=/usr/bin/uname -p
PLATFORM = $(CONFIG_GUESS:sh)
ARCH = $(UNAME_ARCH:sh)

build:
	@echo "Setup platform specific build directory build-${PLATFORM}"
	mkdir -p build-${PLATFORM}
	( cd build-${PLATFORM}; CC=cc PCSC_CFLAGS=-I/usr/include/smartcard ${CONFIGURE} ${CONFIGURE_ARGS}; make )

dist:
	@echo "Setup platform specific dist directory dist-${PLATFORM}"
	mkdir -p dist-${PLATFORM}
	@echo "Performing Installing in dist directory"
	( cd build-${PLATFORM}; make DESTDIR=`pwd`/../dist-${PLATFORM} install )
package:
	@echo "Setup package meta files"
	-cp proto dist-${PLATFORM}
	-sed "s|@ARCH@|${ARCH}|" <checkinstall.in >dist-${PLATFORM}/checkinstall
	-sed	-e "s|@ARCH@|${ARCH}|" \
		-e "s|@VERSION@|${VERSION}|" \
		-e "s|@PACKAGE@|${PACKAGE}|" \
		-e "s|@PACKAGE_NAME@|${PACKAGE_NAME}|" \
		<pkginfo.in >dist-${PLATFORM}/pkginfo
	mkdir -p dist-${PLATFORM}/etc/opensc
	-cp opensc.conf-dist dist-${PLATFORM}/etc/opensc/opensc.conf
	@echo "Creating package"
	( \
		cd dist-${PLATFORM}; \
		pkgmk -o -r . -d . -f proto; \
		pkgtrans -s . ../OSCopensc-${VERSION}-${PLATFORM}.pkg ${PACKAGE} \
	)
{'fraction_non_alphanumeric': 0.19089316987740806, 'fraction_numerical': 0.0, 'mean_word_length': 4.6779324055666, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '7173392', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1115, 'n_words': 216}