aboutsummaryrefslogtreecommitdiffstats
path: root/irc/anope/Makefile
blob: 5983f05cd1fe1064faa44565d025fefa4622ce6d (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
# Created by: mat
# $FreeBSD$

PORTNAME=   anope
PORTVERSION=    1.8.7
CATEGORIES= irc
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}-stable/Anope%20${PORTVERSION}

MAINTAINER= dhn@FreeBSD.org
COMMENT=    A set of IRC services for IRC networks

USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --libdir="${LOCALBASE}/lib" \
        --includedir="${LOCALBASE}/include" \
        --with-bindir=${PREFIX}/libexec/anope \
        --with-datadir=${DATADIR} \
        --with-rungroup=ircdru
USE_PERL5_BUILD=    yes

PORTDOCS=   BUGS COPYING DEFCON EVENTS \
        FAQ INSTALL IRCD MODULES MYSQL \
        NEWS PROXY README

USE_RC_SUBR=    anope

OPTIONS_DEFINE= MYSQL
OPTIONS_DEFAULT=    MYSQL

.include <bsd.port.pre.mk>

# XXX Add here other arch which needs -fPIC :-)
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+=    -fPIC
.endif

.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL=  yes
.else
CONFIGURE_ARGS+=    --without-mysql
.endif

pre-install:
    @${MKDIR} ${PREFIX}/libexec/anope
    @${MKDIR} ${DATADIR}

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/docs/,} ${DOCSDIR}/
.endif

.include <bsd.port.post.mk>