pkgsrc/pkgtools/pkg_install/Makefile

84 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.95 2004/02/11 11:41:43 grant Exp $
# Notes to package maintainers:
#
# To update this package, import from src/usr.sbin/pkg_install.
#
# Updating this package does not automatically necessitate bumping
# PKGTOOLS_REQD in bsd.pkg.mk. Do so if and only if there is a critical
# change in the pkg_* tools that pkgsrc relies on for proper operation.
DISTNAME= pkg_install-${VERSION}
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
2003-07-18 00:50:55 +02:00
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.pkgsrc.org/
2003-12-22 01:23:35 +01:00
COMMENT= Package management and administration tools for pkgsrc
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR}
CONFIGURE_ARGS+= --with-ftp=${FETCH_CMD}
CONFIGURE_ARGS+= --with-mtree=${MTREE}
CONFIGURE_ARGS+= --with-pax=${PAX}
CONFIGURE_ARGS+= --with-tar=${TAR}
NO_PKGTOOLS_REQD_CHECK= # defined
NO_BUILDLINK= # defined
NO_CHECKSUM= # defined
NO_MTREE= # defined
NO_PKG_REGISTER= # defined
NO_PACKAGE= Deinstallation is not permitted
NO_TOOLS= # defined
PKG_PRESERVE= # defined
PLIST_SUBST+= MANDIR=${MANDIR}
PLIST_SUBST+= PKG_TOOLS_BIN=${PKG_TOOLS_BIN}
LIBNBCOMPAT_FILESDIR= ${.CURDIR}/../../pkgtools/libnbcompat/files
LIBNBCOMPAT_SRCDIR= ${WRKDIR}/libnbcompat
CFLAGS+= -I${LIBNBCOMPAT_SRCDIR}
LDFLAGS+= -L${LIBNBCOMPAT_SRCDIR}
LIBS+= -lnbcompat
MAKE_ENV+= MACHINE_ARCH="${MACHINE_ARCH}"
MAKE_ENV+= OPSYS="${OPSYS}"
PKG_DBDIR?= /var/db/pkg
PKG_INFO= PKG_DBDIR=${PKG_DBDIR} ${PKG_INFO_CMD}
2004-02-09 23:04:12 +01:00
PKG_ADMIN= PKG_DBDIR=${PKG_DBDIR} ${PKG_ADMIN_CMD}
.include "../../mk/bsd.prefs.mk"
VERSION!= ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
${FILESDIR}/lib/version.h
do-extract:
@${CP} -Rp ${LIBNBCOMPAT_FILESDIR} ${LIBNBCOMPAT_SRCDIR}
@${CP} -Rp ${FILESDIR} ${WRKSRC}
pre-configure:
cd ${LIBNBCOMPAT_SRCDIR} && ${SETENV} CC="${CC}" ./configure && \
${MAKE_PROGRAM}
post-install:
2003-08-31 13:06:02 +02:00
if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \
if [ ! -d ${PKG_DBDIR} ]; then \
${INSTALL_DATA_DIR} ${PKG_DBDIR}; \
fi; \
${PKG_ADMIN} rebuild; \
fi
.include "../../mk/bsd.pkg.mk"
2003-01-11 12:59:35 +01:00
PREFIX:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
2003-01-11 08:54:28 +01:00
.if ${PREFIX} == "/usr"
CONFIGURE_ARGS+= --mandir=${PREFIX}/share/man
MANDIR= share/
.else
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
MANDIR= # empty
2003-01-11 08:54:28 +01:00
.endif