aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mixxx/Makefile
blob: 4fbcb861df747d4e3b66a2da49be23357635e7a7 (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
# New ports collection makefile for:    Mixxx
# Date created:         25 Jun 2004
# Whom:             Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#

PORTNAME=   mixxx
PORTVERSION=    1.4.2
PORTREVISION=   6
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A DJ mixing application

BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash \
        qmake:${PORTSDIR}/devel/qmake
LIB_DEPENDS=    samplerate:${PORTSDIR}/audio/libsamplerate \
        portaudio:${PORTSDIR}/audio/portaudio \
        mad:${PORTSDIR}/audio/libmad \
        id3tag:${PORTSDIR}/audio/libid3tag \
        vorbis:${PORTSDIR}/audio/libvorbis \
        sndfile:${PORTSDIR}/audio/libsndfile

USE_QT_VER= 3
HAS_CONFIGURE=  yes
USE_GL=     yes

CONFIGURE_WRKSRC=   ${WRKSRC}/src
BUILD_WRKSRC=   ${WRKSRC}/src
INSTALL_WRKSRC= ${WRKSRC}/src

CONFIGURE_ENV=  QMAKESPEC="freebsd-g++"
CONFIGURE_ARGS= --prefix=${PREFIX}
MAKE_ENV=   QTDIR="${QT_PREFIX}"

post-patch:
    @${REINPLACE_CMD} \
        -e 's|/bin/bash|${LOCALBASE}&| ; \
            s|$$QTDIR/bin/qmake|${LOCALBASE}/bin/qmake|g' \
        ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
    @${REINPLACE_CMD} \
        -e 's|system( ld|& -shared -L${LOCALBASE}/lib|' \
        ${CONFIGURE_WRKSRC}/check.qbas
    @${REINPLACE_CMD} \
        -e 's|/usr/local|${LOCALBASE}|; s|/opt|${LOCALBASE}|' \
        ${CONFIGURE_WRKSRC}/paths.qbas

.if !defined(NOPORTDOCS)
post-install:
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/Mixxx-Manual.pdf ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>