aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp3stat/Makefile
blob: 689895030e3181e6543ec0479db6e38777a166d1 (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
# ex:ts=8
# Ports collection makefile for:    mp3stat
# Date created:         Mar 20, 2002
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   mp3stat
PORTVERSION=    2.5.10
CATEGORIES= audio
MASTER_SITES=   https://signal-lost.homeip.net/files/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Read information about mp3s and oggs bitstream

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_GNOME=  gtk20
USE_GMAKE=  yes
MAKE_ARGS=  CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"

PORTDOCS=   README
PLIST_FILES=    bin/mp3stat

.if defined(WITHOUT_VORBIS)
MAKE_ARGS+= VORBIS=""
.else
LIB_DEPENDS+=   vorbis.3:${PORTSDIR}/audio/libvorbis
CXXFLAGS+=  -I${LOCALBASE}/include -L${LOCALBASE}/lib
.endif

pre-everything::
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want to compile without Ogg/Vorbis support,"
    @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_VORBIS=yes\""
    @${ECHO_MSG}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mp3stat ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>