Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2015 01:01:29 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385078 - head/math/hfst
Message-ID:  <201505010101.t4111Tfn075865@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri May  1 01:01:28 2015
New Revision: 385078
URL: https://svnweb.freebsd.org/changeset/ports/385078

Log:
  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

Modified:
  head/math/hfst/Makefile

Modified: head/math/hfst/Makefile
==============================================================================
--- head/math/hfst/Makefile	Fri May  1 00:03:27 2015	(r385077)
+++ head/math/hfst/Makefile	Fri May  1 01:01:28 2015	(r385078)
@@ -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}/${PORTNAM
 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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505010101.t4111Tfn075865>