blob: 34befc1b21275ba55ea9fc5290980df7d9e1451d (
plain) (
blame)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# 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.9 2006/05/05 23:50:37 marcus Exp $
#
PORTNAME= hal
PORTVERSION= ${HALVERSION}.${SNAPVERSION}
PORTREVISION= 1
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= 20060505
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-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>
|