diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2018-04-28 18:23:19 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2018-04-28 18:23:19 +0000 |
commit | 1acd9778fdf3be16c42bfebedb52f74e24385fe9 (patch) | |
tree | 3a9ff87ce898d55996de341711cf56050fe48f03 /vars | |
parent | 375c38d8f8a38642a965c4195fa26039bc3aad9a (diff) | |
download | midipix_build-1acd9778fdf3be16c42bfebedb52f74e24385fe9.tar.bz2 midipix_build-1acd9778fdf3be16c42bfebedb52f74e24385fe9.tar.xz |
vars/build.vars:native_packages_deps: adds libsolv v0.6.34 (via Redfoxmoon.)
vars/libsolv.vars:pkg_configure(): added (via Redfoxmoon.)
Diffstat (limited to 'vars')
-rw-r--r-- | vars/build.vars | 5 | ||||
-rw-r--r-- | vars/libsolv.vars | 37 |
2 files changed, 41 insertions, 1 deletions
diff --git a/vars/build.vars b/vars/build.vars index a9cbd646..ff57f140 100644 --- a/vars/build.vars +++ b/vars/build.vars @@ -347,7 +347,7 @@ expat libxml2 alsa_lib apr apr_util bzip2 libdmtx libressl curl libz lmdb libpng libjpeg_turbo tiff giflib libffi gdbm geoip pcre glib gzip libarchive libatomic_ops musl_compat libbsd libpipeline libevent libfetch libogg libvorbis libgpg_error libassuan libfirm libgcrypt libksba libudns lua ncurses ncursestw ncursesw libnettle gnutls libreadline npth -popt file rpm shared_mime_info sqlite3 w32api w32lib xz cmake qrencode util_linux"; +popt file rpm libsolv shared_mime_info sqlite3 w32api w32lib xz cmake qrencode util_linux"; NATIVE_PACKAGES_DEPS_PREFIX="${PREFIX_NATIVE}"; NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python"; : ${PKG_EXPAT_SHA256SUM:=d9e50ff2d19b3538bd2127902a89987474e1a4db8e43a66a4d1a712ab9a504ff}; @@ -526,6 +526,9 @@ NATIVE_PACKAGES_DEPS_PYTHON="${PREFIX}/bin/python"; : ${PKG_RPM_VERSION:=4.14.1}; : ${PKG_RPM_URL:=http://ftp.rpm.org/releases/rpm-${PKG_RPM_VERSION%.*}.x/rpm-${PKG_RPM_VERSION}.tar.bz2}; : ${PKG_RPM_CONFIGURE_ARGS_EXTRA:="--with-lua --enable-ndb --enable-lmdb --enable-bdb=no --with-crypto=openssl --with-vendor=midipix"}; +: ${PKG_LIBSOLV_SHA256SUM:=153eb48814ffdbac396c98126037cf45c07e2b7087a61f86eb18a75ea1ab134b}; +: ${PKG_LIBSOLV_VERSION:=0.6.34}; +: ${PKG_LIBSOLV_URL:=https://github.com/openSUSE/libsolv/archive/${PKG_LIBSOLV_VERSION}.tar.gz}; : ${PKG_SHARED_MIME_INFO_SHA256SUM:=2af55ef1a0319805b74ab40d331a3962c905477d76c086f49e34dc96363589e9}; : ${PKG_SHARED_MIME_INFO_VERSION:=1.8}; : ${PKG_SHARED_MIME_INFO_URL:=http://freedesktop.org/~hadess/shared-mime-info-${PKG_SHARED_MIME_INFO_VERSION}.tar.xz}; diff --git a/vars/libsolv.vars b/vars/libsolv.vars new file mode 100644 index 00000000..023fab1d --- /dev/null +++ b/vars/libsolv.vars @@ -0,0 +1,37 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_libsolv_configure() { + rm -f config.cache; + env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" \ + PREFIX="" \ + cmake -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \ + -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \ + -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ + -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \ + -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}" \ + -DFEDORA=1 \ + -DWITH_LIBXML2:BOOL=ON \ + -DENABLE_COMPLEX_DEPS:BOOL=ON \ + -DENABLE_RPMDB_BYRPMHEADER:BOOL=ON \ + -DENABLE_RPMDB_LIBRPM:BOOL=ON \ + -DENABLE_RPMPKG_LIBRPM:BOOL=ON \ + -DENABLE_LZMA_COMPRESSION:BOOL=ON \ + -DENABLE_BZIP2_COMPRESSION:BOOL=ON \ + -DENABLE_COMPS:BOOL=ON \ + -DENABLE_APPDATA:BOOL=ON \ + -DENABLE_RPMDB:BOOL=ON \ + -DENABLE_RPMMD:BOOL=ON \ + -DLIBXML2_LIBRARIES="${PKG_PREFIX}/lib/libxml2.lib.a" \ + -DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a" \ + -DLZMA_INCLUDE_DIR="${PKG_PREFIX}/include" \ + -DLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a" \ + -DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \ + -DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a" \ + "../libsolv-${PKG_VERSION}"; +} |