pkgsrc/emulators/compat12/Makefile
jlam 60f791e1e6 Move the check-shlibs target from bsd.pkg.mk to bsd.pkg.check.mk where
it will live with other "check" targets run after package installation.

Get rid of SHLIB_HANDLING, whose meaning had mutated over the years
from one thing to another.  Currently, it is used to basically note
whether the system's "ldd" command can be usefully run on the package's
binaries and libraries.  Rename this variable to CHECK_SHLIBS_SUPPORTED
for more clarity.

CHECK_SHLIBS is now a variable set exclusively by the user in /etc/mk.conf
to note whether the check for missing run-time search paths is performed
after a package is installed.  It defaults to "no" unless PKG_DEVELOPER
is set.
2006-05-22 22:22:02 +00:00

43 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2006/05/22 22:22:02 jlam Exp $
#
DISTNAME= compat12-${MACHINE_ARCH}
PKGNAME= compat12-1.2.1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.NetBSD.org/Releases/formal-1.2/index.html
COMMENT= Shared libraries for NetBSD 1.2 (and earlier) compatibility
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-m68k NetBSD-*-ns32k \
NetBSD-*-sparc
NO_BUILD= yes
NO_MTREE= yes
CHECK_SHLIBS_SUPPORTED= no
FILES_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR:Q}
FILES_SUBST+= MACHINE_ARCH=${MACHINE_ARCH:Q}
FILES_SUBST+= OBJECT_FMT=${OBJECT_FMT:Q}
FILES_SUBST+= LDCONFIG=${LDCONFIG:Q}
.include "../../mk/bsd.prefs.mk"
# This installs in /usr (or /emul/aout/usr) to avoid dynamic linker annoyances
.if ${OBJECT_FMT} == "ELF" && \
(${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc")
EMULSUBDIR= emul/aout
COMPAT_LIBDIR= ${EMULSUBDIR}/usr/lib
.elif ${OPSYS} == "NetBSD"
LOCALBASE= /usr
COMPAT_LIBDIR= lib
.endif
PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR:Q}
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBDIR}
${INSTALL_DATA} ${WRKDIR}/lib*.so* ${PREFIX}/${COMPAT_LIBDIR}
.include "../../mk/bsd.pkg.mk"