[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install

Annotation of pkgsrc/pkgtools/pkg_install/Makefile, Revision 1.98

1.98    ! grant       1: # $NetBSD: Makefile,v 1.97 2004/03/13 21:00:19 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.83      jlam       48: LIBNBCOMPAT_FILESDIR=  ${.CURDIR}/../../pkgtools/libnbcompat/files
                     49: LIBNBCOMPAT_SRCDIR=    ${WRKDIR}/libnbcompat
                     50:
                     51: CFLAGS+=               -I${LIBNBCOMPAT_SRCDIR}
                     52: LDFLAGS+=              -L${LIBNBCOMPAT_SRCDIR}
                     53: LIBS+=                 -lnbcompat
1.1       agc        54:
1.95      grant      55: MAKE_ENV+=             MACHINE_ARCH="${MACHINE_ARCH}"
                     56: MAKE_ENV+=             OPSYS="${OPSYS}"
1.91      grant      57:
1.92      jlam       58: PKG_DBDIR?=            /var/db/pkg
                     59: PKG_INFO=              PKG_DBDIR=${PKG_DBDIR} ${PKG_INFO_CMD}
1.94      jlam       60: PKG_ADMIN=             PKG_DBDIR=${PKG_DBDIR} ${PKG_ADMIN_CMD}
1.92      jlam       61:
                     62: .include "../../mk/bsd.prefs.mk"
                     63:
1.58      schmonz    64: VERSION!=              ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
                     65:                        ${FILESDIR}/lib/version.h
1.78      jlam       66:
1.58      schmonz    67: do-extract:
1.83      jlam       68:        @${CP} -Rp ${LIBNBCOMPAT_FILESDIR} ${LIBNBCOMPAT_SRCDIR}
1.58      schmonz    69:        @${CP} -Rp ${FILESDIR} ${WRKSRC}
1.12      hubertf    70:
1.83      jlam       71: pre-configure:
1.85      grant      72:        cd ${LIBNBCOMPAT_SRCDIR} && ${SETENV} CC="${CC}" ./configure && \
                     73:                ${MAKE_PROGRAM}
1.83      jlam       74:
1.12      hubertf    75: post-install:
1.75      jlam       76:        if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then                  \
                     77:                if [ ! -d ${PKG_DBDIR} ]; then                          \
                     78:                        ${INSTALL_DATA_DIR} ${PKG_DBDIR};               \
                     79:                fi;                                                     \
1.77      jlam       80:                ${PKG_ADMIN} rebuild;                                   \
1.15      hubertf    81:        fi
1.1       agc        82:
                     83: .include "../../mk/bsd.pkg.mk"
1.65      schmonz    84:
1.69      wiz        85: PREFIX:=               ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
1.68      schmonz    86: .if ${PREFIX} == "/usr"
1.67      schmonz    87: CONFIGURE_ARGS+=       --mandir=${PREFIX}/share/man
1.89      grant      88: MANDIR=                        share/
1.67      schmonz    89: .else
                     90: CONFIGURE_ARGS+=       --mandir=${PREFIX}/man
1.89      grant      91: MANDIR=                        # empty
1.68      schmonz    92: .endif

CVSweb <webmaster@jp.NetBSD.org>