aboutsummaryrefslogtreecommitdiff
path: root/deskutils/hamster-applet/Makefile
blob: 9fdc3ca761edeeddd6d97b3a27463c15979c9f9d (plain) (blame)
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
51
52
53
54
55
56
# New ports collection makefile for:	hamster-applet
# Date created:				06 August 2008
# Whom:					Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/deskutils/hamster-applet/Makefile,v 1.42 2010/06/06 11:27:47 kwm Exp $
#

PORTNAME=	hamster-applet
PORTVERSION=	2.32.1
PORTREVISION=	3
CATEGORIES=	deskutils gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome2

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Time management applet for the GNOME Desktop

BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
		${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg

USE_BZIP2=	yes
USE_GETTEXT=	yes
USE_GMAKE=	yes
USE_PYTHON=	yes
USE_XORG=	xscrnsaver
USE_GNOME=	gnomeprefix intlhack gnomehack pygnomedesktop \
		gnomecontrolcenter2 gnomedocutils
INSTALLS_OMF=	yes
INSTALLS_ICONS=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

GCONF_SCHEMAS=	hamster-applet.schemas

.include <bsd.port.pre.mk>

# WAF needs that
CONFIGURE_ENV+=	CC="${CC}"

do-configure:
	@cd ${WRKSRC} && ./waf --prefix=${PREFIX} configure

do-build:
	@cd ${WRKSRC} && ./waf build

do-install:
	@cd ${WRKSRC} && dbus-launch ./waf install
# -O -Qold
	@${PYTHON_CMD} -Qold ${PYTHON_LIBDIR}/compileall.py -q \
		${PYTHON_SITELIBDIR:S|${LOCALBASE}|${PREFIX}|}/hamster
	@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -q \
		${PYTHON_SITELIBDIR:S|${LOCALBASE}|${PREFIX}|}/hamster

.include <bsd.port.post.mk>