I'm trying to build a package for webkitgtk-2.16.1
There is no configure file (cmake is used).
I can't find any documentation about the options available and where the installed files go to.
After some trials and errors I was able to built it successfully by running this
Code:
mkdir -p build || exit 1
cd build
cmake -DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \
-DLIBEXEC_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX/webkit2gtk-4.0 \
-DCMAKE_C_FLAGS="$SLKCFLAGS" -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DENABLE_MINIBROWSER=ON \
-DUSE_LIBHYPHEN=OFF -DENABLE_GEOLOCATION=OFF .. || exit 1
make -j$(nproc) || make || exit 1
There's no DESTDIR in Makefile
I figured that these directories are going to be used for the installation if I want to manually copy the files:
Code:
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/webkit2gtk-4.0
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig
mkdir -p $PKG/usr/libexec/webkit2gtk-4.0
mkdir -p $PKG/usr/include/webkitgtk-4.0
mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
I'm tempted to copy bin/* to $PKG/usr/bin, lib/* to $PKG/usr/lib$LIBDIRSUFFIX/webkit2gtk-4.0,
the *.pc files to the pkgconfig directory ...
I tried to change the INSTALLATION DESTINATION PATH in the different cmake_install.cmake (with a seder) but when I run
this starts building the objects again ...