aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabber-jud/Makefile
blob: b27a6e362823b718f20c1fdb9122eb449e182ed4 (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
# New ports collection makefile for:    jabber-jud
# Date created:         14 Apr 2002
# Whom:             Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   jud
PORTVERSION=    0.5
PORTREVISION=   1
CATEGORIES= net-im
MASTER_SITES=   http://jud.jabberstudio.org/ \
        http://freebsd.unixfreunde.de/sources/
PKGNAMEPREFIX=  jabber-
DIST_SUBDIR=    jabber

MAINTAINER= mm@FreeBSD.org
COMMENT=    Jabber User Directory module

LIB_DEPENDS=    jabberd.1:${PORTSDIR}/net-im/jabber

WRKSRC=     ${WRKDIR}/${PORTNAME}-ansi-c

USE_GMAKE=  yes

CFLAGS+=    -I${LOCALBASE}/include -I${LOCALBASE}/include/jabber \
        -I${LOCALBASE}/include/pth

MAKE_ARGS+= MCFLAGS="-shared" \
        LDFLAGS="-L${LOCALBASE}/lib/pth -L${LOCALBASE}/lib/jabber"

SUB_FILES+= pkg-message README.jabberd14
DOCSDIR=    ${TARGETDIR}/share/doc/${PKGNAMEPREFIX}${PORTNAME}

.if !defined(NOPORTDOCS)
PKGMESSAGE= ${WRKDIR}/pkg-message
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/jud.so ${TARGETDIR}/lib/jabber/

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKDIR}/README.jabberd14 ${DOCSDIR}
    @${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>