29 lines
581 B
Python
29 lines
581 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("2.6.4")
|
|
description("The Fast Lexical Analyzer - scanner generator for lexing in C and C++")
|
|
source_url("https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("m4")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
f"--prefix={get_prefix('flex')}",
|
|
"--disable-nls",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
package("flex")
|
|
dep("semi-libc @same-arch")
|
|
cpp.use_auto_pack(["bin", "lib", "dev"])
|