aboutsummaryrefslogtreecommitdiffstats
path: root/audio/libmusicbrainz5/Makefile
blob: 5a279394b33cecef3186d43b7b96470fa193042b (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
# $FreeBSD$

PORTNAME=   libmusicbrainz
PORTVERSION=    5.1.0
DISTVERSIONPREFIX=  release-
CATEGORIES= audio
PKGNAMESUFFIX=  5

MAINTAINER= jhale@FreeBSD.org
COMMENT=    MusicBrainz client library for audio metadata lookup

LICENSE=    LGPL21

LIB_DEPENDS=    libneon.so:${PORTSDIR}/www/neon

USES=       cmake iconv:build
USE_GNOME=  libxml2
USE_LDCONFIG=   yes

USE_GITHUB= yes
GH_ACCOUNT= metabrainz

post-patch:
    ${REINPLACE_CMD} -e '/pkgconfig/s|$${LIB_INSTALL_DIR}|libdata|' \
         ${WRKSRC}/CMakeLists.txt
    ${REINPLACE_CMD} -e 's|%%ICONV_PREFIX%%|${ICONV_PREFIX}|g' \
         ${WRKSRC}/src/CMakeLists.txt
    ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
         ${WRKSRC}/cmake/modules/*.cmake
    ${RM} -f ${WRKSRC}/cmake/modules/FindLibXml2.cmake

.include <bsd.port.mk>