pkgsrc/emulators/compat14/Makefile
jdarrow 4dc01db3bc Update package to 1.4.3.1 (netbsd-1-4 as of 2002-06-28, plus patch to
lib/libc/rpc/xdr_array.c).  Includes libc security fixes for
SA2002-006 and SA2002-011 (and probably other bugs found since 1.4.3).
2002-08-13 02:53:26 +00:00

71 lines
2.1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2002/08/13 02:53:26 jdarrow Exp $
#
DISTNAME= compat14-${MACHINE_ARCH}-${VERSION}
PKGNAME= compat14-${VERSION}
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.netbsd.org/Releases/formal-1.4/index.html
COMMENT= Shared libraries for NetBSD 1.4 (and earlier) compatibility
VERSION= 1.4.3.1
CONFLICTS= compat14-crypto-[0-9]*
ONLY_FOR_PLATFORM= NetBSD-*-sparc NetBSD-*-i386
NOT_FOR_PLATFORM= NetBSD-1.3*-* NetBSD-1.4*-*
NO_MTREE= # defined
SHLIB_HANDLING= NO
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
.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
COMPAT_XLIBDIR= ${EMULSUBDIR}/usr/X11R6/lib
.else
LOCALBASE= /usr
COMPAT_LIBDIR= lib
COMPAT_XLIBDIR= X11R6/lib
.endif
PLIST_SRC+= ${PKGDIR}/PLIST
.if exists(${PKGDIR}/PLIST.${MACHINE_ARCH})
PLIST_SRC+= ${PKGDIR}/PLIST.${MACHINE_ARCH}
.endif
PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR} COMPAT_XLIBDIR=${COMPAT_XLIBDIR}
do-build:
${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
-e "s,@COMPAT_LIBDIR@,${COMPAT_LIBDIR},g" \
-e "s,@COMPAT_XLIBDIR@,${COMPAT_XLIBDIR},g" \
-e "s,@LDCONFIG@,${LDCONFIG},g" \
< ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} -e "s,@MACHINE_ARCH@,${MACHINE_ARCH},g" \
-e "s,@OBJECT_FMT@,${OBJECT_FMT},g" \
-e "s,@LDCONFIG@,${LDCONFIG},g" \
< ${PKGDIR}/INSTALL > ${INSTALL_FILE}
# note that the INSTALL_DATA for the lib*.so symlinks will copy the file, not the symlink.
# FIXME.
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_LIBDIR}
${INSTALL_DATA} ${WRKDIR}/lib/lib*.so* ${PREFIX}/${COMPAT_LIBDIR}
if [ -d ${WRKDIR}/X11R6/lib ]; then \
${INSTALL_DATA_DIR} ${PREFIX}/${COMPAT_XLIBDIR}; \
${INSTALL_DATA} ${WRKDIR}/X11R6/lib/lib*.so* ${PREFIX}/${COMPAT_XLIBDIR}; \
fi
post-install:
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"