View | Details | Raw Unified | Return to bug 187860
Collapse All | Expand All

(-)ftp/proftpd/Makefile (-8 / +11 lines)
Lines 5-11 PORTNAME?= proftpd Link Here
5
.if !defined(DISTVERSION)
5
.if !defined(DISTVERSION)
6
PORTVERSION?=	${PROFTPD_VERSION}
6
PORTVERSION?=	${PROFTPD_VERSION}
7
.endif
7
.endif
8
PORTREVISION?=	3
8
PORTREVISION?=	4
9
CATEGORIES?=	ftp
9
CATEGORIES?=	ftp
10
MASTER_SITES=	ftp://ftp.proftpd.org/distrib/source/ \
10
MASTER_SITES=	ftp://ftp.proftpd.org/distrib/source/ \
11
		https://github.com/downloads/proftpd/proftpd.github.com/ \
11
		https://github.com/downloads/proftpd/proftpd.github.com/ \
Lines 85-91 PLIST_FILES+= libexec/proftpd/${m}.a \ Link Here
85
.endfor
85
.endfor
86
PLIST_DIRSTRY+=	libexec/proftpd
86
PLIST_DIRSTRY+=	libexec/proftpd
87
.else
87
.else
88
OPTIONS_DEFINE=	HTMLDOCS IPV6 NLS MEMCACHE PCRE
88
OPTIONS_DEFINE=	DOCS HTMLDOCS IPV6 NLS MEMCACHE PCRE
89
OPTIONS_DEFAULT=	IPV6 NLS PCRE
89
OPTIONS_DEFAULT=	IPV6 NLS PCRE
90
90
91
HTMLDOCS_DESC=		Include HTML documentation
91
HTMLDOCS_DESC=		Include HTML documentation
Lines 158-165 CONFIGURE_ARGS+= --disable-ipv6 Link Here
158
158
159
.if ${PORT_OPTIONS:MNLS}
159
.if ${PORT_OPTIONS:MNLS}
160
CONFIGURE_ARGS+=	--enable-nls
160
CONFIGURE_ARGS+=	--enable-nls
161
USES+=	gettext
161
USES+=		gettext iconv
162
PROFTPD_LIBS+=	-lintl -L${LOCALBASE}/lib
163
PLIST_SUB+=	NLS=""
162
PLIST_SUB+=	NLS=""
164
.else
163
.else
165
PLIST_SUB+=	NLS="@comment "
164
PLIST_SUB+=	NLS="@comment "
Lines 198-209 CONFIGURE_ARGS+= --with-shared=${_MODULE Link Here
198
CONFIGURE_ARGS+=	--with-includes=${INCLUDEDIRS}
197
CONFIGURE_ARGS+=	--with-includes=${INCLUDEDIRS}
199
CONFIGURE_ARGS+=	--with-libraries=${LIBDIRS}
198
CONFIGURE_ARGS+=	--with-libraries=${LIBDIRS}
200
199
200
.include <bsd.port.pre.mk>
201
201
.if !defined(_BUILDING_PROFTPD_MODULE)
202
.if !defined(_BUILDING_PROFTPD_MODULE)
202
203
203
post-patch:
204
.if empty(ICONV_LIB)
204
.if ${PORT_OPTIONS:MNLS}
205
CONFIGURE_ARGS+=	ac_cv_lib_iconv_iconv_open=no \
205
	@${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in
206
			ac_cv_lib_iconv_libiconv_open=no
206
.endif
207
.endif
208
209
post-patch:
207
	@${REINPLACE_CMD} -e 's|proftpd\.conf|proftpd.conf.sample|g' ${WRKSRC}/Makefile.in
210
	@${REINPLACE_CMD} -e 's|proftpd\.conf|proftpd.conf.sample|g' ${WRKSRC}/Makefile.in
208
211
209
pre-configure:
212
pre-configure:
Lines 247-250 post-install: Link Here
247
	@${INSTALL_MAN} ${WRKSRC}/src/ftpdctl.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
250
	@${INSTALL_MAN} ${WRKSRC}/src/ftpdctl.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
248
.endif #!defined(_BUILDING_PROFTPD_MODULE)
251
.endif #!defined(_BUILDING_PROFTPD_MODULE)
249
252
250
.include <bsd.port.mk>
253
.include <bsd.port.post.mk>

Return to bug 187860