aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/ayttm/Makefile
blob: 6775619a3ed7d0b8848d9d3ee4d70d4117d52845 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# New ports collection makefile for:    ayttm
# Date created:         1 Mar 2000
# Whom:             Jim Mock <jim@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   ayttm
PORTVERSION=    0.5.0.111
CATEGORIES= net-im
MASTER_SITES=   SF/ayttm/ayttm/${PORTVERSION:R}-${PORTVERSION:E}/
DISTNAME=   ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}

MAINTAINER= unixmania@gmail.com
COMMENT=    A "chat" program that combines AIM, ICQ, and Yahoo! Chat into one

LIB_DEPENDS=    audiofile.0:${PORTSDIR}/audio/libaudiofile \
        jasper.4:${PORTSDIR}/graphics/jasper \
        gpgme.18:${PORTSDIR}/security/gpgme \
        pspell.16:${PORTSDIR}/textproc/aspell

OPTIONS=    ARTS    "Enable aRts support"       off \
        ESOUND  "Enable EsounD support"     off \
        AIM_TOC "Include aim-toc service"   off \
        ICQ_TOC "Include icq-toc service"   off

USE_BZIP2=  yes
USE_XORG=   xpm xscrnsaver
USE_GNOME=  gnometarget gtk20
USE_OPENSSL=    yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libltdl:22 libtool:22
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-oscar --disable-workwizu --enable-smtp --enable-lj

MAN1=       ayttm.1

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if defined(WITH_ARTS)
LIB_DEPENDS+=   artsc:${PORTSDIR}/audio/arts
.else
CONFIGURE_ARGS+=    --disable-arts
.endif

.if defined(WITH_ESOUND)
USE_GNOME+= esound
.else
CONFIGURE_ARGS+=    --disable-esd
.endif

.if defined(WITH_AIM_TOC)
CONFIGURE_ARGS+=    --enable-aim-toc
PLIST_SUB+=     AIM_TOC=""
.else
PLIST_SUB+=     AIM_TOC="@comment "
.endif

.if defined(WITH_ICQ_TOC)
CONFIGURE_ARGS+=    --enable-icq-toc
PLIST_SUB+=     ICQ_TOC=""
.else
PLIST_SUB+=     ICQ_TOC="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|-L/usr/local/lib||g ; \
         s|-lpthread|${PTHREAD_LIBS}|g ; \
         /CFLAGS=/s|-pthread|${PTHREAD_CFLAGS}|g ; \
         s|-DGTK_DISABLE_DEPRECATED||g ; \
         /LIBS=/s|-L/usr/X11R6/lib||g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e \
        's|/gnome/apps/Internet|/applications|g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e \
        's|-L/usr/local/lib/pth/||g ; \
         s|-lproxy|../libproxy/libproxy.a|g' ${WRKSRC}/src/Makefile.in

.include <bsd.port.post.mk>