summaryrefslogtreecommitdiff
path: root/security/opensc
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2019-10-30 14:58:41 +0000
committerAlex Dupre <ale@FreeBSD.org>2019-10-30 14:58:41 +0000
commit62de9fdf703a187d8d9665069d6e35227fce95de (patch)
tree5abfadde963cb9978ac625946b857b9d314c0cf5 /security/opensc
parentUpdate to 3.5.2 (diff)
Fix build on powerpc and arm
PR: 241588 Submitted by: pkubaj
Notes
Notes: svn path=/head/; revision=516062
Diffstat (limited to 'security/opensc')
-rw-r--r--security/opensc/Makefile12
-rw-r--r--security/opensc/files/patch-src_tests_p11test_p11test.c11
2 files changed, 13 insertions, 10 deletions
diff --git a/security/opensc/Makefile b/security/opensc/Makefile
index 6b15000f9bfc..cec9dfb684b2 100644
--- a/security/opensc/Makefile
+++ b/security/opensc/Makefile
@@ -11,7 +11,7 @@ COMMENT= Libraries and utilities to access smart cards
LICENSE= LGPL21
-USES= autoreconf compiler gmake libtool pkgconfig ssl
+USES= autoreconf compiler:c11 gmake libtool pkgconfig ssl
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
@@ -70,12 +70,4 @@ CONFIGURE_ENV+= XSLTPROC="${FALSE}"
CONFIGURE_ARGS+=--without-xsl-stylesheetsdir
.endif
-.include <bsd.port.pre.mk>
-
-.if ${CHOSEN_COMPILER_TYPE} == gcc
-post-patch:
- ${REINPLACE_CMD} -e '/-Wno-unused-but-set-variable/d' \
- ${WRKSRC}/src/tools/Makefile.am
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/opensc/files/patch-src_tests_p11test_p11test.c b/security/opensc/files/patch-src_tests_p11test_p11test.c
new file mode 100644
index 000000000000..022b84ef5929
--- /dev/null
+++ b/security/opensc/files/patch-src_tests_p11test_p11test.c
@@ -0,0 +1,11 @@
+--- src/tests/p11test/p11test.c.orig 2019-10-30 14:56:38 UTC
++++ src/tests/p11test/p11test.c
+@@ -49,7 +49,7 @@ void display_usage() {
+ }
+
+ int main(int argc, char** argv) {
+- char command;
++ signed char command;
+ const struct CMUnitTest readonly_tests_without_initialization[] = {
+ /* Test card events on slot */
+ cmocka_unit_test_setup_teardown(wait_test,