jca 76bdcdaff8 Needs C++11
ok feinerer@ (maintainer)
2017-12-01 13:03:59 +00:00

61 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.7 2017/12/01 13:03:59 jca Exp $
COMMENT = REINER SCT cyberJack chipcard reader driver
DISTNAME = pcsc-cyberjack-3.99.5final.SP11
SHARED_LIBS = ifd-cyberjack 0.0 # 6.0
CATEGORIES = security
HOMEPAGE = https://www.reiner-sct.com/support/
MAINTAINER = Ingo Feinerer <feinerer@logic.at>
# LGPL2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${COMPILER_LIBCXX} m usb-1.0
MASTER_SITES = http://support.reiner-sct.de/downloads/LINUX/V3.99.5_SP11/
EXTRACT_SUFX = .tar.bz2
# -std=c++11
COMPILER = base-clang ports-clang ports-gcc
BUILD_DEPENDS = devel/libtool \
security/pcsc-lite
RUN_DEPENDS = security/pcsc-lite
LIB_DEPENDS = devel/libusb1
MAKE_FLAGS = CPPFLAGS=-I${LOCALBASE}/include \
CXXFLAGS="${CXXFLAGS} -std=c++11 -Wno-c++11-narrowing"
CONFIGURE_STYLE = autoconf automake
CONFIGURE_ARGS += --disable-xml2 \
--enable-release
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.15
# Remove MSDOS line endings in files needing a patch
post-extract:
cd ${WRKSRC} && perl -i -pe 's/\r$$//' cjeca32/Debug.cpp \
cjeca32/RSCTCriticalSection.cpp
post-patch:
cd ${WRKSRC} && \
libtoolize -f --copy && \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
aclocal -I m4
pre-configure:
cd ${WRKSRC} && \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
automake --add-missing --copy
.include <bsd.port.mk>