1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

audio/play: Unbreak on HEAD

- Add LICENSE NONE
- Pet portclippy
- Adopt port
This commit is contained in:
Muhammad Moinur Rahman 2023-05-13 00:50:55 +02:00
parent bbc32cc1f8
commit 864ec5fbb9

View File

@ -1,24 +1,33 @@
PORTNAME= play
PORTVERSION= 1.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= PORTS_JP
MAINTAINER= ports@FreeBSD.org
MAINTAINER= bofh@FreeBSD.org
COMMENT= Simple audio file player
CONFLICTS= sox
LICENSE= NONE
USES= uidfix
MAKE_ARGS= CFLAGS="${CFLAGS}" MANDIR="${PREFIX}/man/ja/man" BINDIR="${PREFIX}/bin"
# XXX PIE static libraries are not supported by base system /usr/share/mk
MAKE_ARGS+= WITHOUT_PIE=true
CONFLICTS= sox
PLIST_FILES= bin/play man/ja/man1/play.1.gz
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
CFLAGS+= -Wno-error=int-conversion
.endif
post-patch:
.for file in play_audio.c mixer_ctl.c encode_sun.c encode_riff.c speed.c
.for file in play_audio.c mixer_ctl.c encode_sun.c speed.c
@${REINPLACE_CMD} '/soundcard\.h/s,machine,sys,' ${WRKSRC}/${file}
.endfor
.include <bsd.port.mk>
.include <bsd.port.post.mk>