add initial apt build framework. based on a patch from Tom Parker <palfrey@tevp.net>many thanks.

This commit is contained in:
Richard Hughes 2007-08-22 14:33:56 +01:00
parent 17c1a850fd
commit 8b0afc6df1
2 changed files with 18 additions and 0 deletions

View File

@ -162,6 +162,17 @@ if test x$with_backend = x; then
with_backend=dummy
fi
fi
# apt has other BR's
if test x$with_backend = xapt; then
# This does not work for me on fedora
# PKG_CHECK_MODULES(APT,libapt-pkg)
APT_CFLAGS="-I/usr/include/apt-pkg"
APT_LIBS="-lapt-pkg"
AC_SUBST(APT_CFLAGS)
AC_SUBST(APT_LIBS)
fi
AM_CONDITIONAL(BACKEND_TYPE_DUMMY, [test x$with_backend = xdummy], [using dummy backend])
AM_CONDITIONAL(BACKEND_TYPE_APT, [test x$with_backend = xapt], [using APT backend])
AM_CONDITIONAL(BACKEND_TYPE_YUM, [test x$with_backend = xyum], [using YUM backend])

View File

@ -75,6 +75,13 @@ packagekitd_LDADD = \
$(POLKIT_LIBS) \
$(NULL)
if BACKEND_TYPE_APT
packagekitd_INCLUDES = \
$(APT_CFLAGS)
packagekitd_LDADD += \
$(APT_LIBS)
endif
BUILT_SOURCES = \
pk-marshal.c \
pk-marshal.h \