pkgsrc/emulators/darwin_lib/Makefile
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

44 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2017/08/21 12:49:16 jlam Exp $
DISTNAME= darwin_lib-6.6.2
PKGREVISION= 6
CATEGORIES= emulators
MASTER_SITES= # http://www.opendarwin.org/downloads/6.6.2/RPMS/ \
# http://www.opendarwin.org/downloads/6.6.2/RPMS/${DARWIN_ARCH}/
DISTFILES= org.opendarwin.Libsystem-6.6.2-4.fat.rpm \
org.opendarwin.Libm-6.6.2-4.fat.rpm \
org.opendarwin.cctools-6.6.2-4.fat.rpm \
org.opendarwin.ncurses-6.6.2-4.fat.rpm \
org.opendarwin.IOKitUser-6.6.2-4.fat.rpm \
org.opendarwin.XFree86-6.6.2-4.${DARWIN_ARCH}.rpm
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Darwin compatibility libraries (including X11)
# The opendarwin.org domain is completely gone. MASTER_SITES should
# probably point to ${MASTER_SITE_LOCAL} instead. I also think the ppc
# XFree86 RPM is no longer available anywhere.
#
#HOMEPAGE= http://www.opendarwin.org/
EMUL_PLATFORMS= darwin-i386 darwin-powerpc
ONLY_FOR_PLATFORM= NetBSD-1.6Z*-powerpc NetBSD-1.6Z*-i386 \
NetBSD-[2-9]*-powerpc NetBSD-[2-9]*-i386
PKG_DESTDIR_SUPPORT= destdir
DARWIN_PKG= yes
DARWIN_ARCH= ${MACHINE_ARCH:C/powerpc/ppc/:C/x86_64/i386/}
WRKSRC= ${WRKDIR}
BUILD_DIRS= # empty
EMUL_PKG_FMT= rpm
RPM2PKG_PREFIX= ${DESTDIR}${PREFIX}
RPM2PKG_SUBPREFIX= ${EMULSUBDIR}
RPM2PKG_STAGE= do-install
RPMIGNOREPATH= ./Developer ./usr/X11R6/lib/X11/doc/html \
./usr/share/man ./usr/include ./usr/X11R6/man \
./usr/X11R6/include ./usr/local/include \
./usr/local/man
.include "../../mk/bsd.pkg.mk"