summaryrefslogtreecommitdiffstats
path: root/sysutils/hal/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-01-08 14:46:46 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-01-08 14:46:46 +0800
commitd05b8d90ffc1a17e691d97e62578deddd88929eb (patch)
treef3288ea76e20166e7cf7d7728fd634b32836b13c /sysutils/hal/Makefile
parentcf2086594a8ee7a5b1d54ec1ffbca691ce6b4908 (diff)
downloadmarcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.tar
marcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.tar.gz
marcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.tar.bz2
marcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.tar.lz
marcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.tar.xz
marcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.tar.zst
marcuscom-ports-d05b8d90ffc1a17e691d97e62578deddd88929eb.zip
This has been a LONG time coming, but update hal to 0.5.10, complete with
PolicyKit and ConsoleKit support. Thanks to mezz for testing hal without PK or CK. Configuring policies looks to be MUCH easier now. See PolicyKit.conf(5) and /usr/local/etc/PolicyKit/PolicyKit.conf. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10022 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/hal/Makefile')
-rw-r--r--sysutils/hal/Makefile140
1 files changed, 140 insertions, 0 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile
new file mode 100644
index 000000000..45f522027
--- /dev/null
+++ b/sysutils/hal/Makefile
@@ -0,0 +1,140 @@
+# New ports collection makefile for: HAL
+# Date Created: 02 May 2006
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/sysutils/hal/Makefile,v 1.30 2007/12/24 19:42:03 marcus Exp $
+# $MCom: ports/sysutils/hal/Makefile,v 1.26 2006/10/13 10:00:57 ahze Exp $
+#
+
+PORTNAME= hal
+PORTVERSION= ${HALVERSION}.${SNAPVERSION}
+PORTREVISION?= 0
+CATEGORIES?= sysutils
+MASTER_SITES= http://www.marcuscom.com/downloads/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT?= Hardware Abstraction Layer for simplifying device access
+
+.if !defined(HAL_SLAVE)
+LIB_DEPENDS= polkit.2:${PORTSDIR}/sysutils/policykit \
+ volume_id.0:${PORTSDIR}/devel/libvolume_id \
+ ck-connector.0:${PORTSDIR}/sysutils/consolekit
+RUN_DEPENDS= ${LOCALBASE}/share/pciids/pci.ids:${PORTSDIR}/misc/pciids
+.endif
+
+USE_BZIP2= yes
+USE_GETTEXT= yes
+USE_GMAKE= yes
+USE_GNOME= gnomehack gnometarget intlhack ltverhack
+USE_AUTOTOOLS= libtool:15
+USE_LDCONFIG= yes
+USE_PYTHON= yes
+CONFIGURE_ARGS= --disable-gtk-doc \
+ --with-backend=freebsd \
+ --disable-docbook-docs \
+ --with-pci-ids=${LOCALBASE}/share/pciids \
+ --disable-usb-ids \
+ --without-libpci \
+ --disable-usb \
+ --disable-smbios \
+ --disable-apm \
+ --disable-pmu \
+ --enable-policy-kit \
+ --enable-console-kit \
+ --with-socket-dir=/var/run/hald \
+ --with-eject=/usr/sbin/cdcontrol \
+ --with-pid-file=/var/run/hald/hald.pid
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ GTKDOC="false"
+
+HALVERSION= 0.5.10
+SNAPVERSION= 20080106
+
+.if !defined(HAL_SLAVE)
+USE_RC_SUBR= hald
+USE_GNOME_SUBR= yes
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${HALVERSION}
+PLIST_SUB= VERSION=${HALVERSION}
+
+RC_FILES= hal.conf:${PREFIX}/etc/dbus-1/system.d
+PLIST_FILES= ${PRIV_FILES:S|^|%%DATADIR%%/dist/|}
+
+SUB_FILES= pkg-install pkg-deinstall
+SUB_LIST= RC_FILES="${RC_FILES}"
+
+MAN1= hal-disable-polling.1 hal-find-by-capability.1 \
+ hal-find-by-property.1 hal-get-property.1 \
+ hal-is-caller-locked-out.1 hal-lock.1 \
+ hal-set-property.1 lshal.1
+MAN8= hald.8
+
+OPTIONS= FIXED_MOUNTPOINTS "use fixed mountpoints" off
+.else # Slave port stuff
+LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
+RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
+
+USE_GNOME+= pygnome2
+DESKTOP_ENTRIES="Device Manager" \
+ "Examine your devices" \
+ "${DATADIR}/device-manager/hal-bus-pci.png" \
+ "hal-device-manager" \
+ "Application;System;" \
+ true
+BUILD_WRKSRC= ${WRKSRC}/tools/device-manager
+INSTALL_WRKSRC= ${BUILD_WRKSRC}
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 505000
+IGNORE= not supported on FreeBSD prior to 5.5-RELEASE
+.endif
+
+.if !defined(HAL_SLAVE)
+.if (${ARCH}=="i386" || ${ARCH}=="amd64" || ${ARCH}=="ia64")
+RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode
+.endif
+
+.if ${OSVERSION} <= 601100
+NEEDS_MEDIA= yes
+PLIST_SUB+= MEDIA=""
+.else
+PLIST_SUB+= MEDIA="@comment "
+.endif
+
+.if defined(WITH_FIXED_MOUNTPOINTS)
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-tools_hal-storage-mount.c
+.endif
+.endif
+
+post-patch:
+.if !defined(HAL_SLAVE)
+ @${REINPLACE_CMD} -e 's|device-manager||' \
+ ${WRKSRC}/tools/Makefile.in
+.endif
+ @${REINPLACE_CMD} -e '/^scriptdir = /s|libdir|libexecdir|' \
+ ${WRKSRC}/tools/Makefile.in \
+ ${WRKSRC}/tools/freebsd/Makefile.in
+ @${REINPLACE_CMD} -e 's|[(]libdir[)]/hal/scripts|(libexecdir)/hal/scripts|' \
+ ${WRKSRC}/hald/Makefile.in
+ @${REINPLACE_CMD} -e 's|user="0"|group="operator"|g' \
+ ${WRKSRC}/hal.conf.in
+
+post-install:
+.if !defined(HAL_SLAVE)
+ ${MKDIR} ${DATADIR}/dist
+ ${INSTALL_DATA} ${WRKSRC}/hal.conf ${DATADIR}/dist
+ @${SETENV} PKG_PREFIX=${PREFIX} PACKAGE_BUILDING=${PACKAGE_BUILDING} \
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.if !defined(PACKAGE_BUILDING) && defined(NEEDS_MEDIA)
+ ${MKDIR} /media
+.endif
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/hald/freebsd/README \
+ ${DOCSDIR}/README.freebsd
+.endif
+.endif
+
+.include <bsd.port.post.mk>