pkgsrc/mk/emulator
jlam b8ee74f354 mk/emulator: Move Linux shlibs task settings to package Makefiles.
Move the definitions of LDCONFIG_ADD_CMD and LDCONFIG_REMOVE_CMD
into suse_linux/emulator.mk.  The commands are specific to the
Linux installed, including the path to ldconfig(8), so localize
them to the package that provides it.

Move the definition of RUN_LDCONFIG out of the emulator framework
and into the packages that use them as RUN_LDCONFIG is meant to be
a package-settable variable.

Fix the path to the Linux ldconfig(8) that was used on FreeBSD to
brand the ELF format that has been incorrect for over 10 years.

In the suse_base packages, explicitly set LDCONFIG_REMOVE_CMD to
${TRUE} since the ldconfig(8) command is provided by that package
and can't be invoked at the postremove stage because it has already
been deleted from the system by then.

Bump the PKGREVISION of all the suse_base packages because the
install scripts have changed.

Bump the PKGREVISIONs of the darwin_lib and osf1_lib packages
because the install scripts no longer try to run ldconfig(8),
which is not provided in either OpenDarwin or OSF/1.
2017-08-21 12:49:16 +00:00
..
aix.mk
bsdi.mk
darwin-opendarwin.mk
darwin.mk
emulator-vars.mk
emulator.mk
freebsd.mk
irix.mk
linux-suse.mk
linux.mk mk/emulator: Move Linux shlibs task settings to package Makefiles. 2017-08-21 12:49:16 +00:00
merge-distinfo.awk
netbsd-compat.mk Use public SHLIB_TYPE instead of private _OPSYS_SHLIB_TYPE. 2017-06-01 13:30:24 +00:00
netbsd.mk
osf1-netscape.mk
osf1.mk
pkg-plain.mk
pkg-rpm.mk mk/emulator: Move Linux shlibs task settings to package Makefiles. 2017-08-21 12:49:16 +00:00
README
solaris.mk
sunos.mk

$NetBSD: README,v 1.2 2007/07/29 09:24:33 jlam Exp $

The emulator framework handles binary-only packages that require binary
"emulation" (or ABI re-implementation) on the native operating system.

A package Makefile should set several variables in order to use the
emulator framework:

    EMUL_PLATFORMS is a the list of supported <opsys>-<arch> pairs by
	the package and should be set before including bsd.prefs.mk.
	The emulator framework will select an appropriate supported
	platform and store it in EMUL_PLATFORM.

    EMUL_MODULES.<opsys> is a list of modules from <opsys> that are
	required by the package.

Example use:

    EMUL_PLATFORMS=	linux-i386 solaris-sparc
    EMUL_MODULES.linux=	base compat

    .include "../../mk/bsd.prefs.mk"

    .if ${EMUL_PLATFORM} == "linux-i386"
    DISTNAME=	foobar-linux-i586.bin
    ...

A user may set several variables in /etc/mk.conf to influence the
choices made by the emulator framework:

    EMUL_PREFER is a list of non-native platforms that should be tried,
	in order, when selecting an appropriate platform.

    EMUL_TYPE.<opsys> is the distribution of <opsys> that is used when
	<opsys> is selected for use by the emulator framework.

	"native" means that the OS is the native operating system.
	"builtin" means that the OS is installed in some "compat"
		location that is managed outside of pkgsrc.

	For Linux, there are several additional choices for
	EMUL_TYPE.linux:

	"suse" means to use the highest version of SuSE in pkgsrc.
	"suse-9.1" means to use SuSE 9.1 from pkgsrc.
	"suse-9.x" means to use the highest version of SuSE 9.x.
	"suse-10.0" means to use SuSE 10.0 from pkgsrc.
	"suse-10.x" means to use the highest version of SuSE 10.x.

There are two helper targets for use by package developers:

    "emul-fetch" will cause the distfiles for all platforms listed in
	EMUL_PLATFORMS to be fetched.

    "emul-distinfo" will generate a "jumbo" distinfo file that contains
	checksums for the distfiles for all platforms listed in
	EMUL_PLATFORMS.