File:  [cvs.NetBSD.org] / pkgsrc / pkgtools / packagekit / Attic / Makefile
Revision 1.29: download - view: text, annotated - select for diffs
Sat Jan 26 21:36:42 2013 UTC (11 years, 10 months ago) by adam
Branches: MAIN
CVS tags: HEAD
Revbump after graphics/jpeg and textproc/icu

# $NetBSD: Makefile,v 1.29 2013/01/26 21:36:42 adam Exp $
#

DISTNAME=	PackageKit-0.4.0
PKGREVISION=	22
PKGNAME=	${DISTNAME:S/PackageKit/packagekit/}
CATEGORIES=	pkgtools
MASTER_SITES=	http://www.packagekit.org/releases/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.packagekit.org/
COMMENT=	System activated daemon for managing software updates

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_TOOLS+=	pkg-config gmake intltool msgfmt autoconf
USE_LANGUAGES=	c c++

BUILD_DEFS+=	VARBASE
BUILD_DEFS+=	PKG_SYSCONFBASE

PKCACHEDIR=	${VARBASE}/cache/PackageKit/downloads
PKLOGDIR=	${VARBASE}/log/PackageKit
PKETCDIR=	${LOCALBASE}/etc/PackageKit

EGDIR=		${PREFIX}/share/examples/packagekit
CONF_FILES=	${EGDIR}/CommandNotFound.conf \
		${PKG_SYSCONFDIR}/PackageKit/CommandNotFound.conf
CONF_FILES+=	${EGDIR}/PackageKit.conf \
		${PKG_SYSCONFDIR}/PackageKit/PackageKit.conf
CONF_FILES+=	${EGDIR}/Vendor.conf \
		${PKG_SYSCONFDIR}/PackageKit/Vendor.conf
CONF_FILES+=	${EGDIR}/org.freedesktop.PackageKit.conf \
		${PKG_SYSCONFDIR}/dbus-1/system.d/org.freedesktop.PackageKit.conf
CONF_FILES+=	${EGDIR}/org.freedesktop.PackageKitTestBackend.conf \
		${PKG_SYSCONFDIR}/dbus-1/system.d/org.freedesktop.PackageKitTestBackend.conf

CHECK_INTERPRETER_SKIP+= lib/pm-utils/sleep.d/95packagekit \
			 share/PackageKit/helpers/test_spawn/search-name.sh

CONFIGURE_ARGS+=	--disable-qt
CONFIGURE_ARGS+=	--with-security-framework=polkit
CONFIGURE_ARGS+=	--enable-pkgsrc
CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASE:Q}

PKGCONFIG_OVERRIDE+=	data/packagekit-qt.pc.in
PKGCONFIG_OVERRIDE+=	data/packagekit-glib.pc.in

PY_PATCHPLIST=	yes

REPLACE_PYTHON=	backends/test/helpers/PackageKitDbusTest.py	\
		lib/python/packagekit/client.py		\
		lib/python/packagekit/filter.py		\
		lib/python/packagekit/misc.py

OWN_DIRS+=	${PKCACHEDIR}
OWN_DIRS+=	${PKLOGDIR}
OWN_DIRS+=	${PKETCDIR}

post-extract:
	cp -r ${FILESDIR}/backends-pkgsrc ${WRKSRC}/backends/pkgsrc

pre-configure:
	cd ${WRKSRC} && autoconf -f

.include "../../mk/compiler.mk"
BUILDLINK_TRANSFORM+=	rm:-Werror

.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../security/policykit/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>