Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / sun-jdk7 / Makefile
bloba48c62968f2db7f4b7e4c033c80b48fab00d2a7e
1 # $NetBSD: Makefile,v 1.8 2013/03/08 15:08:50 jperkin Exp $
3 # Note: This must be kept in sync with the sun-jre7 package
4 # Note: make sure you include sums for both the x86_64 and the x86_32
5 # in distinfo (make makesum will eat one of them)
7 DISTNAME= jdk-7u17-${DIST_OS}-${DIST_ARCH}
8 PKGNAME= sun-jdk7-7.0.17
9 MASTER_SITES= # empty
11 LICENSE= oracle-binary-code-license
13 DOWNLOAD_NAME= Java Development Kit (JDK) 7u17
15 DEPENDS+= ${PKGNAME_NOREV:S/jdk/jre/}*:../../lang/sun-jre7
17 WRKSRC= ${WRKDIR}/jdk1.7.0_17
18 JAVA_WRAPPERS= appletviewer apt extcheck idlj jar jarsigner \
19 javac javadoc javah javap jdb rmic serialver
21 MAKE_JOBS_SAFE= no
23 .include "../../lang/sun-jre7/Makefile.common"
25 .if !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
26 CHECK_SHLIBS_SUPPORTED= no
27 .endif
29 # The 64-bit Solaris downloads for some inexplicable reason only contain
30 # the additional 64-bit files, and you need the main 32-bit file too.
31 .if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "x86_64"
32 DISTFILES= ${DEFAULT_DISTFILES} ${DEFAULT_DISTFILES:S/x64/i586/}
33 .endif
35 PLIST_SRC= PLIST.${DIST_OS}-${EMUL_ARCH}
37 # Remove parts that are in common with the JRE
39 post-extract:
40 common=`${AWK} '/^#.*/ { next } /^$$/ { next } { print }' ${FILESDIR}/common`; \
41 cd ${WRKSRC}; for i in $$common; do \
42 if [ -d $$i ]; then \
43 ${RM} -rf $$i; \
44 else \
45 ${RM} -f $$i; \
46 fi; \
47 done
48 ${LN} -sf . ${WRKSRC}/jre
50 pre-install:
51 # These files are generated the *first* time the package is built
52 ${RM} -f ${WRKSRC}/register.html
53 ${RM} -f ${WRKSRC}/register_ja.html
54 ${RM} -f ${WRKSRC}/register_zh_CN.html
55 ${CHMOD} -x \
56 ${WRKSRC}/db/bin/NetworkServerControl.bat \
57 ${WRKSRC}/db/bin/dblook.bat \
58 ${WRKSRC}/db/bin/derby_common.bat \
59 ${WRKSRC}/db/bin/ij.bat \
60 ${WRKSRC}/db/bin/setEmbeddedCP.bat \
61 ${WRKSRC}/db/bin/setNetworkClientCP.bat \
62 ${WRKSRC}/db/bin/setNetworkServerCP.bat \
63 ${WRKSRC}/db/bin/startNetworkServer.bat \
64 ${WRKSRC}/db/bin/stopNetworkServer.bat \
65 ${WRKSRC}/db/bin/sysinfo.bat
67 .include "../../mk/bsd.pkg.mk"