aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/gaim/Makefile
blob: 6cf53359ceb5a9dcc05e133600248e0f366c709d (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# New ports collection makefile for:    gaim
# Date created:         26 Mar 1999
# Whom:             Jim Mock <jim@FreeBSD.org>
# $FreeBSD$
#

PORTNAME=   gaim
PORTVERSION=    0.71
CATEGORIES?=    net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER?=    marcus@FreeBSD.org
COMMENT=    Gtk+-2.0 open-source 'clone' of AOL's Instant Messenger client

USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_REINPLACE=  yes
USE_GNOME=  gnomeprefix gnomehack gtk20
USE_PERL5=  yes
USE_BZIP2=  yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-static=yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

MAN1=       gaim.1 gaim-remote.1

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/lib/libnss3.so)
WITH_NSS=   yes
.endif

.if exists(${LOCALBASE}/lib/libgnutls.so)
WITH_GNUTLS=    yes
.endif

.if defined(WITH_GNUTLS)
LIB_DEPENDS+=       gnutls:${PORTSDIR}/security/gnutls
.else
CONFIGURE_ARGS+=    --disable-gnutls
.endif

.if defined(WITH_NSS)
LIB_DEPENDS+=       nss3:${PORTSDIR}/security/nss
CONFIGURE_ARGS+=    --with-nspr-includes=${LOCALBASE}/include/nspr \
            --with-nspr-libs=${LOCALBASE}/lib \
            --with-nss-includes=${LOCALBASE}/include/nss/nss \
            --with-nss-libs=${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=    --enable-nss=no
.endif

.if ${PERL_LEVEL} < 500800
CONFIGURE_ARGS+=    --disable-perl
PLIST_SUB+=     PERL:="@comment "
.else
PLIST_SUB+=     PERL:=""
.endif

.ifndef(WITHOUT_GTKSPELL)
LIB_DEPENDS+=   gtkspell.0:${PORTSDIR}/textproc/gtkspell2
.else
CONFIGURE_ARGS+=    --disable-gtkspell
.endif

.if defined(TCL_VER)
_TCL_DVER=  ${TCL_VER:S/.//}
_TCL_VER=   ${_TCL_DVER:C/(.)/\1./}
.if ${_TCL_VER} != 8.3
.   error Currently GAIM can only use Tcl/Tk 8.3
.endif
LIB_DEPENDS+=  tk${_TCL_DVER}:${PORTSDIR}/x11-toolkits/tk${_TCL_DVER}
CONFIGURE_ARGS+=--with-tclconfig=${LOCALBASE}/lib/tcl${_TCL_VER} \
        --with-tkconfig=${LOCALBASE}/lib/tk${_TCL_VER}
CFLAGS+=    -I${LOCALBASE}/include/tk${_TCL_VER} -I${LOCALBASE}/include/tcl${_TCL_VER}
PLIST_SUB+= TCL:=""
.else
PLIST_SUB+= TCL:="@comment "
.endif

.ifndef(WITHOUT_AUDIO)
LIB_DEPENDS+=   ao.3:${PORTSDIR}/audio/libao \
        audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+=    --disable-audio
.endif

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} "Gaim has the following tunable option(s):"
    @${ECHO_MSG} "  WITHOUT_GTKSPELL    Turns off spell checking"
    @${ECHO_MSG} "  WITHOUT_AUDIO       Disable audio support"
    @${ECHO_MSG} "  WITH_GNUTLS     Enable TLS encryption support"
    @${ECHO_MSG} "  WITH_NSS        Enable Mozilla NSS encryption support"
    @${ECHO_MSG} "  TCL_VER         Use Tcl/Tk (version)"
    @${ECHO_MSG} ""

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthreads|${PTHREAD_LIBS:S/"//g}|g' \
        -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
        -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \
        -e 's|TCL_VERSION found but 8.3 required|TCL_VERSION found but ${_TCL_VER} required|g' \
        -e 's|TCL_MINOR_VERSION" -ne 3|TCL_MINOR_VERSION" -ne ${_TCL_VER:E}|' \
            ${WRKSRC}/configure

.include <bsd.port.post.mk>
td>2009-05-086-12/+10 * Update to 1.3.0rnoland2009-05-082-5/+4 * Update to 1.4.1rnoland2009-05-083-6/+4 * Update to 2.2.2rnoland2009-05-082-7/+4 * Chase xserver update with driver port bumps.rnoland2009-05-0863-38/+63 * Update to 1.1.0rnoland2009-04-264-5/+20 * Update to 1.2.5.20090412, which is same version of xf86-video-radeonhd 1.2.5.nork2009-04-123-29/+12 * Update the nouveau snapshot and remove BROKEN now that libdrm hasrnoland2009-04-112-10/+34 * - Fix build with xorg-server 1.6pav2009-04-102-1/+7 * Update to 1.2.5rnoland2009-04-102-5/+4 * Update to 6.12.2rnoland2009-04-084-10/+8 * Restore native PS/2 support.jkim2009-04-082-11/+18 * Update to 2.1.13rnoland2009-04-084-50/+4 * Chase the Xorg server update and bump ports that depend on it.rnoland2009-04-0447-14/+47 * Update Xorg server to 1.6.0rnoland2009-04-0435-46/+71 * Keep the code from turning off the FPU - cures excessive traps thatmarius2009-04-012-0/+27 * As xf86-video-intel is marked only for amd64 and i386 also onlymarius2009-04-011-1/+4 * Update to 6.12.1rnoland2009-03-194-8/+8 * - Mark BROKEN: does not compilepav2009-03-172-0/+4 * Update to 6.12.0rnoland2009-03-144-8/+8 * The nv driver was somewhat brain-damaged, it was detecting most allrnoland2009-03-023-1/+46 * Update to 2009.03.01 based 1.2.4.nork2009-03-012-8/+7 * nouveau is an X.Org Foundation and Freedesktop.org project which wasamdmi32009-02-215-0/+36 * Update to 6.11.0rnoland2009-02-194-8/+8 * - Replace open(2)/close(2) pairs with stat(2). Closing mouse device hasjkim2009-02-052-28/+62 * - Partially back out the previous attempt to fix PS/2 protocol support.jkim2009-02-032-19/+21 * Take a crack at resolving the mouse blocking issues.rnoland2009-01-292-5/+13 * - Update to 0.8.2-2pgollucci2009-01-274-21/+47 * Bump PORTREVISION for x11 drivers that weren't updated.rnoland2009-01-2511-6/+22 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-24124-676/+482 * - Update to 0.8.2miwi2009-01-184-35/+96 * - No need to define USE_REINPLACE these dayspav2009-01-091-1/+0 * Bye bye xf86-video-i810. Everybody should have switched to xf86-video-intelflz2009-01-066-44/+2 * Update distinfo.flz2008-12-231-3/+3 * - Update xf86-video-radeonhd to 1.2.4. [1]flz2008-12-231-4/+4 * Update x11-drivers/xf86-video-intel to 2.4.3.flz2008-12-234-8/+8 * Mark as broken on sparc64.linimon2008-12-101-1/+7 * o Fix typo (CONFLICT -> CONFLICTS).nork2008-12-082-2/+19 * - Fix missing shared object issuepgj2008-11-213-4/+14 * Add an X.Org driver, a kernel module, and a script to configure X.Orgpgj2008-11-187-0/+523 * - Remove xf86-input-wacom to be re-added it with a different namepgj2008-11-187-522/+0 * Add an X.Org driver, a kernel module, and a script to configure X.Orgpgj2008-11-177-0/+522 * Update to 2008.11.14.nork2008-11-142-4/+4 * Update to 1.4.9rnoland2008-11-113-156/+5 * Fix pkg-plist.nork2008-11-031-0/+1 * Fix build error [1] and cosmetic change.nork2008-11-031-3/+4 * o Update to 2008.11.03 based 1.2.3.nork2008-11-032-5/+5 * Update to 0.10.0rnoland2008-10-243-17/+5 * Add xf86-video-radeonhd-devel 1.2.1.20080906, supports newnork2008-09-284-13/+29 * - Limit to i386 and amd64gahr2008-09-161-0/+3 * - Mark BROKEN: does not compilepav2008-09-151-0/+2 * - Update to 2.1.12miwi2008-09-052-4/+4 * Update x11-drivers/xf86-video-intel to 2.4.2.flz2008-09-024-8/+8 * - Update to 2.1.11miwi2008-09-012-4/+4 * - Update to 0.2.903miwi2008-09-012-11/+5 * - Update to 0.2.902miwi2008-08-262-5/+4 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-2/+0 * Update x11-drivers/xf86-video-intel to 2.4.0.flz2008-07-314-8/+8 * Update to 2.3.2.delphij2008-07-236-10/+14 * Update to 2.1.10.delphij2008-07-162-4/+4 * Update x11-drivers/xf86-video-nv to 2.1.9.flz2008-06-282-5/+4 * Update x11-drivers/xf86-video-ati to 6.9.0 and separate mach64 and r128jkim2008-06-2816-21/+80 * - Fix x11-drivers/synaptics after latest xorg-server update.flz2008-06-183-14/+9 * - Add conflicts with xf86-video-sis-intel.chinsan2008-06-141-0/+2 * Add xf86-video-sis-intel 300407, x.Org sis display driver provided bychinsan2008-06-1415-0/+351 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-0667-34/+67 * - Update 1.2.1miwi2008-04-206-10/+52 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-202-10/+7 * - Update to 1.2.0pav2008-04-114-8/+8 * Update x11-drivers/xf86-video-intel to 2.2.1.flz2008-04-014-8/+8 * Update x11-drivers/xf86-video-nv to 2.1.8.flz2008-03-312-4/+4 * - Mark BROKEN on 5.Xpav2008-03-151-1/+7 * Add patch to fix possibly insecure mouse behavior when switching VT.flz2008-03-132-0/+39 * - Make the IGNORE message even more explicit when there areflz2008-03-131-1/+1 * Add patch to fix mouse pointer coordinates.flz2008-03-132-0/+29 * Remove support for XFree8-4.flz2008-03-082-24/+0 * Fix pkg-plist.flz2008-03-074-4/+6 * Update x11-drivers/xf86-video-ati to 6.8.0.flz2008-03-064-8/+8 * Remove quirk for openchrome as it now installs openchrome_drv.so insteadflz2008-03-061-1/+1 * Oops, bump PORTREVISION to remake on amd64.nork2008-02-201-1/+1 * o Fix invalid synaptics issue with x11-drivers/xf86-input-voidnork2008-02-202-5/+10 * Update xf86-video-ati to 6.7.197.flz2008-02-074-8/+8 * Update xf86-video-nv to 2.1.7.flz2008-02-072-4/+4 * Add glproto to USE_XORG.flz2008-01-191-1/+1 * - Update port to 0.2.901.flz2008-01-116-62/+29 * Rollback to xf86-video-mga 1.4.7 (and patches from master as of today).flz2008-01-023-4/+156 * Rollback to xf86-video-intel 2.1.1 before anyone notices.flz2008-01-024-8/+8 * Update x11-drivers/xf86-video-radeonhd to 1.1.0.flz2008-01-024-8/+8 * Update x11-drivers/xf86-video-intel to 2.2.0.flz2008-01-024-8/+8 * Turn off via video driver for sparc64. It doesn't make sense, and currentlylinimon2007-12-251-1/+3 * Update x11-drivers/xf86-video-ati to 6.7.196.flz2007-12-134-8/+8 * Update x11-drivers/xf86-video-i810 to 1.7.4.flz2007-12-122-5/+4 * - Make intel driver default rather than i810.flz2007-12-121-3/+5 * Update to 1.0.0 which adds, among other things, working MacBook Pro support.marcus2007-12-034-12/+12 * Unbreak pthread-related issues on 5.xade2007-11-272-7/+7 * Mark as broken on 5.x: fails to find pthread.h.linimon2007-11-251-1/+1 * Mark as BROKEN on 5.x: fails to compile.linimon2007-11-221-1/+7 * Update to 2.1.6.delphij2007-10-262-4/+4 * Re-add patch-at_scancode.c and patch-bsd_kbd.c, which prior tomarius2007-10-253-0/+65 * This package contains the X.Org xf86-video-radeonhd driver.miwi2007-10-239-0/+59 * Update xf86-input-mouse to 1.2.3.flz2007-10-152-4/+4 * Update xf86-video-ati to 6.7.195.flz2007-10-104-8/+8 * - Don't add sunffb video driver to VIDEO_OFF on !sparc64 as itflz2007-10-101-9/+23 * Update xf86-video-mga to 1.9.100.flz2007-10-102-4/+4 * Update xf86-video-nv to 2.1.5.flz2007-10-102-5/+4 * Update xf86-video-ati to 6.7.194.flz2007-10-104-8/+8 * Update xf86-input-vmmouse to 12.4.3.flz2007-10-102-5/+4 * Update xf86-video-vmware to 10.15.2.flz2007-10-102-4/+4 * Add xf86-video-openchrome 0.2.6, an alternative driver for VIA chipsets.flz2007-10-106-0/+81 * Fix CATEGORIES after repocopy from x11-serverserwin2007-10-071-1/+1 * Change to new x11-drivers category.nork2007-10-061-0/+1 * Update distinfo. Previous checksum was for non-official vmmouse release.flz2007-09-212-3/+4 * Update x11-drivers/xf86-video-driver to 6.7.193.flz2007-09-204-8/+8 * Bump PORTREVISION after xorg-server ABI change.flz2007-09-1528-6/+28 * - Update X.org ports to 7.3.flz2007-09-1451-111/+184 * Take over maintainership.flz2007-09-141-1/+1 * [maintainer update] x11-drivers/xf86-input-vmmouse: update to 12.4.2edwin2007-09-122-4/+4 * - Update to 12.4.1miwi2007-09-073-5/+4 * Add intel driver to VIDEO_OFF and check for conflict with i810.flz2007-08-291-2/+6 * Style fix (xextproto listed twice).flz2007-08-291-1/+1 * Add sunffb to VIDEO_ON on sparc64.flz2007-08-291-2/+11 * - Don't depend on xlibs.flz2007-08-291-63/+53 * Update x11-drivers/xf86-video-nv to 2.1.3.flz2007-08-242-4/+4 * Update x11-drivers/xf86-video-nv to 2.1.2.flz2007-07-193-6/+4 * xf86-video-intel: update to 2.1.0anholt2007-07-066-8/+12 * This package contains the X.Org xf86-input-vmmouse driver.miwi2007-06-045-0/+29 * Add conflicts with xf86-video-intel.lesi2007-06-011-0/+2 * Add xf86-video-intel driver that obsoletes xf86-video-i810 one. It willlesi2007-06-019-0/+95 * - Welcome X.org 7.2 \o/.flz2007-05-20245-12/+2109 * Update to 0.14.6.nork2006-08-133-41/+50 * Add a description of CorePointer, and Cosmetic change.nork2006-03-191-2/+7 * Oops, fix typo.nork2006-03-191-1/+1 * Fix up some parameters and messages.nork2006-03-191-10/+23 * o Refrect my environment values.nork2006-03-193-7/+13 * o Rename .o to .so. [1]nork2006-03-193-10/+16