From b6040619aa907584751304a36c1d26313cff26e6 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 12 Dec 2005 14:43:23 +0000 Subject: 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. --- lang/sun-jre14/Makefile.common | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'lang/sun-jre14') diff --git a/lang/sun-jre14/Makefile.common b/lang/sun-jre14/Makefile.common index ab3886712d8..d68666e1862 100644 --- a/lang/sun-jre14/Makefile.common +++ b/lang/sun-jre14/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.26 2005/08/14 10:15:55 dillo Exp $ +# $NetBSD: Makefile.common,v 1.27 2005/12/12 14:43:25 joerg Exp $ CATEGORIES= lang java EXTRACT_SUFX= .bin @@ -28,8 +28,17 @@ MESSAGE_SUBST+= JAVA_HOME="${JAVA_HOME}" 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 +ONLY_FOR_PLATFORM= *-*-i386 + +.include "../../emulators/suse_linux/Makefile.application" + +.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 _FETCH_MESSAGE= \ ${ECHO} "======================================================================"; \ @@ -65,14 +74,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" -- cgit v1.2.3