9f3ce5f310
- Fix references to the confdir. - Fix headers so thirdparty apps can be built with pcsc-lite from pkgsrc. - Some minor changes to fix pkglint warnings. - Bump PKGREVISION.
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2009/10/02 12:36:13 hasso Exp $
|
|
#
|
|
|
|
DISTNAME= pcsc-lite-1.5.5
|
|
PKGREVISION= 1
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://alioth.debian.org/frs/download.php/3082/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= shannonjr@NetBSD.org
|
|
HOMEPAGE= http://pcsclite.alioth.debian.org/
|
|
COMMENT= Middleware to access a smart card using SCard API (PC/SC)
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= pkg-config
|
|
USE_LANGUAGES= c c++
|
|
|
|
.include "options.mk"
|
|
|
|
CONFIGURE_ARGS+= --sharedstatedir=${VARBASE:Q}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --enable-confdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --enable-ipcdir=${VARBASE}/pcsc-lite
|
|
CONFIGURE_ARGS+= --enable-usbdropdir=${PREFIX}/lib/pcsc-lite/drivers
|
|
CONFIGURE_ARGS+= --disable-libhal
|
|
MAKE_DIRS+= ${VARBASE}/pcsc-lite
|
|
MAKE_DIRS+= ${PREFIX}/lib/pcsc-lite
|
|
MAKE_DIRS+= ${PREFIX}/lib/pcsc-lite/drivers
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/reader.conf.d
|
|
|
|
EGDIR= ${PREFIX}/share/examples/pcsc-lite
|
|
CONF_FILES+= ${EGDIR}/reader.conf ${PKG_SYSCONFDIR}/reader.conf.d/reader.conf
|
|
|
|
PKGCONFIG_OVERRIDE+= src/libpcsclite.pc.in
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/etc/reader.conf ${DESTDIR}${EGDIR}
|
|
|
|
.include "../../devel/libusb/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|