Noticed on arm64, WANTLIB expects to link against DRM libraries.  These
don't exist on all arches, so etract them out.

Build-tested on arm64.

OK?


Index: devel/gwenhywfar/Makefile
===================================================================
RCS file: /cvs/openbsd/ports/devel/gwenhywfar/Makefile,v
diff -u -p -u -p -r1.33 Makefile
--- devel/gwenhywfar/Makefile   4 Jul 2025 19:35:23 -0000       1.33
+++ devel/gwenhywfar/Makefile   14 Jul 2025 07:35:24 -0000
@@ -1,6 +1,7 @@
 COMMENT=       helper library for networking and security applications
 
 DISTNAME=      gwenhywfar-5.12.0
+REVISION=      0
 
 SHARED_LIBS +=  gwenhywfar           2.4      # 83.0
 SHARED_LIBS +=  gwengui-cpp          1.0      # 83.0
@@ -18,7 +19,7 @@ WANTLIB += ${COMPILER_LIBCXX} GL LLVM Qt
 WANTLIB += X11 X11-xcb Xau Xcomposite Xcursor Xdamage Xdmcp Xext
 WANTLIB += Xfixes Xi Xinerama Xrandr Xrender Xxf86vm atk-1.0 atk-bridge-2.0
 WANTLIB += atspi c cairo cairo-gobject crypto dbus-1 double-conversion
-WANTLIB += drm drm_amdgpu drm_intel elf epoll-shim epoxy execinfo
+WANTLIB += elf epoll-shim epoxy execinfo
 WANTLIB += expat ffi fontconfig freetype fribidi gcrypt gdk-3
 WANTLIB += gdk_pixbuf-2.0 gio-2.0 glapi glib-2.0 gmodule-2.0 gmp
 WANTLIB += gnutls gobject-2.0 gpg-error graphite2 gthread-2.0
@@ -29,6 +30,13 @@ WANTLIB += ssl tasn1 unistring wayland-c
 WANTLIB += xcb xcb-dri2 xcb-dri3 xcb-glx xcb-present xcb-randr
 WANTLIB += xcb-render xcb-shm xcb-sync xcb-xfixes xkbcommon xshmfence
 WANTLIB += z zstd
+
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "aarch64"
+WANTLIB += drm drm_amdgpu
+.endif
+.if ${MACHINE_ARCH} == "amd64"
+WANTLIB += drm_intel
+.endif
 
 SITES=                 https://www.aquamaniac.de/rdm/attachments/download/529/
 




-- 
Mustgo, n.:
        Any item of food that has been sitting in the refrigerator so
        long it has become a science project.
                -- Sniglets, "Rich Hall & Friends"

Reply via email to