avogadrolibs: upgrade 1.93.0 -> 1.93.1 and fix pointers to our build sysroot
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -13,27 +13,34 @@ DEPENDS = " \
|
||||
mmtf-cpp \
|
||||
"
|
||||
|
||||
inherit cmake_lib
|
||||
inherit cmake_extra_sanity features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Avoid-RPATH-if-not-configured.patch \
|
||||
file://0002-AvogadroLibsConfig.cmake-Find-include.patch \
|
||||
"
|
||||
|
||||
EXTRA_OECMAKE += "-DENABLE_RPATH=OFF"
|
||||
|
||||
# avogadrolibs has lots of include_directories(SYSTEM ${FOO_DIR})
|
||||
# have no better way to make gcc6 happy
|
||||
do_configure_append() {
|
||||
sed -i 's:-isystem :-I :g' `find ${B} -name '*.ninja'`
|
||||
# fix python executable path to not point to sysroot
|
||||
sed -i 's:pythonInterpreterPath =.*:pythonInterpreterPath = "${bindir}/python3";:g' ${B}/avogadro/qtgui/avogadropython.h
|
||||
# fix absolute sysroot library paths
|
||||
sed -i \
|
||||
-e 's:${STAGING_LIBDIR}/libGLEW.so:GLEW:g' \
|
||||
-e 's:${STAGING_LIBDIR}/libGL.so:GL:g' \
|
||||
-e 's:${STAGING_LIBDIR}/libGLU.so:GLU:g' \
|
||||
-e 's:${STAGING_LIBDIR}/libarchive.so:archive:g' \
|
||||
${B}/CMakeFiles/Export/lib/cmake/avogadrolibs/AvogadroLibsTargets.cmake
|
||||
}
|
||||
|
||||
EXTRA_OECMAKE += "-DENABLE_RPATH=OFF"
|
||||
|
||||
FILES_${PN} += " \
|
||||
${libdir}/avogadro2/scripts \
|
||||
"
|
||||
|
||||
FILES_${PN}-staticdev += " \
|
||||
${libdir}/avogadro2/staticplugins \
|
||||
${libdir}/avogadro2/*.a \
|
||||
"
|
||||
|
||||
CMAKE_ALIGN_SYSROOT[1] = "avogadrolibs, -S${prefix}, -S${STAGING_DIR_HOST}/${prefix}"
|
||||
|
||||
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=68485d31f72dbb8611179b6c7515617b"
|
||||
|
||||
inherit cmake_qt5 python3native
|
||||
|
||||
PV = "1.93.0"
|
||||
PV = "1.93.1"
|
||||
SRC_URI = "git://github.com/OpenChemistry/avogadrolibs.git"
|
||||
SRCREV = "d55b7b2db2314b7c09336c05c841f31bbec40fc4"
|
||||
SRCREV = "4f1b21de000046c04a39829063c6416fbd70922b"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
Reference in New Issue
Block a user