Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / openjdk7 / options.mk
blobb95405728d629443d459fad5962adeb2e7d4a359
1 # $NetBSD: options.mk,v 1.2 2011/08/03 13:28:35 obache Exp $
3 PKG_OPTIONS_VAR= PKG_OPTIONS.openjdk7
4 PKG_SUPPORTED_OPTIONS= sun-jre-jce # jdk-zero-vm
5 PKG_SUGGESTED_OPTIONS= #
7 .include "../../mk/bsd.options.mk"
9 ###
10 ### Java(TM) Cryptography Extension (JCE)
11 ###
12 .if !empty(PKG_OPTIONS:Msun-jre-jce)
13 JCE_DISTFILE= UnlimitedJCEPolicyJDK7.zip
14 DISTFILES+= ${JCE_DISTFILE}
15 EXTRACT_ONLY+= ${JCE_DISTFILE}
16 PLIST.jce= yes
17 USE_TOOLS+= pax
19 .if !exists(${DISTDIR}/${DIST_SUBDIR}/${JCE_DISTFILE})
20 FETCH_MESSAGE+= "Please download the Java(TM) Cryptography Extension (JCE) Unlimited"
21 FETCH_MESSAGE+= "Strength Jurisdiction Policy Files 7 '${JCE_DISTFILE}' from:"
22 FETCH_MESSAGE+= " http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html"
23 FETCH_MESSAGE+= " and place it in:"
24 FETCH_MESSAGE+= " ${DISTDIR}/${DIST_SUBDIR}/${JCE_DISTFILE}"
25 FETCH_MESSAGE+= ""
26 FETCH_MESSAGE+= " Then resume this build by running '"${MAKE:Q}"' again."
27 .endif
29 post-install:
30 cd ${WRKDIR}/UnlimitedJCEPolicy && pax -rw -pp . ${DESTDIR}${JAVA_HOME}/jre/lib/security
31 .endif
33 # this option builds a JVM without assembly optimisation. Useful for porting.
34 # NOTE: This is work in progress.
35 .if !empty(PKG_OPTIONS:Mjdk-zero-vm)
36 MAKE_ENV+= ZERO_BUILD=true
37 .include "../../devel/libffi/buildlink3.mk"
38 .endif