403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/textproc/libtranslate/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/textproc/libtranslate/Makefile
PORTNAME=	libtranslate
PORTVERSION=	0.99
PORTREVISION=	11
CATEGORIES=	textproc
MASTER_SITES=	SAVANNAH
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} # May append to this

PATCHFILES=	libtranslate-0.99-services.diff libtranslate-0.99-postmarker.diff
PATCH_SITES=	${MASTER_SITES}
PATCH_DIST_STRIP=-p1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Natural language translation library
WWW=		https://www.nongnu.org/libtranslate/

USES=		gettext gmake gnome libtool pathfix pkgconfig
USE_GNOME=	glib20 intlhack
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-html-dir=${PREFIX}/share/doc
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE=	GENERIC TALKFILTERS
OPTIONS_DEFAULT=	GENERIC TALKFILTERS
GENERIC_DESC=	generic module
TALKFILTERS_DESC=	talkfilters module

post-patch::
	@${REINPLACE_CMD} -e 's|libsoup-2.2|libsoup-2.4|g' ${WRKSRC}/configure

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGENERIC}
PLIST_SUB+=	GENERIC=""
USE_GNOME+=	libxml2
LIB_DEPENDS+=	libsoup-2.4.so:devel/libsoup
CPPFLAGS+=	-DHAVE_LIBSOUP24
DISTFILES+=	libtranslate-0.99-libsoup24.diff
EXTRACT_ONLY=	${DISTFILES:M*tar.*}
# This patching needs to happen AFTER the stock patches were applied:
post-patch::
	${SED} s,SOUP_MESSAGE_RESPONSE_,trans_SOUP_MESSAGE_RESPONSE_,g	\
	    ${DISTDIR}/libtranslate-0.99-libsoup24.diff \
		| ${PATCH} -d ${WRKSRC} -p1
.else
CONFIGURE_ARGS+=--disable-generic
PLIST_SUB+=	GENERIC="@comment "
.endif

.if ${PORT_OPTIONS:MTALKFILTERS}
PLIST_SUB+=	TALKFILTERS=""
LIB_DEPENDS+=	libtalkfilters.so:misc/talkfilters
.else
CONFIGURE_ARGS+=--disable-talkfilters
PLIST_SUB+=	TALKFILTERS="@comment "
.endif

.include <bsd.port.mk>

Youez - 2016 - github.com/yon3zu
LinuXploit