aboutsummaryrefslogtreecommitdiffstats
path: root/audio/q-audio/Makefile
blob: aeb106399147ccc7988443793c8c69f445c2bb06 (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
# New ports collection makefile for:    q-audio
# Date created:     14 August 2003
# Whom:         ag@muwiinfa.geschichte.uni-mainz.de Albert Graef
#
# $FreeBSD$
#

PORTNAME=   audio
PORTVERSION=    1.2
PORTREVISION=   5
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= q-lang
PKGNAMEPREFIX=  q-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Q-Audio -- digital audio interface for the Q language

LIB_DEPENDS=    sndfile.1:${PORTSDIR}/audio/libsndfile \
        q.6:${PORTSDIR}/lang/q

DEPRECATED=     depends on deprecated port lang/q
EXPIRATION_DATE=    2008-12-24

USE_GNOME=  gnometarget
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-pthread="${PTHREAD_LIBS}"
CONFIGURE_ENV=  CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

DATADIR=    ${PREFIX}/share/q
EXAMPLESDIR=    ${PREFIX}/share/examples/q/audio

post-patch:
    @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
        ${GREP} -l "^examplesdir" | ${XARGS} ${REINPLACE_CMD} -e \
        "s;[(]pkgdatadir[)]/examples;(datadir)/examples/q;"
    @${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

.include <bsd.port.mk>