aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-05-01 09:01:28 +0800
committerjbeich <jbeich@FreeBSD.org>2015-05-01 09:01:28 +0800
commit751ee0725bd737a15910102575d77f42d2472521 (patch)
tree157bcd1da5c32376ac8b870f77fe185490c38e87 /math
parent1aea85788a948171db32352244c8bee623f8f808 (diff)
downloadfreebsd-ports-gnome-751ee0725bd737a15910102575d77f42d2472521.tar.gz
freebsd-ports-gnome-751ee0725bd737a15910102575d77f42d2472521.tar.zst
freebsd-ports-gnome-751ee0725bd737a15910102575d77f42d2472521.zip
math/hfst: unbreak build on DragonFly and fix libxml2 usage
lang/gcc* by default search for includes and libraries under PREFIX/LOCALBASE unlike compilers from base. DragonFly has gcc 5.0 *in base*, so... checking for main in -lxml2... no checking for main in -lglib-2.0... no checking for library containing readline... no configure: error: readline test failed (--without-readline to disable) libxml2 while linked in isn't actually used due to the code being guarded by #if HAVE_LIBXML_TREE_H while checking for main in -lxml2... yes checking libxml/tree.h usability... no checking libxml/tree.h presence... no checking for libxml/tree.h... no Also, properly track readline dependency on 11.0C which was disabled since base r268461. Reported by: DPorts (bustage) Reported by: pkg-fallout (detection quirks) Approved by: portmgr blanket
Diffstat (limited to 'math')
-rw-r--r--math/hfst/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/math/hfst/Makefile b/math/hfst/Makefile
index 6a1614e999ca..b6f896910214 100644
--- a/math/hfst/Makefile
+++ b/math/hfst/Makefile
@@ -3,7 +3,7 @@
PORTNAME= hfst
PORTVERSION= 3.7.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}/${PORTNAME}
@@ -11,11 +11,13 @@ MASTER_SITE_SUBDIR=${PORTNAME}/${PORTNAME}
MAINTAINER= demon@FreeBSD.org
COMMENT= A toolkit for for processing natural language morphologies
-USES= pkgconfig shebangfix libtool python:2
+USES= libtool pkgconfig python:2 readline shebangfix
USE_GNOME= glib20 libxml2
USE_GCC= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-readline --with-unicode-handler=glib --enable-proc --enable-tagger --enable-xfst --enable-shuffle --enable-traverse
+CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2
+LDFLAGS+= -L${LOCALBASE}/lib
SHEBANG_FILES= tools/src/hfst-tagger/src/hfst_tagger_compute_data_statistics.py
USE_LDCONFIG= yes