blob: 4a8fa47ca949c4db9572aa68ac6509a73007e483 (
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
51
52
53
54
|
# $FreeBSD$
PORTNAME= gdesklets
PORTVERSION= 0.36.2
PORTREVISION= 1
CATEGORIES= deskutils gnome
MASTER_SITES= GENTOO/distfiles
# XXX currently broken: http://www.gdesklets.de/files/
DISTNAME= gDesklets-${PORTVERSION}
MAINTAINER= cy@FreeBSD.org
COMMENT= A framework for Gnome 2.x for desktop applets
USE_BZIP2= yes
LIB_DEPENDS= libgtop-2.0.so:${PORTSDIR}/devel/libgtop
OPTIONS_DEFINE= GDBM
WRKSRC= ${WRKDIR}/gDesklets-${PORTVERSION}
USE_GNOME= gnomehack gnomeprefix intlhack librsvg2 pygnomeextras
USE_PYTHON= yes
USES= gettext gmake pkgconfig
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
MAN1= ${PORTNAME}.1
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGDBM}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gdbm>0:${PORTSDIR}/databases/py-gdbm
.else
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb
.endif
post-patch:
@${REINPLACE_CMD} -e 's|`python -c|`$$PYTHON -c|' \
${WRKSRC}/configure
post-install:
@${MKDIR} ${DATADIR}/Displays
@${TOUCH} ${DATADIR}/Displays/.keep_me
@${MKDIR} ${DATADIR}/Sensors
@${TOUCH} ${DATADIR}/Sensors/.keep_me
@-update-mime-database ${PREFIX}/share/mime
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|