Switch to cmake
This commit is contained in:
@@ -15,19 +15,19 @@ prepare() {
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --enable-python3=yes --disable-python --with-webp
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
# Set correct build date
|
||||
sed -i "s/0/$(date +%Y%m%d)/" builddate.h
|
||||
|
||||
make
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_INSTALL_RPATH=ON ..
|
||||
cmake --build .
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user