jcs cb9da7a10f when the laptop volume is muted, it's kind of hard to notice the
little flashing battery icon when the battery is about to die

so as long as we're talking to /dev/apm, store the battery level and
show when it changes ("Battery level changed to low")
2007-06-01 16:44:10 +00:00

40 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2007/06/01 16:44:10 jcs Exp $
# requires nvram(4) device
ONLY_FOR_ARCHS= i386
COMMENT= "utility to use ibm thinkpad(tm) special keys"
DISTNAME= tpb-0.6.4
PKGNAME= ${DISTNAME}p2
CATEGORIES= sysutils
HOMEPAGE= http://www.nongnu.org/tpb/
MASTER_SITES= http://savannah.nongnu.org/download/tpb/
MAINTAINER= joshua stein <jcs@openbsd.org>
# gpl
PERMIT_PACKAGE_CDROM= yes
PERMIT_PACKAGE_FTP= yes
PERMIT_DISTFILES_CDROM= yes
PERMIT_DISTFILES_FTP= yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-xosd-config=${LOCALBASE}/bin/xosd-config
USE_X11= yes
MODULES= gettext
LIB_DEPENDS= xosd.>=4::x11/xosd
WANTLIB= ICE SM X11 Xext Xinerama Xt c ossaudio pthread
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tpb
@${INSTALL_DATA} ${WRKDIST}/doc/tpbrc ${PREFIX}/share/examples/tpb/
@${INSTALL_DATA} ${WRKDIST}/doc/callback_example.sh \
${PREFIX}/share/examples/tpb/
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tpb
@${INSTALL_DATA} ${WRKDIST}/doc/nvram.txt ${PREFIX}/share/doc/tpb/
.include <bsd.port.mk>