aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libcoverart/Makefile
blob: b1993ec2b38e1205202e0775151ebafdf7de9b2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $FreeBSD$

PORTNAME=   libcoverart
PORTVERSION=    1.0.0
PORTREVISION=   5
CATEGORIES= audio
MASTER_SITES=   https://github.com/metabrainz/${PORTNAME}/releases/download/release-${PORTVERSION}/

MAINTAINER= jhale@FreeBSD.org
COMMENT=    Library for accessing the MusicBrainz cover art archive

LICENSE=    LGPL20

LIB_DEPENDS=    libjansson.so:devel/jansson \
        libneon.so:www/neon

USES=       compiler:c11 cmake:insource pathfix
USE_CSTD=   c99
USE_CXXSTD= c++98
USE_LDCONFIG=   yes

CXXFLAGS+=  -Wno-implicit-fallthrough

.if exists(/usr/lib/libstdc++.so)
CXXFLAGS+=  -Wno-unused-function -Wno-class-memaccess -Wno-catch-value
CFLAGS+=    -Wno-format-overflow
.endif

post-patch:
    ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
         ${WRKSRC}/cmake/modules/*.cmake

.include <bsd.port.mk>