template 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Template file for 'supercollider'
  2. pkgname=supercollider
  3. version=3.11.1
  4. revision=1
  5. wrksrc="SuperCollider-${version}-Source"
  6. build_style=cmake
  7. configure_args="-DENABLE_TESTSUITE=OFF -DSYSTEM_BOOST=ON -DSYSTEM_YAMLCPP=ON"
  8. hostmakedepends="emacs pkg-config"
  9. makedepends="avahi-libs-devel boost-devel fftw-devel jack-devel libatomic-devel
  10. libsndfile-devel libXt-devel qt5-declarative-devel qt5-location-devel
  11. qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite
  12. qt5-plugin-tds qt5-sensors-devel qt5-tools-devel qt5-svg-devel
  13. qt5-webchannel-devel qt5-websockets-devel yaml-cpp-devel"
  14. short_desc="Environment and programming language for real time audio synthesis"
  15. maintainer="Orphaned <orphan@voidlinux.org>"
  16. license="GPL-3.0-or-later"
  17. homepage="https://github.com/supercollider/supercollider"
  18. distfiles="https://github.com/supercollider/supercollider/releases/download/Version-${version}/SuperCollider-${version}-Source.tar.bz2"
  19. checksum=2dd2f8179a55de4735ac940e2e2d0df4e68cc3a33172628e4dd99ae89c74856b
  20. if [ "$CROSS_BUILD" ]; then
  21. hostmakedepends+=" qt5-host-tools qt5-devel"
  22. fi
  23. # Liberation: Removed everything else related to webengine, except this one
  24. # to disable webengine
  25. configure_args+=" -DSC_USE_QTWEBENGINE=OFF"
  26. if [ "$XBPS_TARGET_LIBC" = musl ]; then
  27. makedepends+=" libglob-devel"
  28. fi
  29. case "$XBPS_TARGET_MACHINE" in
  30. x86_64*|i686*);;
  31. *) configure_args+=" -DSSE=OFF -DSSE2=OFF";;
  32. esac
  33. pre_configure() {
  34. rm -rf external_libraries/boost # https://github.com/supercollider/supercollider/issues/4096
  35. sed -i 's/yaml/yaml-cpp/g' CMakeLists.txt editors/sc-ide/CMakeLists.txt
  36. case "$XBPS_TARGET_MACHINE" in
  37. *-musl)
  38. sed -i \
  39. -e '/include/s,glob\.h,libglob/glob.h,g' \
  40. -e 's/glob(/g_glob(/g' \
  41. -e 's/globfree(/g_globfree(/g' \
  42. common/SC_Filesystem_unix.cpp
  43. sed -i 's/__va_copy/va_copy/g' common/SC_StringBuffer.cpp
  44. echo 'target_link_libraries(sclang glob)' >> lang/CMakeLists.txt
  45. echo 'target_link_libraries(scsynth glob)' >> server/scsynth/CMakeLists.txt
  46. echo 'target_link_libraries(supernova glob)' >> server/supernova/CMakeLists.txt
  47. echo 'target_link_libraries(SuperCollider glob)' >> editors/sc-ide/CMakeLists.txt
  48. ;;
  49. esac
  50. }