Switch to cmake
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
name: graphviz
|
name: graphviz
|
||||||
description: Open source graph visualization software
|
description: Open source graph visualization software
|
||||||
version: 13.1.2
|
version: 13.1.2
|
||||||
|
revision: 2
|
||||||
url: https://www.graphviz.org/
|
url: https://www.graphviz.org/
|
||||||
license: EPL-1.0
|
license: EPL-1.0
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gd","ghostscript","librsvg","libtool","libwebp","pango"]
|
depends: ["gd","ghostscript","librsvg","libtool","libwebp","pango"]
|
||||||
optional_depends: ["guile","lua","perl","python3","qt6-base","tcl","xterm"]
|
optional_depends: ["guile","lua","perl","python3","qt6-base","tcl","xterm"]
|
||||||
make_depends: ["guile","lua","perl","python3","qt6-base","swig"]
|
make_depends: ["cmake","guile","lua","perl","python3","qt6-base","swig"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,19 +15,19 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./autogen.sh
|
mkdir build
|
||||||
./configure --prefix=/usr --enable-python3=yes --disable-python --with-webp
|
cd build
|
||||||
|
|
||||||
# Set correct build date
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=ON ..
|
||||||
sed -i "s/0/$(date +%Y%m%d)/" builddate.h
|
cmake --build .
|
||||||
|
|
||||||
make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
cd build
|
||||||
|
|
||||||
|
DESTDIR="$BPM_OUTPUT" cmake --install .
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/graphviz/LICENSE
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/graphviz/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user