freebsd-ports/audio/wavplay/Makefile
Brooks Davis 16a06ea402 Work around the lack of definition of union semun per POSIX.
When feasible do this by adding -D_WANT_SEMUN to CFLAGS or CXXFLAGS.
Where this fails due to ports not honoring C*FLAGS, patch using
__FreeBSD_version to enable the definition.

PR:		224300, 224443 (exp-run)
Approved by:	portmgr (antoine)
Exp-run:	antoine
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D14137
2018-03-02 22:34:53 +00:00

28 lines
551 B
Makefile

# Created by: greg
# $FreeBSD$
PORTNAME= wavplay
PORTVERSION= 1.4
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= SUNSITE/apps/sound/players/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Wav player and recorder
LICENSE= GPLv2 # only
LICENSE_FILE= ${WRKSRC}/COPYING
CFLAGS+= -D_WANT_SEMUN
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
INSTALL_TARGET= install PREFIX="${STAGEDIR}${PREFIX}"
PLIST_FILES= bin/wavplay bin/wavrec man/man1/${PORTNAME}.1.gz
post-patch:
@${REINPLACE_CMD} -e 's|u_long|u_int|g' ${WRKSRC}/*.c ${WRKSRC}/*.h
.include <bsd.port.mk>