> http://build-failures.rhaalovely.net//sparc64/last/x11/libhandy.log
> http://build-failures.rhaalovely.net//powerpc/last/x11/libhandy.log

It's just a COMPILER line missing because it's C11, right? Well it's
more than this, as once provided it yells: 

> (more of them)
> /usr/local/lib/libgtk-3.so.2201.0: undefined reference to 
> `epoxy_glXQueryExtension'
> /usr/local/lib/libgdk-3.so.2201.1: undefined reference to `XcursorImageCreate'
> /usr/local/lib/libgdk-3.so.2201.1: undefined reference to `epoxy_glDrawArrays'
> /usr/local/lib/libpangocairo-1.0.so.3800.1: undefined reference to 
> `FcDefaultSubstitute'
> collect2: error: ld returned 1 exit status
> linking of temporary binary failed: Command '['cc', '-o', 
> '/usr/ports/pobj/libhandy-0.0.9.1/build-powerpc/tmp-introspectxopgayge/Handy-0.0',
>  '-O2', '-pipe', 
> '/usr/ports/pobj/libhandy-0.0.9.1/build-powerpc/tmp-introspectxopgayge/Handy-0.0.o',
>  '-L.', '-Wl,-rpath,.', '-Wl,--no-as-needed', 
> '-L/usr/ports/pobj/libhandy-0.0.9.1/build-powerpc/src', 
> '-Wl,-rpath,/usr/ports/pobj/libhandy-0.0.9.1/build-powerpc/src', 
> '-L/usr/ports/pobj/libhandy-0.0.9.1/build-powerpc/src', 
> '-Wl,-rpath,/usr/ports/pobj/libhandy-0.0.9.1/build-powerpc/src', 
> '-L/usr/local/lib', '-Wl,-rpath,/usr/local/lib', '-lhandy-0.0', 
> '-lhandy-0.0', '-lintl', '-lglib-2.0', '-lgio-2.0', '-lgobject-2.0', 
> '-lgmodule-2.0', '-lgtk-3', '-lgdk-3', '-lpangocairo-1.0', '-lpango-1.0', 
> '-latk-1.0', '-lcairo-gobject', '-lcairo', '-lgdk_pixbuf-2.0', '-lm', 
> '-L/usr/local/lib', '-Wl,--export-dynamic', '-pthread', '-lgio-2.0', 
> '-lgobject-2.0', '-lgmodule-2.0', '-lintl', '-lglib-2.0']' returned non-zero 
> exit status 1


They're either fontconfig, xcb or other X11-related references, 
as it lacks X11BASE/lib as a LDFLAG, so i added it. It seems fishy
to me, but i guess it's yet another base-gcc arch quirk that i don't
know about ;)

Once these issues fixed, it builds [0] and tests pass [1] on macppc.

Testing on other base-gcc archs is *very* welcome :) 

Charlène.

[0] http://0x0.st/zutn.txt
[1] http://0x0.st/zutR.txt


Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/libhandy/Makefile,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 Makefile
--- Makefile    8 May 2019 14:39:05 -0000       1.2
+++ Makefile    10 Jun 2019 12:57:41 -0000
@@ -3,6 +3,7 @@
 COMMENT =              library to help in developing UIs for mobile devices
 
 DISTNAME =             libhandy-0.0.9.1
+REVISION =             0
 CATEGORIES =           x11
 
 SHARED_LIBS += handy-0.0                 0.0 # 0
@@ -14,6 +15,9 @@ MAINTAINER =          Jasper Lievisse Adriaanse 
 # LGPLv2.1
 PERMIT_PACKAGE_CDROM = Yes
 
+# C11
+COMPILER =             base-clang ports-gcc
+
 MODULES =              devel/meson
 
 WANTLIB += atk-1.0 cairo cairo-gobject gdk-3 gdk_pixbuf-2.0
@@ -29,6 +33,13 @@ CONFIGURE_ARGS +=    -Dglade_catalog=disabl
                        -Dexamples=false
 
 TEST_IS_INTERACTIVE =  X11
+
+.include <bsd.port.arch.mk>
+
+.if !${PROPERTIES:Mclang}
+# meson doesn't add it on base-gcc archs, generating undefined references
+MAKE_ENV +=    LDFLAGS="-L${X11BASE}/lib ${LDFLAGS}"
+.endif
 
 pre-configure:
        ${SUBST_CMD} ${WRKSRC}/src/meson.build

Reply via email to