aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/amsn/Makefile
blob: ac0945972b447d32e0fc9c616cd684e5ff8e836e (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:    amsn
# Date created:     01 Feb 2003
# Whom:         Andreas Klemm <andreas@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   amsn
PORTVERSION=    0.98.3
PORTREVISION=   1
CATEGORIES= net-im
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= sylvio@FreeBSD.org
COMMENT=    Alvano\'s MSN Messenger

LIB_DEPENDS=    Imlib.5:${PORTSDIR}/graphics/imlib \
        gstfarsight-0.10.0:${PORTSDIR}/net-im/farsight2 \
        jpeg.11:${PORTSDIR}/graphics/jpeg \
        png.6:${PORTSDIR}/graphics/png
BUILD_DEPENDS=  xdg-open:${PORTSDIR}/devel/xdg-utils \
        ${LOCALBASE}/lib/tls/tls.tcl:${PORTSDIR}/devel/tcltls \
        snack>=2.2.10_4:${PORTSDIR}/audio/snack
RUN_DEPENDS=    xdg-open:${PORTSDIR}/devel/xdg-utils \
        ${LOCALBASE}/lib/tls/tls.tcl:${PORTSDIR}/devel/tcltls \
        snack>=2.2.10_4:${PORTSDIR}/audio/snack

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_LDCONFIG=   yes
USE_XORG=   x11
USE_GETTEXT=    yes

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

USE_TCL=    86
USE_TK=     86
WITH_TCL_THREADS=   86
WITH_TK_THREADS=    86

GNU_CONFIGURE=  yes

CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
        --with-tk=${TK_LIBDIR}

CONFIGURE_ENV+= CFLAGS+="-I${LOCALBASE}/include" \
        LDFLAGS+="-L${LOCALBASE}/lib"

post-patch:
    @${FIND} ${WRKSRC} -name '*.c' -or -name '*.h' | ${XARGS} ${REINPLACE_CMD} -e 's|
||'
    @${FIND} ${WRKSRC} -name '*.bak' -delete

post-install:
    @${CHMOD} +x ${DATADIR}/amsn

.include <bsd.port.mk>