1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00

- Strip library

- Fix whitespace
This commit is contained in:
Dmitry Marakasov 2015-06-18 21:24:53 +00:00
parent 9e5d6f9bcb
commit 3309a3ed4f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390079

View File

@ -1,27 +1,28 @@
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$
PORTNAME= libtranslate
PORTVERSION= 0.99
PORTREVISION= 8
CATEGORIES= textproc
MASTER_SITES= SAVANNAH
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # May append to this
PORTNAME= libtranslate
PORTVERSION= 0.99
PORTREVISION= 9
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
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
MAINTAINER= ports@FreeBSD.org
COMMENT= Natural language translation library
USES= gettext gmake 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
USES= gettext gmake 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
@ -34,28 +35,28 @@ post-patch::
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGENERIC}
PLIST_SUB+= GENERIC=""
USE_GNOME+= libxml2
LIB_DEPENDS+= libsoup-2.4.so:${PORTSDIR}/devel/libsoup
CPPFLAGS+= -DHAVE_LIBSOUP24
DISTFILES+= libtranslate-0.99-libsoup24.diff
EXTRACT_ONLY= ${DISTFILES:M*tar.*}
PLIST_SUB+= GENERIC=""
USE_GNOME+= libxml2
LIB_DEPENDS+= libsoup-2.4.so:${PORTSDIR}/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 "
CONFIGURE_ARGS+=--disable-generic
PLIST_SUB+= GENERIC="@comment "
.endif
.if ${PORT_OPTIONS:MTALKFILTERS}
PLIST_SUB+= TALKFILTERS=""
LIB_DEPENDS+= libtalkfilters.so:${PORTSDIR}/misc/talkfilters
PLIST_SUB+= TALKFILTERS=""
LIB_DEPENDS+= libtalkfilters.so:${PORTSDIR}/misc/talkfilters
.else
CONFIGURE_ARGS+= --disable-talkfilters
PLIST_SUB+= TALKFILTERS="@comment "
CONFIGURE_ARGS+=--disable-talkfilters
PLIST_SUB+= TALKFILTERS="@comment "
.endif
.include <bsd.port.mk>