summaryrefslogtreecommitdiffhomepage
path: root/vars
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-05-12 22:10:38 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-05-12 22:10:38 +0100
commitb9a71579b82cd54980ff641af504bc8ad96473b1 (patch)
treee8dc1e7f2044995415ae2e21e67a60da7fe9a13b /vars
parentb7c3731e3e4104b444a0061ba4505b9bbb533906 (diff)
downloadmidipix_build-b9a71579b82cd54980ff641af504bc8ad96473b1.tar.bz2
midipix_build-b9a71579b82cd54980ff641af504bc8ad96473b1.tar.xz
Implements CMake support.
etc/README.md: updated. groups/{000.host_tools,010.host_deps,200.native_packages,800.minipix}.group:${*_SOFORT_NATIVE_{C,CXX,LD}FLAGS}: merged into midipix.env. groups/010.host_deps.group:{clang,cmake_host,libzip,llvm}_host:${PKG_CMAKE_ARGS_EXTRA}: added. groups/010.host_deps.group:cmake_host:${PKG_CONFIGURE_TYPE}: configure w/ cmake. groups/010.host_deps.group:cmake_host:${PKG_INSTALL_FILES}: added. groups/010.host_deps.group:expat_host:${PKG_CONFIGURE_TYPE}: configure w/ autotools. groups/010.host_deps.group:python[23]_host:${PKG_{ENV_VARS_EXTRA,SOFORT_FORCE}}: removed. groups/010.host_deps.group:python[23]_host:${PKG_CONFIGURE_TYPE}: configure w/ sofort. groups/010.host_deps.group:python[23]_host:${PKG_SOFORT_NATIVE_CC}: removed. groups/221.native_packages_dev.group:python[23]:${PKG_SOFORT_FORCE}: removed. groups/221.native_packages_dev.group:python[23]:${PKG_CONFIGURE_TYPE}: configure w/ sofort. groups/231.native_packages_etc.group:{cmake,minizip,openjpeg,tdnf,xpdf}:${PKG_CMAKE_ARGS_EXTRA}: added. groups/231.native_packages_etc.group:cmake:${PKG_CONFIGURE_ARGS}: removed. groups/231.native_packages_etc.group:utf8proc:${PKG_IN_TREE}: don't build in-tree. groups/251.native_packages_lib.group:lib{jpeg_turbo,solv,ssh,zip}:${PKG_CMAKE_ARGS_EXTRA}: added. midipix.env:${DEFAULT_BUILD_VARS}: adds ${PKG_{CMAKE{,_{ARGS{,_EXTRA},LISTFILE}},CONFIGURE_TYPE},SOFORT_NATIVE_{C{C,XX},{C,CXX,LD}FLAGS,LD}}. midipix.env:${DEFAULT_BUILD_VARS}: removes ${PKG_SOFORT_FORCE}. midipix.env:${DEFAULT_{CMAKE_LISTFILE,{CROSS,HOST,NATIVE}_CMAKE}}: added. subr.rtl/rtl_complex.subr:rtl_export_vars(): ignore values during -u. subr.rtl/rtl_platform.subr:rtl_set_vars(): updated. subr/ex_pkg_env.subr:exp_pkg_env_set(): always convert ${PKG_{AR,CC,CXX,PKG_CONFIG,RANLIB}} to absolute pathnames. subr/ex_pkg_env.subr:ex_pkg_env_sofort(): merged into subr/pkg_configure.subr. subr/ex_pkg_restart.subr:ex_pkg_process_restart_spec(): remove extraneous echo. subr/pkg_configure.subr:pkgp_configure_{cmake,sofort}(): initial implementation. subr/pkg_configure.subr:pkg_configure(): attempt configuration using autotools, sofort, or cmake. subr/pkg_configure_autotools.subr: skip if ${PKG_CONFIGURE_TYPE} is set and not "autotools". subr/pkg_fetch_clean.subr: fix typo. vars/{clang_host,cmake{,_host},lib{jpeg_turbo,solv,ssh,zip{,_host}},llvm_host,lolcode,minizip,openjpeg,tdnf,xpdf}.vars: deleted.
Diffstat (limited to 'vars')
-rw-r--r--vars/clang_host.vars27
-rw-r--r--vars/cmake.vars63
l---------vars/cmake_host.vars1
-rw-r--r--vars/libjpeg_turbo.vars24
-rw-r--r--vars/libsolv.vars41
-rw-r--r--vars/libssh.vars27
-rw-r--r--vars/libzip.vars63
l---------vars/libzip_host.vars1
-rw-r--r--vars/llvm_host.vars28
-rw-r--r--vars/lolcode.vars19
-rw-r--r--vars/minizip.vars31
-rw-r--r--vars/openjpeg.vars33
-rw-r--r--vars/tdnf.vars31
-rw-r--r--vars/xpdf.vars25
14 files changed, 0 insertions, 414 deletions
diff --git a/vars/clang_host.vars b/vars/clang_host.vars
deleted file mode 100644
index b9909276..00000000
--- a/vars/clang_host.vars
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_clang_host_configure() {
- if ! rtl_fileop rm "../cfe-${PKG_VERSION}-host" \
- || ! rtl_fileop mkdir "../cfe-${PKG_VERSION}-host" \
- || ! rtl_fileop cd "../cfe-${PKG_VERSION}-host" \
- || ! rtl_log_msg verbose "Bootstrapping clang_host..." \
- || ! ("${PREFIX}/bin/cmake" \
- "../cfe-${PKG_VERSION}.src" \
- -DCLANG_BUILD_EXAMPLES:BOOL=OFF \
- -DCLANG_INCLUDE_DOCS:BOOL=OFF \
- -DCLANG_INCLUDE_TESTS:BOOL=OFF \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_VERBOSE_MAKEFILE=NO \
- -DLIBCLANG_BUILD_STATIC:BOOL=ON \
- -DLLVM_PREFIX="${PKG_PREFIX}" \
- -G "Unix Makefiles" \
- -Wno-dev) \
- || ! rtl_log_msg verbose "Finished bootstrapping clang_host."; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/cmake.vars b/vars/cmake.vars
deleted file mode 100644
index df190732..00000000
--- a/vars/cmake.vars
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_cmake_configure() {
- if ! rtl_fileop cp "${PREFIX}/share/cmake-${PKG_VERSION%.*}/Modules/Platform/BSDOS.cmake" \
- "${PREFIX}/share/cmake-${PKG_VERSION%.*}/Modules/Platform/Midipix.cmake" \
- || ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- || ! cmake -DBZIP2_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.a" \
- -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
- -DCMAKE_INSTALL_PREFIX= \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DCMAKE_SYSTEM_NAME=Midipix \
- -DCMAKE_USE_SYSTEM_BZIP2=ON \
- -DCMAKE_USE_SYSTEM_CURL=ON \
- -DCMAKE_USE_SYSTEM_EXPAT=OFF \
- -DCMAKE_USE_SYSTEM_LIBARCHIVE=ON \
- -DCMAKE_USE_SYSTEM_LIBUV=ON \
- -DCMAKE_USE_SYSTEM_ZLIB=ON \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
- -DCURL_INCLUDE_DIR="${PKG_PREFIX}/include/curl" \
- -DCURL_LIBRARY="${PKG_PREFIX}/lib/libcurl.lib.a" \
- -DCURSES_NCURSES_LIBRARY="${PKG_PREFIX}/lib/libncurses.lib.a" \
- -DKWSYS_LFS_WORKS=YES \
- -DLibArchive_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLibArchive_LIBRARY="${PKG_PREFIX}/lib/libarchive.lib.a" \
- -DLIBLZMA_HAS_AUTO_DECODER=YES \
- -DLIBLZMA_HAS_EASY_ENCODER=YES \
- -DLIBLZMA_HAS_LZMA_PRESET=YES \
- -DLIBLZMA_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLIBLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a" \
- -DLibUV_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLibUV_LIBRARY="${PKG_PREFIX}/lib/libuv.1.0.0.lib.a" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a" \
- "../cmake-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-pkg_cmake_install_make_pre() {
- if [ ! -e cmake_install.cmake.orig ]; then
- sed -i.orig '/^\s*set(CMAKE_INSTALL_PREFIX ".*")$/s/".*"/""/' \
- cmake_install.cmake;
- fi;
-};
-
-pkg_cmake_host_configure() {
- if ! rtl_fileop rm config.cache \
- || ! cmake -DCURSES_NCURSES_LIBRARY="${PKG_PREFIX}/lib/libncurses.so" "../cmake-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-pkg_cmake_host_install_make_pre() {
- pkg_cmake_install_make_pre;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/cmake_host.vars b/vars/cmake_host.vars
deleted file mode 120000
index e380d15f..00000000
--- a/vars/cmake_host.vars
+++ /dev/null
@@ -1 +0,0 @@
-cmake.vars \ No newline at end of file
diff --git a/vars/libjpeg_turbo.vars b/vars/libjpeg_turbo.vars
deleted file mode 100644
index e89baf78..00000000
--- a/vars/libjpeg_turbo.vars
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_libjpeg_turbo_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_ASM_NASM_COMPILER="${PREFIX}/bin/${PKG_TARGET}-nasm" \
- -DCMAKE_ASM_NASM_OBJECT_FORMAT="win64" \
- -DCMAKE_BUILD_TYPE="Debug" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DWITH_JPEG8="ON" \
- -DWITH_SIMD="OFF" \
- "../libjpeg-turbo-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/libsolv.vars b/vars/libsolv.vars
deleted file mode 100644
index da68e758..00000000
--- a/vars/libsolv.vars
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_libsolv_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \
- -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DENABLE_APPDATA:BOOL="ON" \
- -DENABLE_BZIP2_COMPRESSION:BOOL="ON" \
- -DENABLE_COMPLEX_DEPS:BOOL="ON" \
- -DENABLE_COMPS:BOOL="ON" \
- -DENABLE_LZMA_COMPRESSION:BOOL="ON" \
- -DENABLE_RPMDB:BOOL="ON" \
- -DENABLE_RPMDB_BYRPMHEADER:BOOL="ON" \
- -DENABLE_RPMDB_LIBRPM:BOOL="ON" \
- -DENABLE_RPMMD:BOOL="ON" \
- -DENABLE_RPMPKG_LIBRPM:BOOL="ON" \
- -DFEDORA="1" \
- -DLIBXML2_LIBRARIES="${PKG_PREFIX}/lib/libxml2.lib.a" \
- -DLZMA_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a" \
- -DRPMIO_LIBRARY="${PKG_PREFIX}/lib/librpmio.so" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a" \
- -DWITH_LIBXML2:BOOL="ON" \
- "../libsolv-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/libssh.vars b/vars/libssh.vars
deleted file mode 100644
index 58837728..00000000
--- a/vars/libssh.vars
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_libssh_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.lib.a" \
- -DWITH_SYMBOL_VERSIONING=OFF \
- -DWITH_GCRYPT=ON \
- -DWITH_EXAMPLES=OFF \
- -DPKG_CONFIG_EXECUTABLE=${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config \
- "../libssh-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/libzip.vars b/vars/libzip.vars
deleted file mode 100644
index 5f6b4fef..00000000
--- a/vars/libzip.vars
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_libzip_configure() {
- local _build_type="";
- case "${BUILD_KIND}" in
- debug) _build_type="Debug"; ;;
- release) _build_type="Release"; ;;
- *) exit 1; ;;
- esac;
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" LDFLAGS="-lbz2" PREFIX="" \
- cmake -DBZIP2_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \
- -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_BUILD_TYPE="${_build_type}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lfts" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
- -DCMAKE_INSTALL_PREFIX= \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DCMAKE_SYSTEM_NAME="Midipix" \
- -DENABLE_GNUTLS=:BOOL=ON \
- -DENABLE_MBEDTLS=:BOOL=OFF \
- -DGNUTLS_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DGNUTLS_LIBRARY="${PKG_PREFIX}/lib/libgnutls.lib.a" \
- -DLIBLZMA_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLIBLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a" \
- -DNETTLE_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DNETTLE_LIBRARY="${PKG_PREFIX}/lib/libnettle.lib.a" \
- -DOPENSSL_CRYPTO_LIBRARY="${PKG_PREFIX}/lib/libcrypto.lib.a" \
- -DOPENSSL_SSL_LIBRARY="${PKG_PREFIX}/lib/libssl.lib.a" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a" \
- "../libzip-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-pkg_libzip_host_configure() {
- local _build_type="";
- case "${BUILD_KIND}" in
- debug) _build_type="Debug"; ;;
- release) _build_type="Release"; ;;
- *) exit 1; ;;
- esac;
- if ! rtl_fileop rm config.cache \
- || ! env LDFLAGS="-L${PKG_PREFIX}/lib -lbz2 -lfts -lssl" PREFIX="" \
- cmake -DCMAKE_BUILD_TYPE="${_build_type}" \
- -DCMAKE_C_STANDARD_LIBRARIES="-lbz2 -lcrypto -lfts" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
- -DCMAKE_INSTALL_PREFIX= \
- -DENABLE_GNUTLS=:BOOL=OFF \
- -DENABLE_MBEDTLS=:BOOL=OFF \
- "../libzip-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/libzip_host.vars b/vars/libzip_host.vars
deleted file mode 120000
index 8582365b..00000000
--- a/vars/libzip_host.vars
+++ /dev/null
@@ -1 +0,0 @@
-libzip.vars \ No newline at end of file
diff --git a/vars/llvm_host.vars b/vars/llvm_host.vars
deleted file mode 100644
index 82903743..00000000
--- a/vars/llvm_host.vars
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_llvm_host_configure() {
- if ! rtl_fileop rm "../llvm-${PKG_VERSION}-host" \
- || ! rtl_fileop mkdir "../llvm-${PKG_VERSION}-host" \
- || ! rtl_fileop cd "../llvm-${PKG_VERSION}-host" \
- || ! rtl_log_msg verbose "Bootstrapping llvm_host..." \
- || ! ("${PREFIX}/bin/cmake" \
- "../llvm-${PKG_VERSION}.src" \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_VERBOSE_MAKEFILE=NO \
- -DLLVM_BUILD_DOCS=NO \
- -DLLVM_BUILD_EXAMPLES=NO \
- -DLLVM_BUILD_TESTS=NO \
- -DLLVM_ENABLE_SPHINX=NO \
- -DLLVM_TARGETS_TO_BUILD=X86 \
- -DSPHINX_WARNINGS_AS_ERRORS=NO \
- -G "Unix Makefiles" \
- -Wno-dev) \
- || ! rtl_log_msg verbose "Finished bootstrapping llvm_host."; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/lolcode.vars b/vars/lolcode.vars
deleted file mode 100644
index f610063c..00000000
--- a/vars/lolcode.vars
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_lolcode_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_INSTALL_PREFIX="" \
- "../lci"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/minizip.vars b/vars/minizip.vars
deleted file mode 100644
index c6ac3f0f..00000000
--- a/vars/minizip.vars
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_minizip_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_BUILD_TYPE="Debug" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_CXX}" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DPKG_CONFIG_EXECUTABLE="${PREFIX}/bin/${DEFAULT_TARGET}-pkg-config" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libz.lib.a" \
- -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \
- -DMZ_OPENSSL=ON \
- -DMZ_ZSTD=OFF \
- -DMZ_LZMA=ON \
- -DMZ_LIBBSD=OFF \
- -DBUILD_SHARED_LIBS=ON \
- -DMZ_BUILD_TEST=ON \
- "../${PKG_SUBDIR}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/openjpeg.vars b/vars/openjpeg.vars
deleted file mode 100644
index cfca5e25..00000000
--- a/vars/openjpeg.vars
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_openjpeg_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DLCMS2_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DLCMS2_LIBRARY="${PKG_PREFIX}/lib/liblcms2.lib.a" \
- -DPNG_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libpng.lib.a" \
- -DPNG_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libpng.lib.a" \
- -DPNG_PNG_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DTIFF_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DTIFF_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libtiff.lib.a" \
- -DTIFF_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libtiff.lib.a" \
- -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
- -DZLIB_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libz.a" \
- -DZLIB_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libz.a" \
- "../openjpeg-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/tdnf.vars b/vars/tdnf.vars
deleted file mode 100644
index c95150c4..00000000
--- a/vars/tdnf.vars
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_tdnf_configure() {
- local _rc=0;
- rtl_export_vars \
- PKG_CONFIG "${PKG_PKG_CONFIG:-}" \
- PKG_CONFIG_LIBDIR "${PKG_PKG_CONFIG_LIBDIR:-}";
- if ! rtl_fileop rm config.cache \
- || ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DOPENSSL_LIBRARY="${PKG_PREFIX}/lib/libcrypto.so" \
- "../tdnf-${PKG_VERSION}"; then
- _rc=1;
- fi;
- rtl_export_vars -u \
- PKG_CONFIG "${PKG_PKG_CONFIG:-}" \
- PKG_CONFIG_LIBDIR "${PKG_PKG_CONFIG_LIBDIR:-}";
- return "${_rc}";
-};
-
-# vim:filetype=sh textwidth=0
diff --git a/vars/xpdf.vars b/vars/xpdf.vars
deleted file mode 100644
index 209aab95..00000000
--- a/vars/xpdf.vars
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# set +o errexit -o noglob -o nounset is assumed.
-#
-
-pkg_xpdf_configure() {
- if ! rtl_fileop rm config.cache \
- || ! env CXX_FLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
- cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
- -DCMAKE_BUILD_TYPE="Debug" \
- -DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
- -DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_CXX}" \
- -DCMAKE_SYSROOT=${PREFIX_NATIVE} \
- -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
- -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
- -DCMAKE_INSTALL_PREFIX="" \
- -DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
- -DFREETYPE_LIBRARY=${PREFIX_NATIVE}/lib/libfreetype.lib.a \
- -DFREETYPE_INCLUDE_DIR_ft2build={PREFIX_NATIVE}/include/ft2build \
- -DFONTCONFIG_LIBRARY=${PREFIX_NATIVE}/lib/libfontconfig.lib.a \
- "../xpdf-${PKG_VERSION}"; then
- return 1;
- fi;
-};
-
-# vim:filetype=sh textwidth=0