Annotation of pkgsrc/pkgtools/pkg_install/Makefile, Revision 1.103
1.103 ! jlam 1: # $NetBSD: Makefile,v 1.102 2004/08/09 06:21:24 jlam Exp $
1.4 hubertf 2:
1.58 schmonz 3: # Notes to package maintainers:
1.57 hubertf 4: #
1.58 schmonz 5: # To update this package, import from src/usr.sbin/pkg_install.
1.57 hubertf 6: #
1.58 schmonz 7: # Updating this package does not automatically necessitate bumping
8: # PKGTOOLS_REQD in bsd.pkg.mk. Do so if and only if there is a critical
9: # change in the pkg_* tools that pkgsrc relies on for proper operation.
1.57 hubertf 10:
1.58 schmonz 11: DISTNAME= pkg_install-${VERSION}
1.1 agc 12: CATEGORIES= pkgtools
1.58 schmonz 13: MASTER_SITES= # empty
14: DISTFILES= # empty
1.1 agc 15:
1.73 grant 16: MAINTAINER= tech-pkg@NetBSD.org
1.82 reed 17: HOMEPAGE= http://www.pkgsrc.org/
1.90 grant 18: COMMENT= Package management and administration tools for pkgsrc
1.60 schmonz 19:
1.58 schmonz 20: GNU_CONFIGURE= # defined
21: CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR}
1.87 grant 22: CONFIGURE_ARGS+= --with-ftp=${FETCH_CMD}
23: CONFIGURE_ARGS+= --with-mtree=${MTREE}
24: CONFIGURE_ARGS+= --with-pax=${PAX}
25: CONFIGURE_ARGS+= --with-tar=${TAR}
1.58 schmonz 26:
1.65 schmonz 27: NO_PKGTOOLS_REQD_CHECK= # defined
1.83 jlam 28: NO_BUILDLINK= # defined
1.58 schmonz 29: NO_CHECKSUM= # defined
30: NO_MTREE= # defined
31: NO_PKG_REGISTER= # defined
32: NO_PACKAGE= Deinstallation is not permitted
1.66 agc 33: PKG_PRESERVE= # defined
1.1 agc 34:
1.97 jlam 35: # These are needed to solve a chicken-and-egg problem where pkgsrc uses
1.96 jlam 36: # newer features of pkg_install, but older NetBSD installations won't
37: # support them. In this case, we explicitly use the native GCC
38: # compiler to avoid problems with depending on pkgsrc GCC for building
1.97 jlam 39: # pkg_install. We also avoid building digest as that would involve
40: # using the newer pkg_install tools.
1.96 jlam 41: #
42: USE_NATIVE_GCC= yes
1.97 jlam 43: USE_DIGEST= no
1.96 jlam 44:
1.89 grant 45: PLIST_SUBST+= MANDIR=${MANDIR}
46: PLIST_SUBST+= PKG_TOOLS_BIN=${PKG_TOOLS_BIN}
47:
1.100 tv 48: CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK}
49:
1.95 grant 50: MAKE_ENV+= MACHINE_ARCH="${MACHINE_ARCH}"
51: MAKE_ENV+= OPSYS="${OPSYS}"
1.91 grant 52:
1.92 jlam 53: PKG_DBDIR?= /var/db/pkg
54: PKG_INFO= PKG_DBDIR=${PKG_DBDIR} ${PKG_INFO_CMD}
1.94 jlam 55: PKG_ADMIN= PKG_DBDIR=${PKG_DBDIR} ${PKG_ADMIN_CMD}
1.92 jlam 56:
57: .include "../../mk/bsd.prefs.mk"
58:
1.58 schmonz 59: VERSION!= ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
60: ${FILESDIR}/lib/version.h
1.78 jlam 61:
1.58 schmonz 62: do-extract:
63: @${CP} -Rp ${FILESDIR} ${WRKSRC}
1.12 hubertf 64:
65: post-install:
1.75 jlam 66: if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \
67: if [ ! -d ${PKG_DBDIR} ]; then \
68: ${INSTALL_DATA_DIR} ${PKG_DBDIR}; \
69: fi; \
1.77 jlam 70: ${PKG_ADMIN} rebuild; \
1.15 hubertf 71: fi
1.1 agc 72:
1.103 ! jlam 73: .include "../../pkgtools/libnbcompat/inplace.mk"
1.1 agc 74: .include "../../mk/bsd.pkg.mk"
1.65 schmonz 75:
1.69 wiz 76: PREFIX:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
1.68 schmonz 77: .if ${PREFIX} == "/usr"
1.67 schmonz 78: CONFIGURE_ARGS+= --mandir=${PREFIX}/share/man
1.89 grant 79: MANDIR= share/
1.67 schmonz 80: .else
81: CONFIGURE_ARGS+= --mandir=${PREFIX}/man
1.89 grant 82: MANDIR= # empty
1.68 schmonz 83: .endif
CVSweb <webmaster@jp.NetBSD.org>