aboutsummaryrefslogtreecommitdiffstats
path: root/audio/trm/Makefile
blob: d2800ee9a84148e99ca4cc579a0f7835aa2652b3 (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
34
35
36
37
38
39
# New ports collection makefile for:    trm
# Date created:             5 May 2003
# Whom:                 Frerich Raabe <frerich.raabe@gmx.de>
#
# $FreeBSD$
#

PORTNAME=   trm
PORTVERSION=    0.2.1
PORTREVISION=   6
CATEGORIES= audio
MASTER_SITES=   ftp://ftp.musicbrainz.org/pub/musicbrainz/ \
        ftp://ftp.nl.musicbrainz.org/ \
        ftp://ftp.au.musicbrainz.org/pub/musicbrainz/

MAINTAINER= ports@FreeBSD.org
COMMENT=    TRM generator to generate acoustic fingerprints

BUILD_DEPENDS=  madplay:${PORTSDIR}/audio/madplay
LIB_DEPENDS=    id3-3.8.3:${PORTSDIR}/audio/id3lib \
        musicbrainz.4:${PORTSDIR}/audio/libmusicbrainz \
        vorbisfile.4:${PORTSDIR}/audio/libvorbis

USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

PLIST_FILES=    bin/trm

post-patch:
    @${REINPLACE_CMD} -e 's,-ldl,,g' ${WRKSRC}/configure

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/trm ${PREFIX}/bin

.include <bsd.port.mk>