summaryrefslogtreecommitdiff
path: root/lang/sun-jre15
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-12-12 14:43:23 +0000
committerjoerg <joerg@pkgsrc.org>2005-12-12 14:43:23 +0000
commitae0f7bb6570a72f4f758209a00fd719e85fd5227 (patch)
tree97ae5019218968b99f2894114562532ab97bb4da /lang/sun-jre15
parentc1f29c2cdbfd37ad83c7801866c9b1288f1e446c (diff)
downloadpkgsrc-ae0f7bb6570a72f4f758209a00fd719e85fd5227.tar.gz
First step at reworking Linux binary packages.
Change most pkgs to depend on either emulators/suse_linux/Makefile.application (normal pkgs) or Makefile.common (suse91 and suse themselves) to filter out Operating Systems without Linux ABI support. Use CPU masks to limit the pkg to supported platforms.
Diffstat (limited to 'lang/sun-jre15')
-rw-r--r--lang/sun-jre15/Makefile.common23
1 files changed, 11 insertions, 12 deletions
diff --git a/lang/sun-jre15/Makefile.common b/lang/sun-jre15/Makefile.common
index 40daef074cf..1c0e5f7651b 100644
--- a/lang/sun-jre15/Makefile.common
+++ b/lang/sun-jre15/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.8 2005/10/27 22:57:27 tv Exp $
+# $NetBSD: Makefile.common,v 1.9 2005/12/12 14:43:25 joerg Exp $
CATEGORIES= lang java
COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}
@@ -35,8 +35,16 @@ EXTRACT_ENV.bin+= UNPACK200_FLAGS=-Htrue
NO_MTREE= yes # since we change PREFIX
LDD= ${TRUE}
-ONLY_FOR_PLATFORM= NetBSD-1.6[U-Z]*-i386 NetBSD-[2-9]*-i386
-ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86
+.include "../../emulators/suse_linux/Makefile.application"
+
+.if !defined(USE_NATIVE_LINUX)
+ONLY_FOR_PLATFORM= *-*-i386
+. 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
_FETCH_MESSAGE= \
${ECHO} "======================================================================"; \
@@ -64,14 +72,5 @@ do-install:
${INSTALL_PROGRAM_DIR} ${JAVA_HOME}
cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
-.if ${OPSYS} == "NetBSD"
-. include "../../emulators/suse_linux/Makefile.application"
-. 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
-
.include "../../mk/java-env.mk"
.include "../../mk/bsd.pkg.mk"