aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/hamster-applet/Makefile
blob: 1fce8fe20fd22e9f3d621be4da6ff95b4d9b3c5e (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
# Created by: 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=   5
CATEGORIES= deskutils gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome2

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

BROKEN=     Uses unknown GNOME components pygnomedesktop and gnomecontrolcenter2

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3
RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
        ${PYTHON_SITELIBDIR}/xdg/__init__.py:${PORTSDIR}/devel/py-xdg \
        ${PYTHON_SITELIBDIR}/_dbus_bindings.so:${PORTSDIR}/devel/py-dbus

USES=       gettext gmake pkgconfig python tar:bzip2 waf
USE_XORG=   xscrnsaver
USE_GNOME=  gnomeprefix intlhack pygnomedesktop \
        gnomecontrolcenter2 gnomedocutils
INSTALLS_OMF=   yes
INSTALLS_ICONS= yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

GCONF_SCHEMAS=  hamster-applet.schemas

post-install:
    (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
        -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
    (cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
        -d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})

.include <bsd.port.mk>