summaryrefslogtreecommitdiff
path: root/time/hamster-applet/Makefile
blob: dc2d0ec6e70937557331f76b417099bc1f81a551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.15 2010/09/14 11:02:51 wiz Exp $
#

DISTNAME=	hamster-applet-2.28.1
PKGREVISION=	3
CATEGORIES=	time
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/hamster-applet/2.28/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://projecthamster.wordpress.com/
COMMENT=	Time tracking applet for GNOME
LICENSE=	gnu-gpl-v3

PKG_DESTDIR_SUPPORT=	user-destdir

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

GCONF_SCHEMAS+=	hamster-applet.schemas
PY_PATCHPLIST=	yes

SUBST_CLASSES+=		python
SUBST_MESSAGE.python=	Fixing path to Python interpreter.
SUBST_STAGE.python=	post-patch
SUBST_FILES.python=	hamster/hamster-applet.py
SUBST_SED.python=	-e 's@/usr/bin/env python@${PYTHONBIN}@g'

.include "../../lang/python/extension.mk"
.include "../../lang/python/pyversion.mk"

.if ${PYPKGPREFIX} == "py24"
.include "../../databases/py-sqlite2/buildlink3.mk"
.else
DEPENDS+=	${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
.endif
.include "../../devel/GConf/schemas.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libbonobo/buildlink3.mk"
BUILDLINK_API_DEPENDS.pygobject+= 	${PYPKGPREFIX}-gobject>=2.14
.include "../../devel/py-gobject/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/py-dbus/buildlink3.mk"
BUILDLINK_API_DEPENDS.gtk2+=	gtk2+>=2.12.0
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/py-gnome2/buildlink3.mk"
.include "../../x11/py-gnome2-desktop/buildlink3.mk"
BUILDLINK_API_DEPENDS.pygtk2+=	${PYPKGPREFIX}-gtk2>=2.12
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"