2007-10-13 13:04:15 +02:00
|
|
|
# $NetBSD: linux.mk,v 1.4 2007/10/13 11:04:18 dsl Exp $
|
2007-07-29 07:18:36 +02:00
|
|
|
#
|
|
|
|
# Linux binary emulation framework
|
|
|
|
#
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
|
|
EMUL_TYPE.linux?= native
|
|
|
|
.else
|
|
|
|
EMUL_TYPE.linux?= suse
|
|
|
|
.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
|
|
|
|
_EMUL_MODULES+= expat
|
|
|
|
_EMUL_MODULES+= fontconfig
|
|
|
|
_EMUL_MODULES+= freetype2
|
|
|
|
_EMUL_MODULES+= gdk-pixbuf
|
|
|
|
_EMUL_MODULES+= glx
|
|
|
|
_EMUL_MODULES+= gtk
|
|
|
|
_EMUL_MODULES+= gtk2
|
|
|
|
_EMUL_MODULES+= jpeg
|
2007-09-08 01:04:55 +02:00
|
|
|
_EMUL_MODULES+= libsigc++2
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= locale
|
|
|
|
_EMUL_MODULES+= motif
|
|
|
|
_EMUL_MODULES+= openssl
|
|
|
|
_EMUL_MODULES+= png
|
2007-09-08 01:04:55 +02:00
|
|
|
_EMUL_MODULES+= resmgr
|
2007-07-29 07:18:36 +02:00
|
|
|
_EMUL_MODULES+= slang
|
|
|
|
_EMUL_MODULES+= tiff
|
|
|
|
_EMUL_MODULES+= vmware
|
|
|
|
_EMUL_MODULES+= x11
|
|
|
|
_EMUL_MODULES+= xml2
|
|
|
|
|
|
|
|
.if ${_EMUL_TYPE} == "builtin"
|
|
|
|
EMUL_DISTRO= builtin-linux # managed outside pkgsrc
|
|
|
|
.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
|
|
|
|
|
|
|
|
.if (${_EMUL_TYPE} == "builtin") || (${_EMUL_TYPE} == "native")
|
|
|
|
. for _mod_ in ${_EMUL_MODULES}
|
|
|
|
DEPENDS_native-linux.${_mod_}= # empty
|
|
|
|
. endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
LDCONFIG_ADD_CMD?= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
|
|
|
|
LDCONFIG_REMOVE_CMD?= ${EMULDIR}/sbin/ldconfig -r ${EMULDIR}
|