2014-12-17 02:03:37 +01:00
|
|
|
# $NetBSD: linux.mk,v 1.27 2014/12/17 01:03:37 rodent Exp $
|
2007-07-29 07:18:36 +02:00
|
|
|
#
|
|
|
|
# Linux binary emulation framework
|
|
|
|
#
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Linux"
|
2012-01-18 01:52:20 +01:00
|
|
|
. if ${EMUL_ARCH} == ${MACHINE_ARCH}
|
2007-07-29 07:18:36 +02:00
|
|
|
EMUL_TYPE.linux?= native
|
2012-01-18 01:52:20 +01:00
|
|
|
. else
|
|
|
|
EMUL_TYPE.linux?= none
|
|
|
|
. endif
|
2007-07-29 07:18:36 +02:00
|
|
|
.else
|
2011-09-06 19:48:24 +02:00
|
|
|
|
2014-08-22 19:24:28 +02:00
|
|
|
# Pick appropriate SuSE Linux version for NetBSD amd64 and i386.
|
2012-06-16 16:21:25 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" && ${EMUL_ARCH} != "powerpc"
|
2014-08-22 19:24:28 +02:00
|
|
|
# Use 13.1 under NetBSD 7.* and newer,
|
|
|
|
. if empty(OS_VERSION:M[0-6].*)
|
|
|
|
SUSE_PREFER?= 13.1
|
|
|
|
# 12.1 under NetBSD 6.*, and 10.0 otherwise.
|
|
|
|
. elif empty(OS_VERSION:M[0-5].*)
|
2012-06-16 16:21:25 +02:00
|
|
|
SUSE_PREFER?= 12.1
|
|
|
|
. endif
|
2011-09-08 23:04:59 +02:00
|
|
|
.endif
|
2012-06-16 16:21:25 +02:00
|
|
|
SUSE_PREFER?= 10.0
|
2011-09-08 23:04:59 +02:00
|
|
|
|
2011-09-06 19:48:24 +02:00
|
|
|
.for _version_ in ${EMUL_REQD:Msuse>=*:S/suse>=//}
|
|
|
|
SUSE_VERSION_REQD?= ${_version_}
|
|
|
|
.endfor
|
2011-09-09 23:01:36 +02:00
|
|
|
.if !defined(SUSE_VERSION_REQD) || ${SUSE_PREFER} > ${SUSE_VERSION_REQD}
|
|
|
|
SUSE_VERSION_REQD= ${SUSE_PREFER}
|
|
|
|
.endif
|
2011-09-06 19:48:24 +02:00
|
|
|
|
|
|
|
EMUL_TYPE.linux?= suse-${SUSE_VERSION_REQD}
|
2007-07-29 07:18:36 +02:00
|
|
|
.endif
|
|
|
|
EMUL_MODULES.linux?= # empty
|
|
|
|
|
|
|
|
.if ((${EMUL_ARCH} == "i386") && (${MACHINE_ARCH} == "x86_64")) || \
|
|
|
|
((${EMUL_ARCH} == "sparc") && (${MACHINE_ARCH} == "sparc64"))
|
|
|
|
_LINUX_BASE= linux32
|
|
|
|
EMULSUBDIR= emul/linux32
|
|
|
|
.else
|
|
|
|
_LINUX_BASE= linux
|
|
|
|
EMULSUBDIR= emul/linux
|
|
|
|
.endif
|
|
|
|
|
|
|
|
EMULDIR= ${PREFIX}/${EMULSUBDIR}
|
|
|
|
OPSYS_EMULDIR= ${_OPSYS_EMULDIR.${_LINUX_BASE}}
|
|
|
|
|
|
|
|
# _EMUL_TYPES
|
|
|
|
# List of recognized Linux types that a user may request.
|
|
|
|
#
|
|
|
|
# _EMUL_MODULES
|
|
|
|
# List of recognized Linux "modules" that packages may request.
|
|
|
|
#
|
|
|
|
_EMUL_TYPES= builtin
|
|
|
|
_EMUL_TYPES+= native
|
|
|
|
_EMUL_TYPES+= suse
|
|
|
|
|
|
|
|
.if !empty(EMUL_TYPE.linux:Msuse-*)
|
|
|
|
_EMUL_TYPE?= suse
|
|
|
|
.endif
|
|
|
|
_EMUL_TYPE?= ${EMUL_TYPE.linux}
|
|
|
|
|
2007-09-08 01:04:55 +02:00
|
|
|
_EMUL_MODULES= alsa
|
|
|
|
_EMUL_MODULES+= aspell
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= base
|
|
|
|
_EMUL_MODULES+= compat
|
|
|
|
_EMUL_MODULES+= cups
|
2011-02-27 16:54:03 +01:00
|
|
|
_EMUL_MODULES+= curl
|
2013-12-05 12:42:12 +01:00
|
|
|
_EMUL_MODULES+= cyrus-sasl
|
2011-12-29 23:17:20 +01:00
|
|
|
_EMUL_MODULES+= drm
|
2013-12-10 11:17:28 +01:00
|
|
|
_EMUL_MODULES+= dbus
|
2014-01-22 13:34:22 +01:00
|
|
|
_EMUL_MODULES+= dbus-glib
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= expat
|
|
|
|
_EMUL_MODULES+= fontconfig
|
|
|
|
_EMUL_MODULES+= freetype2
|
2014-01-22 13:34:22 +01:00
|
|
|
_EMUL_MODULES+= glib2
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= glx
|
2014-12-17 02:03:37 +01:00
|
|
|
_EMUL_MODULES+= gstreamer
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= gtk2
|
|
|
|
_EMUL_MODULES+= jpeg
|
2010-09-24 03:30:16 +02:00
|
|
|
_EMUL_MODULES+= krb5
|
2014-04-17 02:08:34 +02:00
|
|
|
_EMUL_MODULES+= libSDL
|
|
|
|
_EMUL_MODULES+= libaudiofile
|
|
|
|
_EMUL_MODULES+= libesd
|
2014-01-22 13:34:22 +01:00
|
|
|
_EMUL_MODULES+= libffi
|
2013-12-05 12:42:12 +01:00
|
|
|
_EMUL_MODULES+= libjson
|
2014-04-08 10:18:44 +02:00
|
|
|
_EMUL_MODULES+= libidn
|
2007-09-08 01:04:55 +02:00
|
|
|
_EMUL_MODULES+= libsigc++2
|
2013-12-05 12:42:12 +01:00
|
|
|
_EMUL_MODULES+= libsndfile
|
|
|
|
_EMUL_MODULES+= libssh
|
|
|
|
_EMUL_MODULES+= libwrap
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= locale
|
|
|
|
_EMUL_MODULES+= motif
|
2013-12-12 03:34:28 +01:00
|
|
|
_EMUL_MODULES+= nspr
|
|
|
|
_EMUL_MODULES+= nss
|
2013-12-05 12:42:12 +01:00
|
|
|
_EMUL_MODULES+= openldap
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= openssl
|
|
|
|
_EMUL_MODULES+= png
|
2013-12-10 11:17:28 +01:00
|
|
|
_EMUL_MODULES+= pulseaudio
|
2010-09-24 03:30:16 +02:00
|
|
|
_EMUL_MODULES+= qt4
|
2007-09-08 01:04:55 +02:00
|
|
|
_EMUL_MODULES+= resmgr
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= slang
|
2014-12-17 02:03:37 +01:00
|
|
|
_EMUL_MODULES+= sqlite3
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= tiff
|
|
|
|
_EMUL_MODULES+= x11
|
|
|
|
_EMUL_MODULES+= xml2
|
|
|
|
|
|
|
|
.if ${_EMUL_TYPE} == "builtin"
|
|
|
|
EMUL_DISTRO= builtin-linux # managed outside pkgsrc
|
2012-01-18 01:52:20 +01:00
|
|
|
.elif ${_EMUL_TYPE} == "none"
|
|
|
|
EMUL_DISTRO= none
|
|
|
|
NOT_FOR_PLATFORM= Linux-*-${MACHINE_ARCH}
|
2007-07-29 07:18:36 +02:00
|
|
|
.elif ${_EMUL_TYPE} == "native"
|
|
|
|
EMUL_DISTRO= native-linux # native Linux installation
|
|
|
|
EMULDIR= ${PREFIX}
|
|
|
|
EMULSUBDIR= # empty
|
|
|
|
.else
|
2007-10-13 13:04:15 +02:00
|
|
|
. include "linux-${_EMUL_TYPE}.mk"
|
2007-07-29 07:18:36 +02:00
|
|
|
.endif
|
|
|
|
|
2012-01-18 01:52:20 +01:00
|
|
|
.if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native") || \
|
|
|
|
(${_EMUL_TYPE} == "none")
|
2007-07-29 07:18:36 +02:00
|
|
|
. for _mod_ in ${_EMUL_MODULES}
|
2012-01-18 01:37:46 +01:00
|
|
|
DEPENDS_${EMUL_DISTRO}.${_mod_}= # empty
|
2007-07-29 07:18:36 +02:00
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
2012-01-18 01:37:46 +01:00
|
|
|
.if !defined(EMUL_IS_NATIVE)
|
2007-07-29 07:18:36 +02:00
|
|
|
LDCONFIG_ADD_CMD?= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
|
|
|
|
LDCONFIG_REMOVE_CMD?= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
|
2012-01-18 01:37:46 +01:00
|
|
|
.endif
|