diff --git a/textproc/libtranslate/Makefile b/textproc/libtranslate/Makefile index c773db74b561..b6bf9127dad2 100644 --- a/textproc/libtranslate/Makefile +++ b/textproc/libtranslate/Makefile @@ -1,60 +1,61 @@ PORTNAME= libtranslate PORTVERSION= 0.99 -PORTREVISION= 11 +PORTREVISION= 12 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 +GNU_CONFIGURE_MANPREFIX=${PREFIX}/share 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 .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 diff --git a/textproc/libtranslate/pkg-plist b/textproc/libtranslate/pkg-plist index fa2700e51039..069938973d71 100644 --- a/textproc/libtranslate/pkg-plist +++ b/textproc/libtranslate/pkg-plist @@ -1,40 +1,40 @@ bin/translate include/libtranslate/translate-common.h include/libtranslate/translate-pair.h include/libtranslate/translate-service.h include/libtranslate/translate-session.h include/libtranslate/translate-util.h include/libtranslate/translate.h lib/libtranslate.a lib/libtranslate.so lib/libtranslate.so.0 lib/libtranslate.so.0.0.0 %%GENERIC%%lib/libtranslate/modules/generic.so %%TALKFILTERS%%lib/libtranslate/modules/talkfilters.so libdata/pkgconfig/libtranslate.pc -man/man1/translate.1.gz -%%GENERIC%%man/man5/services.xml.5.gz +share/man/man1/translate.1.gz +%%GENERIC%%share/man/man5/services.xml.5.gz share/doc/libtranslate/TranslatePair.html share/doc/libtranslate/TranslateService.html share/doc/libtranslate/TranslateSession.html share/doc/libtranslate/api-reference.html share/doc/libtranslate/ch01s02.html share/doc/libtranslate/ch02s02.html share/doc/libtranslate/compiling-modules.html share/doc/libtranslate/home.png share/doc/libtranslate/index.html share/doc/libtranslate/index.sgml share/doc/libtranslate/ix01.html share/doc/libtranslate/left.png share/doc/libtranslate/libtranslate-translate-common.html share/doc/libtranslate/libtranslate-translate-util.html share/doc/libtranslate/libtranslate-translate.html share/doc/libtranslate/libtranslate.devhelp share/doc/libtranslate/overview.html share/doc/libtranslate/rfc3066-builtin.html share/doc/libtranslate/right.png share/doc/libtranslate/tutorials.html share/doc/libtranslate/up.png %%GENERIC%%share/libtranslate/services.dtd %%GENERIC%%share/libtranslate/services.xml share/locale/fr/LC_MESSAGES/libtranslate.mo