freebsd-ports/audio/sndio/Makefile

39 lines
874 B
Makefile
Raw Normal View History

# Created by: Tobias Kortkamp <t@tobik.me>
# $FreeBSD$
PORTNAME= sndio
2020-07-12 11:30:28 +02:00
PORTVERSION= 1.7.0
CATEGORIES= audio
MASTER_SITES= http://www.sndio.org/
MAINTAINER= tobik@FreeBSD.org
COMMENT= Small audio and MIDI framework from the OpenBSD project
LICENSE= ISCL
USE_LDCONFIG= yes
USE_RC_SUBR= sndiod
2019-07-18 22:07:22 +02:00
HAS_CONFIGURE= yes
2020-07-12 11:30:28 +02:00
CONFIGURE_ARGS= --default-dev="rsnd/default" \
2019-07-18 22:07:22 +02:00
--prefix=${PREFIX}
# Parallel build leads to problems, but sndio is very quick to compile
# as is so not worth fixing
MAKE_JOBS_UNSAFE= yes
2019-07-18 22:07:22 +02:00
USERS= _sndio
GROUPS= _sndio
post-patch:
# Make sure sndiod can be started inside jails as root
@${REINPLACE_CMD} 's|err(1, "setpriority")|warn("setpriority")|' \
${WRKSRC}/sndiod/sndiod.c
post-install:
2020-07-12 11:30:28 +02:00
cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} \
aucat midicat sndioctl sndiod
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsndio.so.7.1
.include <bsd.port.mk>