diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-04-14 11:31:10 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-04-14 11:31:10 +0000 |
commit | 83319132afb880ecfff589883e1057147c514f20 (patch) | |
tree | 63eb7e42e288c64dc40c4af6aa03e3ca2d3c5999 /emulators/suse_linux | |
parent | dfe7af84029a129c6b6ffd059cad824590cb495b (diff) | |
download | pkgsrc-83319132afb880ecfff589883e1057147c514f20.tar.gz |
Add FreeBSD support for suse linux packages, from Michal Pasternak in
PR pkg/23900.
Diffstat (limited to 'emulators/suse_linux')
-rw-r--r-- | emulators/suse_linux/Makefile | 5 | ||||
-rw-r--r-- | emulators/suse_linux/Makefile.application | 14 |
2 files changed, 14 insertions, 5 deletions
diff --git a/emulators/suse_linux/Makefile b/emulators/suse_linux/Makefile index 16c031c77fc..1ce2dda2b90 100644 --- a/emulators/suse_linux/Makefile +++ b/emulators/suse_linux/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2004/03/22 03:47:16 kristerw Exp $ +# $NetBSD: Makefile,v 1.25 2004/04/14 11:31:12 xtraeme Exp $ DISTNAME= suse_linux-7.3 CATEGORIES= emulators @@ -23,7 +23,8 @@ DEPENDS+= suse_libc5>=7.3:../suse_libc5 .endif ONLY_FOR_PLATFORM= NetBSD-1.5Z[C-Z]-i386 NetBSD-1.6*-i386 \ - NetBSD-[2-9]*-i386 NetBSD-*-powerpc + NetBSD-[2-9]*-i386 NetBSD-*-powerpc \ + FreeBSD-*-i386 EXTRACT_ONLY= # empty NO_BUILD= YES diff --git a/emulators/suse_linux/Makefile.application b/emulators/suse_linux/Makefile.application index f69e76bf6de..1e88a1e4bc6 100644 --- a/emulators/suse_linux/Makefile.application +++ b/emulators/suse_linux/Makefile.application @@ -1,9 +1,17 @@ -# $NetBSD: Makefile.application,v 1.10 2003/09/04 08:21:52 martti Exp $ +# $NetBSD: Makefile.application,v 1.11 2004/04/14 11:31:12 xtraeme Exp $ .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "NetBSD" && (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc") -LINUX_KERNEL_OSRELEASE!= (/sbin/sysctl -n emul.linux.kern.osrelease 2>/dev/null; ${ECHO} 2.0.38) | ${HEAD} -1 +.if ${OPSYS} == "FreeBSD" +_LINUX_SYSCTL_OSRELEASE?= compat.linux.osrelease +.else +_LINUX_SYSCTL_OSRELEASE?= emul.linux.kern.osrelease +.endif + +.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") +. if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc") +LINUX_KERNEL_OSRELEASE!= (/sbin/sysctl -n ${_LINUX_SYSCTL_OSRELEASE} 2>/dev/null; ${ECHO} 2.0.38) | ${HEAD} -1 +. endif . if ${LINUX_KERNEL_OSRELEASE} == "2.0.38" SUSE_DIR_PREFIX= suse64 |