summaryrefslogblamecommitdiffstats
path: root/sysutils/hal/Makefile
blob: 579f8820b10e633863b2e280ee143ff89a158340 (plain) (tree)
1
2
3
4
5
6




                                                                      
                                                                              










                                                                        
                                                                          

                                                                       



                   

                                                                 




                                                  
                                                 







                                                      
                        



                                                             






                                                             





                                                          




                                                                    







                                                                                   





                                                                   
 
                           
# New ports collection makefile for:   HAL
# Date Created:         02 May 2006
# Whom:             Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#   $MCom: ports/sysutils/hal/Makefile,v 1.11 2006/05/14 20:55:51 marcus Exp $
#

PORTNAME=   hal
PORTVERSION=    ${HALVERSION}.${SNAPVERSION}
CATEGORIES= sysutils gnome
MASTER_SITES=   http://www.marcuscom.com/downloads/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Hardware Abstraction Layer for simplifying device access

LIB_DEPENDS=    polkit.0:${PORTSDIR}/sysutils/policykit
RUN_DEPENDS=    ${LOCALBASE}/share/pci.ids:${PORTSDIR}/sysutils/pciutils \
        isoinfo:${PORTSDIR}/sysutils/cdrtools \
        ${PYTHON_SITELIBDIR}/dbus.pth:${PORTSDIR}/devel/py-dbus

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack gnometarget intlhack pygnome2 ltverhack
USE_AUTOTOOLS=  libtool:15
INSTALLS_SHLIB= yes
USE_PYTHON= yes
CONFIGURE_ARGS= --disable-gtk-doc \
        --with-hwdata=${LOCALBASE}/share \
        --with-backend=freebsd \
        --with-socket-dir=/var/run/hald \
        --with-pid-file=/var/run/hald/hald.pid
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        GTKDOC="false"

USE_RC_SUBR=    hald

HALVERSION= 0.5.8
SNAPVERSION=    20060514

DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}-${HALVERSION}
PLIST_SUB=  VERSION=${HALVERSION}

DESKTOP_ENTRIES="Device Manager" \
        "Examine your devices" \
        "${DATADIR}/device-manager/hal-bus-pci.png" \
        "hal-device-manager" \
        "Application;System;" \
        true

.include <bsd.port.pre.mk>

.if ${ARCH}=="i386" || ${ARCH}=="amd64" || ${ARCH}=="ia64"
RUN_DEPENDS+=   dmidecode:${PORTSDIR}/sysutils/dmidecode
.endif

post-patch:
    @${REINPLACE_CMD} -e '/^scriptdir = /s|libdir|libexecdir|' \
        ${WRKSRC}/tools/Makefile.in \
        ${WRKSRC}/tools/freebsd/Makefile.in

post-install:
.if !defined(PACKAGE_BUILDING)
    @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
.if !defined(NOPORTDOCS)
    ${INSTALL_DATA} ${WRKSRC}/hald/freebsd/README \
        ${DOCSDIR}/README.freebsd
.endif
    ${INSTALL_DATA} ${WRKSRC}/hal.conf ${DATADIR}/hal.conf.dist
    if [ ! -f ${PREFIX}/etc/dbus-1/system.d/hal.conf ]; then \
        ${MKDIR} ${PREFIX}/etc/dbus-1/system.d ; \
        ${INSTALL_DATA} ${WRKSRC}/hal.conf \
            ${PREFIX}/etc/dbus-1/system.d ; \
    fi

.include <bsd.port.post.mk>