aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabber/Makefile
blob: 103c8bf9827131d43ffa52622f96e2145f8e2bb9 (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
# New ports collection makefile for:    jabber
# Date created:         5 February 2001
# Whom:             joe
#
# $FreeBSD$
#

PORTNAME=   jabber
PORTVERSION=    1.4.3.1
PORTEPOCH=  1
CATEGORIES= net-im
MASTER_SITES=   http://devel.amessage.info/jabberd14/
DISTNAME=   ${PORTNAME}d-${PORTVERSION}
DIST_SUBDIR=    jabber

MAINTAINER= ports@FreeBSD.org
COMMENT=    Online presence and instant messaging server

LIB_DEPENDS=    pth.20:${PORTSDIR}/devel/pth \
        expat.6:${PORTSDIR}/textproc/expat2

DEPRECATED= fd_set -- bitmap index overflow in multiple applications.
EXPIRATION_DATE=    2006-07-01

USE_RC_SUBR=    jabberd.sh
USE_BZIP2=  yes
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_OPENSSL=    yes

CONFIGURE_ARGS+=    --enable-ssl
.if defined(WITH_IPV6)
CONFIGURE_ARGS+=    --enable-ipv6
.endif

#JABDIR=        ${PORTNAME}-${PORTVERSION}
# Save this data for use later: jabber doesn't have an install target
# or a sane set of defaults.
post-patch:
    ${ECHO} "${WRKSRC}" > ${WRKSRC}/.wrksrc-freebsd
    ${ECHO} "${PREFIX}" > ${WRKSRC}/.prefix-freebsd
    ${ECHO} "${INSTALL_DATA}" > ${WRKSRC}/.install_data-freebsd
    ${ECHO} "${INSTALL_SCRIPT}" > ${WRKSRC}/.install_script-freebsd
    ${ECHO} "${INSTALL_PROGRAM}" > ${WRKSRC}/.install_program-freebsd

post-configure:
    ${REINPLACE_CMD} -e "s#-I\. -I\.\. #-I\. -I\.\. -I${LOCALBASE}/include #" \
             -e "s#-L/usr/lib#-L/usr/lib -L${LOCALBASE}/lib#" \
        ${WRKSRC}/platform-settings

post-install:
    PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>