freebsd-ports/audio/py-fmoo-audiotools/Makefile
Rene Ladan 3d9a815d9c all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.

Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.

finance/quickfix: mark BROKEN with PYTHON

libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp  -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
          ^~~~~~~~~~
1 warning and 1 error generated.

Reviewed by:	portmgr, vishwin, yuri
Differential Revision:	<https://reviews.freebsd.org/D40568>
2023-06-27 21:34:34 +02:00

84 lines
2.5 KiB
Makefile

PORTNAME= fmoo-audiotools
PORTVERSION= 3.0
PORTREVISION= 5
CATEGORIES= audio python
MASTER_SITES= SF/audiotools/audiotools
DISTNAME= audiotools-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ryu0@ymail.com
COMMENT= Collection of command line audio handling utilities
WWW= http://audiotools.sourceforge.net
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= pkgconfig python
USE_PYTHON= autoplist concurrent distutils
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}zita-audiotools
OPTIONS_DEFINE= CDIO LAME MPG123 OPUS TWOLAME VORBIS
OPTIONS_DEFAULT=CDIO MPG123 OPUS TWOLAME VORBIS
CDIO_LIB_DEPENDS= libcdio_cdda.so:sysutils/libcdio-paranoia
LAME_LIB_DEPENDS= libmp3lame.so:audio/lame
MPG123_LIB_DEPENDS= libmpg123.so:audio/mpg123
OPUS_LIB_DEPENDS= libopusfile.so:audio/opusfile
TWOLAME_LIB_DEPENDS= libtwolame.so:audio/twolame
VORBIS_LIB_DEPENDS= libvorbisenc.so:audio/libvorbis
CPPFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.options.mk>
post-configure:
@${ECHO_CMD} '[Libraries]' > ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'alsa: no' >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'libdvd-audio: no' >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'libpulse: no' >> ${WRKSRC}/setup.cfg
.if ${PORT_OPTIONS:MCDIO}
@${ECHO_CMD} 'libcdio_paranoia: probe' >> ${WRKSRC}/setup.cfg
.else
@${ECHO_CMD} 'libcdio_paranoia: no' >> ${WRKSRC}/setup.cfg
.endif
.if ${PORT_OPTIONS:MLAME}
@${ECHO_CMD} 'mp3lame: probe' >> ${WRKSRC}/setup.cfg
.else
@${ECHO_CMD} 'mp3lame: no' >> ${WRKSRC}/setup.cfg
.endif
.if ${PORT_OPTIONS:MMPG123}
@${ECHO_CMD} 'libmpg123: probe' >> ${WRKSRC}/setup.cfg
.else
@${ECHO_CMD} 'libmpg123: no' >> ${WRKSRC}/setup.cfg
.endif
.if ${PORT_OPTIONS:MOPUS}
@${ECHO_CMD} 'opus: probe' >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'opusfile: probe' >> ${WRKSRC}/setup.cfg
.else
@${ECHO_CMD} 'opus: no' >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'opusfile: no' >> ${WRKSRC}/setup.cfg
.endif
.if ${PORT_OPTIONS:MTWOLAME}
@${ECHO_CMD} 'twolame: probe' >> ${WRKSRC}/setup.cfg
.else
@${ECHO_CMD} 'twolame: no' >> ${WRKSRC}/setup.cfg
.endif
.if ${PORT_OPTIONS:MVORBIS}
@${ECHO_CMD} 'vorbisenc: probe' >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'vorbisfile: probe' >> ${WRKSRC}/setup.cfg
.else
@${ECHO_CMD} 'vorbisenc: no' >> ${WRKSRC}/setup.cfg
@${ECHO_CMD} 'vorbisfile: no' >> ${WRKSRC}/setup.cfg
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/audiotools/*.so
.include <bsd.port.mk>