pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/suse100_linux Add missing file required by s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e72013adfacd
branches:  trunk
changeset: 528030:e72013adfacd
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Thu Apr 19 15:31:07 2007 +0000

description:
Add missing file required by suse32/64.

diffstat:

 emulators/suse100_linux/compat32.mk |  78 +++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diffs (82 lines):

diff -r 862ab38ac871 -r e72013adfacd emulators/suse100_linux/compat32.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/suse100_linux/compat32.mk       Thu Apr 19 15:31:07 2007 +0000
@@ -0,0 +1,78 @@
+# $NetBSD: compat32.mk,v 1.1 2007/04/19 15:31:07 xtraeme Exp $
+#
+
+.ifndef SUSE_LINUX_COMPAT32_MK
+SUSE_LINUX_COMPAT32_MK=        # defined
+
+.  if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "x86_64"
+
+#
+# We must protect this part with packages that are using
+# the options framework, otherwise we'll end executing two
+# targets for the options.
+#
+.  ifndef SUSE_COMPAT32_OPT
+PKG_OPTIONS_VAR=       PKG_OPTIONS.suse
+PKG_SUPPORTED_OPTIONS= compat32
+
+.    include "../../mk/bsd.options.mk"
+.  else
+ONLY_FOR_PLATFORM:=    ${ONLY_FOR_PLATFORM} NetBSD-*-x86_64
+#MACHINE_ARCH:=                i386
+DEPENDS:=              ${DEPENDS:S/suse/suse32/}
+EMULSUBDIR:=           emul/linux32
+.  endif
+
+STRING_ERROR1=         \
+       "This package is not compatible with x86_64 without using "
+STRING_ERROR2=         \
+       "PKG_OPTIONS.suse=compat32."
+MYSTRING=              ${STRING_ERROR1}${STRING_ERROR2}
+
+.    if !empty(PKG_OPTIONS:Mcompat32)
+#
+# We don't need to override the following vars in packages using
+# SUSE_COMPAT32, because this is only required for the suse 
+# packages.
+#
+.      ifndef SUSE_COMPAT32
+#
+# Override required vars
+#
+PKGNAME:=              ${DISTNAME:S/suse/suse32/}
+COMMENT:=              ${COMMENT:S/Linux/Linux 32/}
+SUSE_ARCH:=            i586
+.      endif
+#
+# This is common for all linux packages.
+#
+MACHINE_ARCH:=         i386
+ARCH:=                 ${MACHINE_ARCH}
+DEPENDS:=              ${DEPENDS:S/suse/suse32/}
+LINUX_LIB:=            lib
+BINSUFFIX:=            # empty
+#
+# Use the correct directories.
+#
+OPSYS_EMULSUBDIR=      linux32
+SUSE_COMPAT32_SUFFIX=  32
+EMULSUBDIR:=           emul/linux32
+.    else
+OPSYS_EMULSUBDIR=      linux
+SUSE_COMPAT32_SUFFIX=  # empty
+.      if empty(ONLY_FOR_PLATFORM:MNetBSD-*-x86_64)
+PKG_FAIL_REASON+=      ${MYSTRING}
+.      endif
+.    endif # end of PKG_OPTIONS.suse=compat32
+#
+# This is to avoid to use the same code on every package
+# many times.
+#
+.    ifdef SUSE_INCLUDE_MAKEFILE_ARCH
+.      if exists(Makefile.${MACHINE_ARCH})
+.        include "Makefile.${MACHINE_ARCH}"
+.      endif
+.    endif
+.  endif # end of NetBSD && x86_64
+
+.endif # end of SUSE_LINUX_COMPAT32_MK



Home | Main Index | Thread Index | Old Index