aboutsummaryrefslogtreecommitdiffstats
path: root/audio/smasher/Makefile
blob: 649c64374303e8864ad45c166567845ccd5f4e1e (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
# New ports collection makefile for:    smasher
# Date created:     22 June 2009
# Whom:         chris@officialunix.com
#
# $FreeBSD$
#

PORTNAME=   smasher
PORTVERSION=    1.1.0
CATEGORIES= audio
MASTER_SITES=   SF \
        http://distfiles.officialunix.com/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-source

MAINTAINER= chris@officialunix.com
COMMENT=    Cross platform audio loop slicer

LIB_DEPENDS=    sndfile.1:${PORTSDIR}/audio/libsndfile \
        mad.2:${PORTSDIR}/audio/libmad

ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON=  At the momment does not build on AMD64 ia64

GNU_CONFIGURE=  yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
CONFIGURE_ARGS= --with-wx-config=${LOCALBASE}/bin/wxgtk2-2.8-config
CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib" \
        CPPFLAGS="-I${LOCALBASE}/include"

USE_XORG=   x11
USE_LDCONFIG=   yes
USE_GMAKE=  yes
USE_WX=     yes

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/share/pixmaps|${LOCALBASE}/share/pixmaps|g' \
        ${WRKSRC}/src/Makefile.am ${WRKSRC}/src/Makefile.in

    @${REINPLACE_CMD} -e 's|/usr/share/applications|${LOCALBASE}/share/applications|g' \
        ${WRKSRC}/src/Makefile.am ${WRKSRC}/src/Makefile.in

.include <bsd.port.pre.mk>

.if ${OSVERSION} <= 700000
BROKEN=     does not compile
.endif

.include <bsd.port.post.mk>