2012-12-10 14:43:43 +01:00
|
|
|
# Created by: Alex Dupre <ale@FreeBSD.org>
|
2007-02-23 08:06:58 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= iaikPkcs11Wrapper
|
2011-11-13 22:07:33 +01:00
|
|
|
PORTVERSION= 1.2.18
|
2007-02-23 08:06:58 +01:00
|
|
|
CATEGORIES= security java devel
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= LOCAL/ale
|
2011-11-13 22:07:33 +01:00
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/g}
|
2007-02-23 08:06:58 +01:00
|
|
|
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2013-03-29 20:33:41 +01:00
|
|
|
COMMENT= PKCS\#11 Java wrapper
|
2007-02-23 08:06:58 +01:00
|
|
|
|
2013-10-30 10:21:21 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2014-03-10 18:01:36 +01:00
|
|
|
USES= dos2unix gmake zip
|
2007-02-23 08:06:58 +01:00
|
|
|
USE_JAVA= yes
|
2016-06-20 18:23:28 +02:00
|
|
|
DOS2UNIX_GLOB= Makefile *.c
|
|
|
|
DOS2UNIX_WRKSRC= ${WRKDIR}/src/native
|
2012-12-10 14:43:43 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2007-02-23 08:06:58 +01:00
|
|
|
JAVA_OS= native
|
|
|
|
ALL_TARGET= release
|
|
|
|
|
2016-06-20 18:23:28 +02:00
|
|
|
PLIST_FILES= lib/libpkcs11wrapper.so ${JAVAJARDIR}/iaikPkcs11Wrapper.jar
|
2007-02-23 08:06:58 +01:00
|
|
|
|
|
|
|
PORTDOCS= *
|
2011-11-13 22:07:33 +01:00
|
|
|
PORTEXAMPLES= *
|
2007-02-23 08:06:58 +01:00
|
|
|
|
2008-12-29 10:15:48 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
2011-11-13 22:07:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/src/native/unix/linux-x86_64
|
2008-12-29 10:15:48 +01:00
|
|
|
.else
|
2011-11-13 22:07:33 +01:00
|
|
|
WRKSRC= ${WRKDIR}/src/native/unix/linux-x86
|
2008-12-29 10:15:48 +01:00
|
|
|
.endif
|
|
|
|
|
2007-02-23 08:06:58 +01:00
|
|
|
do-install:
|
|
|
|
@${ECHO_MSG} -n ">> Installing JNI library in ${PREFIX}/lib..."
|
2013-10-30 10:21:21 +01:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/release/libpkcs11wrapper.so ${STAGEDIR}${PREFIX}/lib/
|
2007-02-23 08:06:58 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/iaikPkcs11Wrapper.jar..."
|
2013-10-30 10:21:21 +01:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/bin/iaikPkcs11Wrapper.jar ${STAGEDIR}${JAVAJARDIR}/
|
2007-02-23 08:06:58 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
2013-10-30 10:21:21 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2007-02-23 08:06:58 +01:00
|
|
|
@cd ${WRKDIR}/docs && ${FIND} * | \
|
2013-10-30 10:21:21 +01:00
|
|
|
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
|
2011-11-13 22:07:33 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
@${ECHO_MSG} -n ">> Installing examples in ${EXAMPLESDIR}..."
|
2013-10-30 10:21:21 +01:00
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
2011-11-13 22:07:33 +01:00
|
|
|
@cd ${WRKDIR}/examples && ${FIND} * | \
|
2013-10-30 10:21:21 +01:00
|
|
|
${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${EXAMPLESDIR} > /dev/null 2>&1
|
2007-02-23 08:06:58 +01:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.endif
|
|
|
|
|
2008-12-29 10:15:48 +01:00
|
|
|
.include <bsd.port.post.mk>
|