Compare commits
1
Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
2995f31261 |
@@ -0,0 +1,45 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("16.1.0")
|
||||
description("a library that provides automatic proxy configuration management")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitlab://gitlab.com/graphviz/graphviz#16.1.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("bison")
|
||||
builddep("flex")
|
||||
builddep("gzip")
|
||||
builddep("libexpat-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('graphviz-libs')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('graphviz-dev')}/include",
|
||||
f"-DCMAKE_INSTALL_BINDIR={get_prefix('graphviz')}/bin",
|
||||
"-DENABLE_LTDL=OFF",
|
||||
"-DWITH_EXPAT=ON",
|
||||
"-DWITH_GVEDIT=OFF",
|
||||
"-DWITH_SMYRNA=OFF",
|
||||
"-DWITH_ZLIB=OFF",
|
||||
"-DWITH_GDK=OFF",
|
||||
"-DMATH_LIB=-lc",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("graphviz-libs")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("graphviz")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("graphviz-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Reference in new issue
Block a user