INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2006/03/14 01:14:28 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= compat14-${MACHINE32_ARCH}-${VERSION}
|
|
PKGNAME= netbsd32_compat14-${VERSION}
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.NetBSD.org/Releases/formal-1.4/index.html
|
|
COMMENT= 32-bit shared libraries for NetBSD 1.4 (and earlier) compatibility
|
|
|
|
VERSION= 1.4.3.1
|
|
PKGREVISION= 1
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
MACHINE32_ARCH= sparc
|
|
DEPENDS+= netbsd32_compat15>=1.0:../../emulators/netbsd32_compat15
|
|
.elif ${MACHINE_ARCH} == "x86_64"
|
|
MACHINE32_ARCH= i386
|
|
DEPENDS+= netbsd32_compat16>=1.0:../../emulators/netbsd32_compat16
|
|
.else
|
|
MACHINE32_ARCH= ${MACHINE_ARCH}
|
|
.endif
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-sparc64
|
|
ONLY_FOR_PLATFORM+= NetBSD-[2-9]*-x86_64
|
|
|
|
NO_MTREE= yes
|
|
NO_BUILD= yes
|
|
SHLIB_HANDLING= NO
|
|
|
|
FILES_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR:Q}
|
|
FILES_SUBST+= COMPAT_XLIBDIR=${COMPAT_XLIBDIR: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"
|
|
|
|
EMULSUBDIR= emul/aout
|
|
COMPAT_LIBDIR= ${EMULSUBDIR}/usr/lib
|
|
COMPAT_XLIBDIR= ${EMULSUBDIR}/usr/X11R6/lib
|
|
|
|
PLIST_SUBST+= COMPAT_LIBDIR=${COMPAT_LIBDIR:Q} COMPAT_XLIBDIR=${COMPAT_XLIBDIR:Q}
|
|
|
|
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
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|