sthen 25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00

83 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2018/10/24 14:27:58 sthen Exp $
COMMENT = automatic audio files tagger using the MusicBrainz database
MODPY_EGG_VERSION = 0.16
DISTNAME = picard-${MODPY_EGG_VERSION}
REVISION = 5
CATEGORIES = audio
HOMEPAGE = http://musicbrainz.org/doc/Picard_Tagger
MAINTAINER = Amaury Gauthier <amaury.gauthier@etu.unilim.fr>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += ${MODPY_WANTLIB}
WANTLIB += avcodec avformat m ofa pthread ${COMPILER_LIBCXX}
MASTER_SITES = http://ftp.musicbrainz.org/pub/musicbrainz/picard/ \
ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/
COMPILER = base-clang ports-gcc base-gcc
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
# --single-version-externally-managed option used by MODPY doesn't exist
MODPY_DISTUTILS_INSTALL=install --prefix=${LOCALBASE} --root=${DESTDIR}
# msgfmt
BUILD_DEPENDS = devel/gettext-tools
LIB_DEPENDS = audio/libofa \
graphics/ffmpeg
RUN_DEPENDS = x11/py-qt4>=4.1 \
audio/py-mutagen>=1.9 \
devel/desktop-file-utils
TEST_DEPENDS = ${BASE_PKGPATH}
PLUGINS_DIRS = lastfm \
lastfmplus \
replaygain
PLUGINS = classicdiscnumber.py \
coverart.py \
cuesheet.py \
discnumber.py \
featartist.py \
featartistsintitles.py \
lastfm/__init__.py \
lastfm/options_lastfm.ui \
lastfm/ui_options_lastfm.py \
lastfmplus/__init__.py \
lastfmplus/ui_options_lastfm.py \
no_release.py \
open_in_gui.py \
release_type.py \
replaygain/__init__.py \
replaygain/options_replaygain.ui \
replaygain/ui_options_replaygain.py \
swapprefix.py \
titlecase.py \
tracks2clipboard.py
pre-configure:
${SUBST_CMD} ${WRKSRC}/setup.py
post-install:
.for dir in ${PLUGINS_DIRS}
${INSTALL_DATA_DIR} ${PREFIX}/share/picard/${dir}
.endfor
.for file in ${PLUGINS}
${INSTALL_DATA} ${WRKSRC}/contrib/plugins/${file} ${PREFIX}/share/picard/${file}
.endfor
do-test:
cd ${WRKSRC} && ${MODPY_BIN} ./setup.py build_ext -i test
.include <bsd.port.mk>