2013-08-31 01:52:24 +02:00
|
|
|
# Created by: Mykola Dzham <freebsd@levsha.org.ua>
|
2009-07-28 19:47:44 +02:00
|
|
|
|
|
|
|
PORTNAME= apertium
|
2020-02-14 14:02:15 +01:00
|
|
|
PORTVERSION= 3.6.1
|
|
|
|
DISTVERSIONPREFIX= v
|
2009-07-28 19:47:44 +02:00
|
|
|
CATEGORIES= textproc
|
|
|
|
|
2019-11-10 07:30:15 +01:00
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
2014-08-03 16:15:08 +02:00
|
|
|
COMMENT= Toolbox to build shallow-transfer machine translation systems
|
2009-07-28 19:47:44 +02:00
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2016-03-15 16:29:18 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-08-21 13:46:24 +02:00
|
|
|
|
2020-03-18 03:20:03 +01:00
|
|
|
BROKEN_FreeBSD_11_powerpc64= fails to configure on powerpc64 elfv1: *** unable to locate pcrecpp library ***
|
|
|
|
BROKEN_FreeBSD_12_powerpc64= fails to configure on powerpc64 elfv1: *** unable to locate pcrecpp library ***
|
2019-11-10 07:03:55 +01:00
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
|
|
LIB_DEPENDS= liblttoolbox3.so:textproc/lttoolbox \
|
|
|
|
libpcre.so:devel/pcre
|
|
|
|
RUN_DEPENDS= bash:shells/bash
|
2011-01-27 14:41:20 +01:00
|
|
|
|
2020-02-14 14:02:15 +01:00
|
|
|
USES= autoreconf gmake gnome libtool localbase:ldflags pathfix pkgconfig python shebangfix
|
|
|
|
USE_GITHUB= yes
|
2014-08-21 13:46:24 +02:00
|
|
|
USE_GNOME= libxml2 libxslt
|
|
|
|
USE_LDCONFIG= yes
|
2020-02-14 14:02:15 +01:00
|
|
|
|
|
|
|
GH_ACCOUNT= unhammer:contrib
|
|
|
|
GH_PROJECT= apertium-get:contrib
|
|
|
|
GH_TAGNAME= 2ed405e:contrib
|
|
|
|
GH_SUBDIR= apertium/apertium-get:contrib
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2014-08-21 13:46:24 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2010-01-10 01:03:22 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2020-02-14 14:02:15 +01:00
|
|
|
SHEBANG_FILES= scripts/apertium-genvldix scripts/apertium-translate-to-default-equivalent.in \
|
|
|
|
scripts/apertium-metalrx scripts/apertium-genvdix apertium/apertium-get/apertium-get \
|
|
|
|
scripts/apertium-filter-dix.in scripts/apertium-filter-rules.in \
|
|
|
|
scripts/apertium-metalrx-to-lrx.in scripts/apertium-genvrdix
|
2010-01-10 01:03:22 +01:00
|
|
|
|
2014-08-21 13:46:24 +02:00
|
|
|
PLIST_SUB= APVER="${PORTVERSION:R}"
|
|
|
|
|
2012-02-18 22:21:35 +01:00
|
|
|
post-patch:
|
2016-03-15 16:29:18 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^AM_INIT_AUTOMAKE/s|(.*)|()| ; \
|
|
|
|
s| -ansi | | ; \
|
|
|
|
s| -march=.* | | ; \
|
|
|
|
s| -mtune=.* | | ; \
|
|
|
|
s| -O3 | |' \
|
|
|
|
${WRKSRC}/configure.ac
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^INCLUDES |AM_CPPFLAGS | ; \
|
|
|
|
s|-lapertium$$(.*)|libapertium3.la|' \
|
|
|
|
${WRKSRC}/apertium/Makefile.am
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|_C_|_H_|' \
|
|
|
|
${WRKSRC}/apertium/tmx_aligner_tool.h
|
2012-02-18 22:21:35 +01:00
|
|
|
|
2009-07-28 19:47:44 +02:00
|
|
|
.include <bsd.port.mk>
|