mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
flex: add recipe for version 2.6.0.
This commit is contained in:
62
sys-devel/flex/flex-2.6.0.recipe
Normal file
62
sys-devel/flex/flex-2.6.0.recipe
Normal file
@@ -0,0 +1,62 @@
|
||||
SUMMARY="A tool for generating scanners"
|
||||
DESCRIPTION="Flex is a fast lexical analyser generator. It is a tool for \
|
||||
generating programs that perform pattern-matching on text."
|
||||
HOMEPAGE="http://flex.sourceforge.net/"
|
||||
COPYRIGHT="
|
||||
2001-2007 The Flex Project
|
||||
1990, 1997 The Regents of the University of California
|
||||
"
|
||||
LICENSE="Flex"
|
||||
SOURCE_URI="http://sourceforge.net/projects/flex/files/flex-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="24e611ef5a4703a191012f80c1027dc9d12555183ce0ecd46f3636e587e9b8e9"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
|
||||
|
||||
PATCHES="flex-$portVersion.patchset"
|
||||
|
||||
PROVIDES="
|
||||
flex = $portVersion compat >= 2.5
|
||||
cmd:flex = $portVersion compat >= 2.5
|
||||
cmd:flex++ = $portVersion compat >= 2.5
|
||||
devel:libfl = 2.0.0 compat >= 2
|
||||
devel:libfl_pic = 2.0.0 compat >= 2
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:m4
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc
|
||||
cmd:gettext
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:makeinfo
|
||||
cmd:find
|
||||
cmd:yacc
|
||||
cmd:help2man
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -f aclocal.m4
|
||||
autoreconf -fi
|
||||
runConfigure ./configure \
|
||||
--disable-rpath --with-gnu-ld --disable-shared \
|
||||
--disable-dependency-tracking --disable-nls
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# prepare develop/lib
|
||||
prepareInstalledDevelLibs libfl libfl_pic
|
||||
}
|
||||
22
sys-devel/flex/patches/flex-2.6.0.patchset
Normal file
22
sys-devel/flex/patches/flex-2.6.0.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 6b332b47b7ef89b67ce92ffa64240e7b277eb7e3 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Mon, 14 Apr 2014 17:00:54 +0000
|
||||
Subject: initial haiku patch
|
||||
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 4c519dc..cd1dfea 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -49,7 +49,7 @@ AC_PROG_LN_S
|
||||
AC_PROG_AWK
|
||||
AC_PROG_INSTALL
|
||||
|
||||
-AC_PATH_PROG(BISON, bison,bison)
|
||||
+AC_CHECK_PROG(BISON, bison,bison)
|
||||
AC_PATH_PROG(HELP2MAN, help2man, help2man)
|
||||
|
||||
# Check for a m4 that supports -P
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user