blob: d5187d22684ff49964097ee8ad42016fc0e48b9a (
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
|
# Created by: Goran Tal
# $FreeBSD$
PORTNAME= dico
PORTVERSION= 2.2
PORTREVISION= 6
CATEGORIES= net textproc
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu-
MAINTAINER= goran.tal@gmail.com
COMMENT= Flexible modular implementation of DICT server
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl
USE_LDCONFIG= yes
USES= tar:xz gmake libtool
GNU_CONFIGURE= yes
CFLAGS+= -Wno-error=return-type
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --localstatedir=/var
OPTIONS_DEFINE= PYTHON GUILE PCRE GSASL PAM LDAP
OPTIONS_DEFAULT= PYTHON GUILE PCRE
GSASL_DESC= GSASL support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USES+= python
CONFIGURE_ENV+= PYTHON_CONFIG=${PYTHON_CMD}-config
PLIST_SUB+= PYTHON=""
.else
CONFIGURE_ARGS+=--without-python
PLIST_SUB+= PYTHON="@comment "
.endif
.if ${PORT_OPTIONS:MGUILE}
LIB_DEPENDS+= libguile.so:${PORTSDIR}/lang/guile
PLIST_SUB+= GUILE=""
.else
CONFIGURE_ARGS+=--without-guile
PLIST_SUB+= GUILE="@comment "
.endif
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
PLIST_SUB+= PCRE=""
.else
CONFIGURE_ARGS+=--without-pcre
PLIST_SUB+= PCRE="@comment "
.endif
.if ${PORT_OPTIONS:MGSASL}
LIB_DEPENDS+= libgsasl.so:${PORTSDIR}/security/gsasl
CONFIGURE_ARGS+=--with-gsasl
.else
CONFIGURE_ARGS+=--without-gsasl
.endif
.if ${PORT_OPTIONS:MPAM}
PLIST_SUB+= PAM=""
CONFIGURE_ARGS+=--enable-pam
.else
PLIST_SUB+= PAM="@comment "
CONFIGURE_ARGS+=--disable-pam
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
PLIST_SUB+= LDAP=""
.else
CONFIGURE_ARGS+=--without-ldap
PLIST_SUB+= LDAP="@comment "
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
INFO= dico
PLIST_SUB+= PORTVERSION=${PORTVERSION}
SUB_FILES+= pkg-message
USE_RC_SUBR= dicod
post-patch:
@${REINPLACE_CMD} 's/@bindir@/@sbindir@/' ${WRKSRC}/dicod/Makefile.in
@${REINPLACE_CMD} 's/(bindir)..dir/&\/gdico/' ${WRKSRC}/dico/Makefile.in
@${REINPLACE_CMD} '/INSTALL.*charset/d' ${WRKSRC}/gnu/Makefile.in
@${REINPLACE_CMD} 's/python-config/$${PYTHON_CONFIG}/' ${WRKSRC}/configure
post-install:
@${INSTALL_DATA} ${FILESDIR}/dicod.conf ${STAGEDIR}${PREFIX}/etc/dicod.conf.sample
.include <bsd.port.mk>
|