summaryrefslogtreecommitdiff
path: root/lang/sun-jre13
diff options
context:
space:
mode:
authorjlam <jlam>2007-07-29 05:18:36 +0000
committerjlam <jlam>2007-07-29 05:18:36 +0000
commit275d7ca4f86079521544b7e820383bc271742a03 (patch)
tree45cad36d8470a568b9136017b2dd79c9efcc65bc /lang/sun-jre13
parent838c2b6ce6faa38ac52676e60b80d81504e7827c (diff)
downloadpkgsrc-275d7ca4f86079521544b7e820383bc271742a03.tar.gz
* Add new emulator framework in pkgsrc/mk/emulator that handles all
binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
Diffstat (limited to 'lang/sun-jre13')
-rw-r--r--lang/sun-jre13/Makefile11
-rw-r--r--lang/sun-jre13/Makefile.common37
-rw-r--r--lang/sun-jre13/PLIST.Darwin2
3 files changed, 23 insertions, 27 deletions
diff --git a/lang/sun-jre13/Makefile b/lang/sun-jre13/Makefile
index e7870fd2e73..66bdddf72d8 100644
--- a/lang/sun-jre13/Makefile
+++ b/lang/sun-jre13/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.48 2006/09/27 06:48:56 rillig Exp $
+# $NetBSD: Makefile,v 1.49 2007/07/29 05:19:28 jlam Exp $
-DISTNAME= j2re-1_3_1_19-linux-i586
+DISTNAME= j2re-1_3_1_19-linux-${DIST_ARCH}
PKGNAME= sun-jre13-1.0.19
MASTER_SITES= # empty
@@ -8,8 +8,11 @@ COMMENT= Sun's Java(tm) Runtime Environment 1.3.1
SHORT= JRE
-JAVA_WRAPPERS= java keytool policytool rmid rmiregistry tnameserv
WRKSRC= ${WRKDIR}/jre1.3.1_19
+JAVA_WRAPPERS= java keytool policytool rmid rmiregistry tnameserv
+
+.include "../../lang/sun-jre13/Makefile.common"
+
REQD_DIRS= ${JAVA_HOME}
REQD_DIRS+= ${JAVA_HOME}/lib
REQD_DIRS+= ${JAVA_HOME}/lib/images
@@ -37,4 +40,4 @@ do-configure:
${MV} -f $$file $$file.default; \
done
-.include "../../lang/sun-jre13/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/sun-jre13/Makefile.common b/lang/sun-jre13/Makefile.common
index 36aec2553ec..9b27f3dfee9 100644
--- a/lang/sun-jre13/Makefile.common
+++ b/lang/sun-jre13/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2007/02/22 19:26:39 wiz Exp $
+# $NetBSD: Makefile.common,v 1.33 2007/07/29 05:19:28 jlam Exp $
# MASTER_SITES is very special, and must end in "=":
CATEGORIES= lang java
@@ -16,29 +16,27 @@ NO_SRC_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
-INTERACTIVE_STAGE= fetch
-
-CHECK_SHLIBS= no # expected to fail
+EMUL_PLATFORMS= linux-i386
.include "../../mk/bsd.prefs.mk"
-JAVA_HOME= ${LOCALBASE}/java/sun-1.3.1
-JAVA_NAME= sun13
-
-NO_MTREE= yes # since we change PREFIX
-LDD= ${TRUE}
+EMUL_MODULES.linux= locale x11
+.if !empty(EMUL_DISTRO:Msuse-[0-9].*)
+EMUL_MODULES.linux+= compat
+.endif
-ONLY_FOR_PLATFORM= *-*-i386
+DIST_ARCH.i386= i586
+.if defined(DIST_ARCH.${EMUL_ARCH})
+DIST_ARCH= ${DIST_ARCH.${EMUL_ARCH}}
+.else
+DIST_ARCH= ${EMUL_ARCH}
+.endif
-.include "../../emulators/suse_linux/Makefile.application"
+INTERACTIVE_STAGE= fetch
+BUILD_DIRS= # empty
-.if !defined(USE_NATIVE_LINUX)
-. if ${SUSE_DIR_PREFIX} == "suse91"
-DEPENDS+= suse_locale-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_locale
-. endif
-DEPENDS+= suse_compat-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_compat
-DEPENDS+= suse_x11-[0-9]*:../../emulators/${SUSE_DIR_PREFIX}_x11
-.endif
+JAVA_HOME= ${LOCALBASE}/java/sun-1.3.1
+JAVA_NAME= sun13
FETCH_MESSAGE= \
"The file ${DISTNAME}${EXTRACT_SUFX} containing:" \
@@ -58,8 +56,6 @@ post-fetch:
${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \
fi
-do-build: # nothing
-
post-build:
${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
@@ -68,4 +64,3 @@ do-install:
cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
.include "../../mk/java-env.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/lang/sun-jre13/PLIST.Darwin b/lang/sun-jre13/PLIST.Darwin
deleted file mode 100644
index 87cd9f48e6a..00000000000
--- a/lang/sun-jre13/PLIST.Darwin
+++ /dev/null
@@ -1,2 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.1 2002/06/30 15:01:49 schmonz Exp $
-@comment Darwin ships with a JRE based on Sun's 1.3.1 release.