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

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / pkg_install / files / lib / Makefile.in (download)

Revision 1.27, Sat Apr 25 21:31:13 2009 UTC (10 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2
Changes since 1.26: +2 -2 lines

Add logic to evaluate license conditions. As frontend for pkgsrc,
pkg_admin gets two new commands (check-license and
check-single-license), which can be used to evaluate a given condition.
pkg_add will be changed to honour licenses at a later point.

# $NetBSD: Makefile.in,v 1.27 2009/04/25 21:31:13 joerg Exp $

srcdir=		@srcdir@

pkgdbdir=	@pkgdbdir@
mandir=		@mandir@
datarootdir=	@datarootdir@
sysconfdir=	@sysconfdir@

cat5dir=	$(mandir)/cat5
cat7dir=	$(mandir)/cat7
man5dir=	$(mandir)/man5
man7dir=	$(mandir)/man7

BOOTSTRAP=	@bootstrap@
SSL_SUPPORT=	@ssl_support@

AR=		@AR@
CC=		@CC@
CPPFLAGS=	@CPPFLAGS@ -I. -I$(srcdir)
DEFS=		@DEFS@ -DDEF_LOG_DIR=\"$(pkgdbdir)\"


LIB=	libinstall.a

OBJS=	automatic.o conflicts.o decompress.o dewey.o fexec.o file.o \
	gpgsig.o global.o iterate.o license.o lpkg.o opattern.o \
	parse-config.o pkgdb.o plist.o remove.o \
	str.o var.o version.o vulnerabilities-file.o xwrapper.o

CPPFLAGS+=	-DSYSCONFDIR=\"$(sysconfdir)\"

.if !empty(BOOTSTRAP)
OBJS+=	pkg_io.o pkg_signature.o

.if !empty(SSL_SUPPORT)
OBJS+=		pkcs7.o

all: $(LIB)

	$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c $<

$(LIB): $(OBJS)
	$(AR) crv $@ $(OBJS)
	$(RANLIB) $@

	rm -f $(OBJS) $(LIB)

	$(INSTALL) -m 755 -d ${DESTDIR}$(man5dir)
	$(INSTALL) -m 755 -d ${DESTDIR}$(cat5dir)
	$(INSTALL) -m 755 -d ${DESTDIR}$(man7dir)
	$(INSTALL) -m 755 -d ${DESTDIR}$(cat7dir)
	$(INSTALL) -m 444 pkg_summary.5 ${DESTDIR}$(man5dir)/pkg_summary.5
	$(INSTALL) -m 444 pkg_summary.cat5 ${DESTDIR}$(cat5dir)/pkg_summary.0
	$(INSTALL) -m 444 pkg_install.conf.5 ${DESTDIR}$(man5dir)/pkg_install.conf.5
	$(INSTALL) -m 444 pkg_install.conf.cat5 ${DESTDIR}$(cat5dir)/pkg_install.conf.0
	$(INSTALL) -m 444 pkgsrc.7 ${DESTDIR}$(man7dir)/pkgsrc.7
	$(INSTALL) -m 444 pkgsrc.cat7 ${DESTDIR}$(cat7dir)/pkgsrc.0