aboutsummaryrefslogtreecommitdiffstats
path: root/audio/songprint/Makefile
blob: d003c1fbb743175119efda5f9d219c2fae565a96 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:    Freetantrum SongPrint
# Date created:             Sat Dec  8 22:27:55 BRST 2001
# Whom:         Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   songprint
PORTVERSION=    1.2
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= freetantrum

MAINTAINER= lioux@FreeBSD.org
COMMENT=    Library for acoustic fingerprinting of music from Freetantrum (TM)

LIB_DEPENDS=    fftw.2:${PORTSDIR}/math/fftw

USE_GNOME=  glib12
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes

# turn off mp3 codec in reference code
.ifdef(WITHOUT_MP3)
CONFIGURE_ARGS+=    --disable-mp3
.endif
# turn off OggVorbis codec in reference code
.ifdef(WITHOUT_OGG)
CONFIGURE_ARGS+=    --disable-oggvorbis
.endif
# turn off wave codec in reference code
.ifdef(WITHOUT_WAV)
CONFIGURE_ARGS+=    --disable-wav
.endif

DOC_FILES=  AUTHORS COPYING NEWS README

pre-everything::
.ifndef(WITHOUT_MP3)
    @${ECHO_MSG} "You can disable MP3 audio file support by defining WITHOUT_MP3."
.endif
.ifndef(WITHOUT_OGG)
    @${ECHO_MSG} "You can disable OGG audio file support by defining WITHOUT_OGG."
.endif
.ifndef(WITHOUT_WAV)
    @${ECHO_MSG} "You can disable WAV audio file support by defining WITHOUT_WAV."
.endif

post-install:
.ifndef(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
    @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>