darktable-4.2.0
This commit is contained in:
@@ -4,35 +4,31 @@
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import mesontools, cmaketools, pisitools
|
||||
|
||||
j = ''.join([
|
||||
' -DUSE_COLORD=ON',
|
||||
' -DUSE_OPENJPEG=ON',
|
||||
' -DUSE_LIBSECRET=ON',
|
||||
' -DBUILD_USERMANUAL=1',
|
||||
' -DENABLE_RAWSPEED=ON',
|
||||
' -DRAWSPEED_ENABLE_LTO=ON',
|
||||
' -DBINARY_PACKAGE_BUILD=1',
|
||||
' -DCMAKE_BUILD_TYPE=Release',
|
||||
' -DCMAKE_INSTALL_LIBDIR=/usr/lib',
|
||||
' -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib',
|
||||
' -B_build -G Ninja -L '
|
||||
])
|
||||
|
||||
def setup():
|
||||
pisitools.ldflags.add("-lgs")
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
cmaketools.configure("-DUSE_COLORD=On \
|
||||
-DUSE_OPENJPEG=On \
|
||||
-DUSE_LIBSECRET=On \
|
||||
-DBUILD_USERMANUAL=0 \
|
||||
-DBINARY_PACKAGE_BUILD=1 \
|
||||
-DBUILD_USERMANUAL=False \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_SKIP_BUILD_RPATH=ON \
|
||||
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
|
||||
-DDONT_INSTALL_GCONF_SCHEMAS=1", sourceDir="..")
|
||||
cmaketools.configure(j)
|
||||
|
||||
def build():
|
||||
shelltools.cd("build")
|
||||
cmaketools.make()
|
||||
|
||||
mesontools.build("-C _build")
|
||||
|
||||
def install():
|
||||
shelltools.cd("build")
|
||||
cmaketools.install()
|
||||
mesontools.install("-C _build")
|
||||
|
||||
# fix libdarktable.so path under /usr/lib
|
||||
pisitools.dosym("/usr/lib/darktable/libdarktable.so", "/usr/lib/libdarktable.so")
|
||||
|
||||
Reference in New Issue
Block a user