1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/java/jce-aba/Makefile
Herve Quiroz 8f8a46b828 - Update to bsd.java.mk 2.0
- Use a PKGNAMESUFFIX to tag package according to the JDK version used (-java11
  or -java12)
- Honor NOPORTDOCS and install documentation in ${DOCSDIR}
- Use PORTDOCS to handle documentation plist differences between Java 1.1 and
  1.2 implementations
- Use PLIST_FILES (and thus remove pkg-plist)

PR:		97855
Submitted by:	hq
Approved by:	maintainer timeout
2006-06-12 23:48:30 +00:00

46 lines
951 B
Makefile

# New ports collection makefile for: Java Cryptograph Extension
# Date created: 2000/02/11
# Whom: Kensaku Masuda <greg@greg.rim.or.jp>
#
# $FreeBSD$
#
PORTNAME= jce-aba
PORTVERSION= 1.1
CATEGORIES= java security
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= znerd
MAINTAINER= greg@greg.rim.or.jp
COMMENT= Clean room implementation of the Java Cryptograph Extension (JCE) API
USE_JAVA= yes
NO_BUILD= yes
PLIST_FILES= %%JAVAJARDIR%%/jce.zip
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>
.if ${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/} == "1.1"
JDKVERSION= 1.1
PKGNAMESUFFIX= -java11
.else
JDKVERSION= 1.2
PKGNAMESUFFIX= -java12
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/lib-${JDKVERSION}/jce.zip ${JAVAJARDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs-${JDKVERSION} && ${FIND} . \
| ${CPIO} -pdmu -R ${DOCOWN}:${DOCGRP} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>