summaryrefslogblamecommitdiffstats
path: root/deskutils/gdesklets/Makefile
blob: c6b3e1cdfe820ee9f0d6f54778a682cf9a0b6b30 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                            
           


                         

                      
                               
                                                     






                                                             
                                                     




















                                                                                          








                                                                             
# New ports collection makefile for:    gdesklets
# Date created:             11 August 2003
# Whom:                 Mezz <mezz7@cox.net>
#
# $FreeBSD$
#

PORTNAME=   gdesklets
PORTVERSION=    0.35.3
PORTREVISION=   2
CATEGORIES= deskutils gnome
MASTER_SITES=   http://www.gdesklets.org/downloads/ \
        http://www.pycage.de/download/${PORTNAME}/ \
        ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/}
DISTNAME=   gDesklets-${PORTVERSION}

MAINTAINER= klammer@webonaut.com
COMMENT=    A framework for Gnome 2.x for desktop applets

LIB_DEPENDS=    gtop-2.0.7:${PORTSDIR}/devel/libgtop2

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool:15
USE_PYTHON= yes
USE_X_PREFIX=   yes
USE_GNOME=  gnomehack gnomeprefix gnometarget intlhack librsvg2 pygnomeextras

OPTIONS=    GDBM "install py-gdbm instead py-bsddb for config storage" off

.include <bsd.port.pre.mk>

.if defined(WITH_GDBM)
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/gdbm.so:${PORTSDIR}/databases/py-gdbm
.else
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
.endif

CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"

MAN1=       gdesklets.1

post-install:
    @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Displays
    @${MKDIR} ${PREFIX}/share/gnome/gdesklets/Sensors
    @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/lib/gdesklets
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>