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

PORTNAME=   libcoverart
PORTVERSION=    1.0.0
CATEGORIES= audio
MASTER_SITES=   https://cloud.github.com/downloads/metabrainz/${PORTNAME}/

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

LICENSE=    LGPL20

LIB_DEPENDS=    jansson:${PORTSDIR}/devel/jansson \
        neon:${PORTSDIR}/www/neon29

USES=       cmake
USE_LDCONFIG=   yes

MAKE_JOBS_SAFE= yes

# {PROJECT_VERSION} is not a variable nor a typo, just part of the directory name
WRKSRC=     ${WRKDIR}/${PORTNAME}-{PROJECT_VERSION}

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

.include <bsd.port.mk>