On Fri, Feb 18, 2022 at 06:32:33PM -0800, Andrew Hewus Fresh wrote:
> I tried to run openscad on my PineBook Pro and it said:
> 
> ld.so: openscad: can't load library 'libQt5Gamepad.so.1.0'
> 
> pkg_add qtgamepad seemed to fix it, so I assume adding a LIB_DEPENDS on
> qtgamepad should resolve it, although I'm not entirely sure what part of
> openscad has gamepad support.
> 
> I haven't actually finished rebuilding it on this laptop yet, but it's
> going.
> 
> Comments, OK?

Turns out it was a whole WANTLIB that was missing, so I had to rearrange
all those.  Is there a better way to do that?


Index: cad/openscad/Makefile
===================================================================
RCS file: /cvs/ports/cad/openscad/Makefile,v
retrieving revision 1.41
diff -u -p -r1.41 Makefile
--- cad/openscad/Makefile       2 Nov 2021 00:00:15 -0000       1.41
+++ cad/openscad/Makefile       19 Feb 2022 18:38:41 -0000
@@ -5,7 +5,7 @@ BROKEN-sparc64= SIGILL on src/cgalutils.
 
 V =                    2021.01
 DISTNAME =             openscad-${V}
-REVISION =             0
+REVISION =             1
 
 CATEGORIES =           cad
 
@@ -14,13 +14,14 @@ HOMEPAGE =          https://www.openscad.org/
 # GPLv2+ with CGAL exception
 PERMIT_PACKAGE =       Yes
 
-WANTLIB += ${COMPILER_LIBCXX} GL GLEW GLU Qt5Concurrent Qt5Core
-WANTLIB += Qt5DBus Qt5Gui Qt5Multimedia Qt5Network Qt5PrintSupport
-WANTLIB += Qt5Widgets X11 boost_filesystem-mt boost_program_options-mt
-WANTLIB += boost_regex-mt boost_system-mt boost_thread-mt c cairo
-WANTLIB += double-conversion fontconfig freetype glib-2.0 gmp
-WANTLIB += harfbuzz intl m mpfr opencsg qscintilla2_qt5 xml2 z
-WANTLIB += zip
+WANTLIB += ${COMPILER_LIBCXX}
+WANTLIB += Qt5Concurrent Qt5Core Qt5DBus Qt5Gamepad Qt5Gui
+WANTLIB += Qt5Multimedia Qt5Network Qt5PrintSupport Qt5Widgets
+WANTLIB += boost_filesystem-mt boost_program_options-mt boost_regex-mt
+WANTLIB += boost_system-mt boost_thread-mt
+WANTLIB += GL GLEW GLU X11 c cairo double-conversion fontconfig
+WANTLIB += freetype glib-2.0 gmp harfbuzz intl m mpfr opencsg
+WANTLIB += qscintilla2_qt5 xml2 z zip
 
 MASTER_SITES =         https://files.openscad.org/
 EXTRACT_SUFX =         .src.tar.gz
@@ -43,6 +44,7 @@ LIB_DEPENDS =         archivers/libzip \
                        graphics/glew \
                        graphics/opencsg \
                        math/double-conversion \
+                       x11/qt5/qtgamepad \
                        x11/qt5/qtmultimedia
 
 RUN_DEPENDS =          devel/desktop-file-utils \

Reply via email to