Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions cgal.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env beesh

# BEE_VERSION cgal-5.6.3-0

# more info: https://www.cgal.org/

# https://github.com/CGAL/cgal/releases/download/v${PKGVERSION}/CGAL-${PKGVERSION}-library.tar.xz
SRCURL[0]="https://beehive.molgen.mpg.de/ad04620c9b6f80b666803bce6db943e4/CGAL-5.6.3-library.tar.xz"

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

#mee_configure() {
# bee_configure
#}

#mee_build() {
# bee_build
#}

#mee_install() {
# bee_install
#}
36 changes: 36 additions & 0 deletions opencsg.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env beesh

# BEE_VERSION opencsg-1.8.2-0

# more info: https://www.opencsg.org/

# https://www.opencsg.org/OpenCSG-${PKGVERSION}.tar.gz
SRCURL[0]="https://beehive.molgen.mpg.de/1c34baf2a5474675ba8623cdf70cd0d8/OpenCSG-1.8.2.tar.gz"

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

mee_configure() {
# Example is a never installed a GLUT demo, so avoid freeglut dependency.
bee_configure \
-DBUILD_EXAMPLE=OFF
}

#mee_build() {
# bee_build
#}

#mee_install() {
# bee_install
#}
64 changes: 64 additions & 0 deletions openscad.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/usr/bin/env beesh

# BEE_VERSION openscad-2021.01-0

# more info: https://openscad.org/
# 2021.01 is still the latest release; upstream has published development
# snapshots only since then.

# https://github.com/openscad/openscad/releases/download/openscad-${PKGVERSION}/openscad-${PKGVERSION}.src.tar.gz
SRCURL[0]="https://beehive.molgen.mpg.de/79f8e3a42bcfeeb3ddde9e5bc2311f76/openscad-2021.01.src.tar.gz"

PATCHURL+=("https://beehive.molgen.mpg.de/4f9745e5b94f5f09df83e510fabb7685/openscad-2021.01-cgal-5.4-projection-traits.patch")
PATCHURL+=("https://beehive.molgen.mpg.de/1c23d2882f24d1a9f4d175752c37db94/openscad-2021.01-cgal-5-drop-printPolyhedron.patch")
PATCHURL+=("https://beehive.molgen.mpg.de/4c0c8821966c8e63948a6adcba92291b/openscad-2021.01-boost-algorithm-join.patch")
PATCHURL+=("https://beehive.molgen.mpg.de/8bd3ac88c99137bcd2c7f2d8a436b112/openscad-2021.01-boost-filesystem-is-regular-file.patch")

# qmake only searches for feature files in a 'features' directory below the
# *build* directory, so openscad's own features/*.prf -- which is where every
# dependency except Qt is detected -- are silently skipped in a shadow build.
# Build in the source directory, as upstream's README describes.
build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

# The distribution's boost is configured with --with-libraries=headers, so
# /usr/lib holds no libboost_* at all, while openscad links five of them. Take
# headers and libraries from the package, which ships both. Deliberately not
# named BOOSTDIR: features/boost.prf reads that variable from the environment
# and would derive a wrong include path from it.
BOOST_PKGDIR=/pkg/boost-1.86.0-0

mee_configure() {
# openscad 2021.01 predates Qt 6, and qtlinks points /usr/local/bin/qmake
# at Qt 6, so call the Qt 5 qmake by its full path. The tree also ships
# an (unsupported) CMakeLists.txt, which is what bee would otherwise pick
# up as the buildtype.
#
# Pass the three boost paths by hand. INCLUDEPATH is emitted ahead of
# /usr/include, so the 1.86.0 headers win over the 1.72.0 ones of the
# distribution, and QMAKE_RPATHDIR keeps the libraries findable at runtime.
start_cmd /usr/local/qt5/bin/qmake \
PREFIX=${PREFIX} \
INCLUDEPATH+=${BOOST_PKGDIR}/include \
LIBS+=-L${BOOST_PKGDIR}/lib \
QMAKE_RPATHDIR+=${BOOST_PKGDIR}/lib \
openscad.pro
}

mee_build() {
start_cmd make ${BEE_MAKEFLAGS}
}

mee_install() {
# qmake-generated makefiles stage through INSTALL_ROOT, not DESTDIR.
start_cmd make ${BEE_MAKEFLAGS} install INSTALL_ROOT=${D}
}