From owner-svn-ports-head@FreeBSD.ORG Thu Apr 30 23:53:04 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F3A23CE8; Thu, 30 Apr 2015 23:53:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E17201EDD; Thu, 30 Apr 2015 23:53:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3UNr3xX041042; Thu, 30 Apr 2015 23:53:03 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3UNr36Q041041; Thu, 30 Apr 2015 23:53:03 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201504302353.t3UNr36Q041041@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 30 Apr 2015 23:53:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385076 - head/math/hfst X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 23:53:04 -0000 Author: jbeich Date: Thu Apr 30 23:53:03 2015 New Revision: 385076 URL: https://svnweb.freebsd.org/changeset/ports/385076 Log: math/hfst: unbreak build on 8.x/9.x (flex 2.5.4) /bin/sh ../../../build-aux/ylwrap xre_lex.ll lex.yy.c xre_lex.cc -- flex --outfile=lex.yy.c flex: unknown flag '-'. For usage, try flex --help *** [xre_lex.cc] Error code 1 Reported by: pkg-fallout Approved by: portmgr blanket MFH: 2015Q2 Modified: head/math/hfst/Makefile Modified: head/math/hfst/Makefile ============================================================================== --- head/math/hfst/Makefile Thu Apr 30 23:29:35 2015 (r385075) +++ head/math/hfst/Makefile Thu Apr 30 23:53:03 2015 (r385076) @@ -19,4 +19,12 @@ CONFIGURE_ARGS= --with-readline --with-u SHEBANG_FILES= tools/src/hfst-tagger/src/hfst_tagger_compute_data_statistics.py USE_LDCONFIG= yes +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033 +BUILD_DEPENDS+= flex>2.5.33:${PORTSDIR}/textproc/flex +CONFIGURE_ENV+= LEX="${FLEX}" +FLEX= ${LOCALBASE}/bin/flex +.endif + .include