View | Details | Raw Unified | Return to bug 195803 | Differences between
and this patch

Collapse All | Expand All

(-)unbound/Makefile (-6 / +8 lines)
Lines 19-24 Link Here
19
CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE} --with-libexpat=${LOCALBASE}
19
CONFIGURE_ARGS+=--with-ssl=${OPENSSLBASE} --with-libexpat=${LOCALBASE}
20
USE_LDCONFIG=	yes
20
USE_LDCONFIG=	yes
21
21
22
CPPFLAGS+=	-I${LOCALBASE}/include
23
LDFLAGS+=	-L${LOCALBASE}/lib
24
22
USERS=		${PORTNAME}
25
USERS=		${PORTNAME}
23
GROUPS=		${PORTNAME}
26
GROUPS=		${PORTNAME}
24
27
Lines 47-55 Link Here
47
50
48
.if ${PORT_OPTIONS:MPYTHON}
51
.if ${PORT_OPTIONS:MPYTHON}
49
USES+=		python:2
52
USES+=		python:2
50
CONFIGURE_ARGS+=--with-pyunbound=yes --with-pythonmodule=yes LDFLAGS="-L${LOCALBASE}/lib"
53
CONFIGURE_ARGS+=--with-pyunbound=yes --with-pythonmodule=yes
51
BUILD_DEPENDS+=	swig:${PORTSDIR}/devel/swig13
54
BUILD_DEPENDS+=	swig:${PORTSDIR}/devel/swig13
52
STRIP_FILES+=	.libs/_unbound.so
53
PYTHON=
55
PYTHON=
54
.else
56
.else
55
PYTHON=		"@comment "
57
PYTHON=		"@comment "
Lines 81-90 Link Here
81
83
82
.if ${PORT_OPTIONS:MLIBEVENT}
84
.if ${PORT_OPTIONS:MLIBEVENT}
83
LIB_DEPENDS+=	libevent.so:${PORTSDIR}/devel/libevent2
85
LIB_DEPENDS+=	libevent.so:${PORTSDIR}/devel/libevent2
84
USES+=		pkgconfig
85
CONFIGURE_ARGS+=--with-libevent
86
CONFIGURE_ARGS+=--with-libevent
86
CPPFLAGS+=	$$(pkg-config libevent --cflags-only-I)
87
LDFLAGS+=	$$(pkg-config libevent --libs-only-L)
88
.else
87
.else
89
CONFIGURE_ARGS+=--with-libevent=no
88
CONFIGURE_ARGS+=--with-libevent=no
90
.endif
89
.endif
Lines 104-113 Link Here
104
	@for s in ${STRIP_FILES}; do ${STRIP_CMD} ${WRKSRC}/$$s; done
103
	@for s in ${STRIP_FILES}; do ${STRIP_CMD} ${WRKSRC}/$$s; done
105
104
106
post-install:
105
post-install:
106
.if ${PORT_OPTIONS:MPYTHON}
107
	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_unbound.so
108
.endif
107
.if ${PORT_OPTIONS:MMUNIN}
109
.if ${PORT_OPTIONS:MMUNIN}
108
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
110
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/munin/plugins
109
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/munin/plugins
111
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/munin/plugins
110
	@${INSTALL_SCRIPT} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_\
112
	${INSTALL_SCRIPT} ${WRKDIR}/unbound-${PORTVERSION}/contrib/unbound_munin_\
111
		${STAGEDIR}${PREFIX}/share/munin/plugins/
113
		${STAGEDIR}${PREFIX}/share/munin/plugins/
112
	@for i in ${MUNIN_ALL}; do\
114
	@for i in ${MUNIN_ALL}; do\
113
		${LN} -fs ${PREFIX}/share/munin/plugins/unbound_munin_\
115
		${LN} -fs ${PREFIX}/share/munin/plugins/unbound_munin_\

Return to bug 195803