# $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= Framework for Gnome 2.x for desktop applets LIB_DEPENDS= libgtop-2.0.so:${PORTSDIR}/devel/libgtop OPTIONS_DEFINE= GDBM WRKSRC= ${WRKDIR}/gDesklets-${PORTVERSION} USE_GNOME= gnomeprefix intlhack librsvg2 pygnomeextras USE_PYTHON= yes USES= gettext gmake pkgconfig tar:bzip2 pathfix \ desktop-file-utils shared-mime-info libtool GNU_CONFIGURE= yes INSTALLS_ICONS= yes CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} .include .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} ${STAGEDIR}${DATADIR}/Displays @${TOUCH} ${STAGEDIR}${DATADIR}/Displays/.keep_me @${MKDIR} ${STAGEDIR}${DATADIR}/Sensors @${TOUCH} ${STAGEDIR}${DATADIR}/Sensors/.keep_me @-update-mime-database ${STAGEDIR}${PREFIX}/share/mime @${CAT} ${PKGMESSAGE} .include