7a65e5eddd
be the official name bump PKGREVISION (this still needs a lot of work)
110 lines
3.2 KiB
Makefile
110 lines
3.2 KiB
Makefile
# $NetBSD: Makefile,v 1.41 2009/07/26 18:42:04 drochner Exp $
|
|
|
|
DISTNAME= hal-0.5.11
|
|
PKGREVISION= 24
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://hal.freedesktop.org/releases/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= netbsd-desktop@NetBSD.org
|
|
HOMEPAGE= http://hal.freedesktop.org/
|
|
COMMENT= FreeDesktop hardware abstraction layer
|
|
|
|
BUILD_DEFS+= VARBASE PKG_SYSCONFBASE
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
GNU_CONFIGURE= YES
|
|
USE_PKGLOCALEDIR= YES
|
|
USE_TOOLS+= gmake intltool msgfmt perl pkg-config
|
|
USE_TOOLS+= autoconf automake autoreconf
|
|
USE_LIBTOOL= YES
|
|
|
|
MAKE_DIRS+= /media
|
|
MAKE_DIRS+= ${VARBASE}/cache/hald
|
|
SPECIAL_PERMS+= ${VARBASE}/cache/hald ${HAL_USER} ${HAL_GROUP} 0644
|
|
|
|
EGDIR= ${PREFIX}/share/examples/hal
|
|
|
|
CONF_FILES= ${EGDIR}/hal.conf ${PKG_SYSCONFBASE}/dbus-1/system.d/hal.conf
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
CONFIGURE_ARGS+= --with-pci-ids=${PREFIX}/share/pciids
|
|
CONFIGURE_ARGS+= --with-usb-ids=${PREFIX}/share/usbids
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "DragonFly"
|
|
.include "../../devel/libvolume_id/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-eject=/usr/sbin/cdcontrol
|
|
CONFIGURE_ARGS+= --with-backend=freebsd
|
|
PLIST_SRC= PLIST.FreeBSD PLIST
|
|
|
|
.elif !empty(MACHINE_PLATFORM:MNetBSD-[5-9]*)
|
|
.include "../../devel/libvolume_id/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-backend=netbsd
|
|
HAL_GROUP= operator
|
|
|
|
.elif ${OPSYS} == "Linux"
|
|
.include "../../devel/libusb/buildlink3.mk"
|
|
.include "../../devel/libvolume_id/buildlink3.mk"
|
|
.include "../../sysutils/pciutils/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-backend=linux
|
|
CONF_FILES+= ${EGDIR}/90-hal.rules \
|
|
${PKG_SYSCONFBASE}/udev/rules.d/90-hal.rules
|
|
|
|
.else # Unsupported systems
|
|
# Pull in the dummy backend
|
|
CONFIGURE_ARGS+= --with-backend=dummy
|
|
PLIST_SRC= PLIST
|
|
.endif
|
|
|
|
CFLAGS.SunOS+= -Du_int32_t=uint32_t
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed
|
|
.endif
|
|
|
|
REPLACE_INTERPRETER+= bash
|
|
REPLACE.bash.old= /bin/bash
|
|
REPLACE.bash.new= ${SH}
|
|
.for halscript in luks-remove luks-setup luks-teardown system-wol-enable system-wol-enabled system-wol-supported
|
|
REPLACE_FILES.bash+= tools/hal-${halscript}
|
|
.endfor
|
|
|
|
HAL_USER?= haldaemon
|
|
HAL_GROUP?= haldaemon
|
|
CONFIGURE_ARGS+= --with-hal-user=${HAL_USER}
|
|
CONFIGURE_ARGS+= --with-hal-group=${HAL_GROUP}
|
|
CONFIGURE_ARGS+= --disable-pmu
|
|
|
|
RCD_SCRIPTS= hal
|
|
|
|
.if ${HAL_GROUP} != "operator"
|
|
PKG_GROUPS= ${HAL_GROUP}
|
|
.endif
|
|
PKG_USERS= ${HAL_USER}:${HAL_GROUP}
|
|
PKG_HOME.haldaemon= ${VARBASE}/run/hal
|
|
|
|
FILES_SUBST+= HAL_USER=${HAL_USER}
|
|
FILES_SUBST+= HAL_GROUP=${HAL_GROUP}
|
|
|
|
PLIST_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
|
|
post-extract:
|
|
${CP} -r ${FILESDIR}/hald-netbsd ${WRKSRC}/hald/netbsd
|
|
${CP} -r ${FILESDIR}/tools-netbsd ${WRKSRC}/tools/netbsd
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoreconf -vi
|
|
|
|
.include "../../devel/GConf/schemas.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../misc/pciids/buildlink3.mk"
|
|
.include "../../misc/usbids/buildlink3.mk"
|
|
.include "../../security/policykit/buildlink3.mk"
|
|
.include "../../sysutils/dbus/buildlink3.mk"
|
|
.include "../../sysutils/dbus-glib/buildlink3.mk"
|
|
.include "../../sysutils/hal-info/buildlink3.mk"
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|