aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/ayttm/Makefile
blob: ff51086cf298126279189152845d59b1d9f28467 (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
# New ports collection makefile for:    everybuddy
# Date created:         1 Mar 2000
# Whom:             Jim Mock <jim@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   everybuddy
PORTVERSION=    0.4.3
CATEGORIES= net
MASTER_SITES=   http://www.everybuddy.com/files/

MAINTAINER= jim@FreeBSD.org

LIB_DEPENDS=    audiofile.0:${PORTSDIR}/audio/libaudiofile \
        iconv.3:${PORTSDIR}/converters/libiconv

USE_X_PREFIX=   yes
USE_GTK=    yes
WANT_ESOUND=    yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
USE_BISON=  yes
USE_LIBTOOL=    yes
LIBTOOLFLAGS=   # none
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib -laudiofile"
CONFIGURE_ARGS= --disable-arts

MAN1=       everybuddy.1

.include <bsd.port.pre.mk>

.if defined(HAVE_ESOUND)
USE_ESOUND= yes
.else
CONFIGURE_ARGS+=    --disable-esd
.endif

pre-patch:
    @${REINPLACE_CMD} -e \
        's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
         s|-lpthreads|${PTHREAD_LIBS:S/"//g}|g; \
         s|-D_REENTRANT -Wall -g|-D_REENTRANT ${PTHREAD_CFLAGS}|g' \
            ${WRKSRC}/configure
    @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|^Utilitiesdir|#Utilitiesdir|g; \
         s|^Utilities_DATA|#Utilities_DATA|g; \
         s|[(]datadir[)]/everybuddy|(prefix)/lib/everybuddy|g; \
         s|-module|-module -avoid-version|g'

.include <bsd.port.post.mk>