0c6c28c32c
Ports using -lossaudio still call open(2) to get a file descriptor. They don't need it to change the volume, but expect various syscalls to succeed. Using /dev/null ensures programs will continue to work once /dev/mixer is disabled. "go ahead" landry@ and naddy@
36 lines
941 B
Makefile
36 lines
941 B
Makefile
# $OpenBSD: Makefile,v 1.27 2020/04/16 06:45:19 ratchov Exp $
|
|
|
|
# requires nvram(4) device
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
|
|
COMMENT= utility to use ibm thinkpad(tm) special keys
|
|
|
|
DISTNAME= tpb-0.6.4
|
|
REVISION= 8
|
|
CATEGORIES= sysutils
|
|
|
|
HOMEPAGE= http://www.nongnu.org/tpb/
|
|
MASTER_SITES= ${MASTER_SITE_SAVANNAH:=tpb/}
|
|
|
|
# gpl
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB= ICE SM X11 Xext Xinerama c iconv intl ossaudio pthread xosd>=4
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --with-xosd-config=${LOCALBASE}/bin/xosd-config
|
|
|
|
BUILD_DEPENDS= devel/gettext,-tools
|
|
LIB_DEPENDS= devel/gettext,-runtime \
|
|
x11/xosd
|
|
|
|
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>
|