Hi,

On Sun, 26 Jul 2020 15:30:15 -0400
Kurt Mosiejczuk wrote:

> On Sat, Jul 25, 2020 at 03:57:06PM -0400, Kurt Mosiejczuk wrote:
> > The following fixes the build of graphics/mscgen for sparc64 and
> > presumably other ld.bfd architectures.
> 
> > ok?
> 
> Brad Smith pointed out I should be using X11BASE instead of hardcoding
> the path. Here's a version that does it right.
> 
> ok?

You may want this instead, in any case OK cwen@


> --Kurt
> 

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/mscgen/Makefile,v
retrieving revision 1.8
diff -u -p -u -p -r1.8 Makefile
--- Makefile    12 Jul 2019 20:47:04 -0000      1.8
+++ Makefile    26 Jul 2020 19:49:16 -0000
@@ -27,6 +27,12 @@ FAKE_FLAGS=          exampledir="${PREFIX}/share
 
 WRKDIST=               ${WRKDIR}/${DISTNAME:S/-src//}
 
+# Fix undefined references to freetype and fontconfig symbols
+.include <bsd.port.arch.mk>
+.if !${PROPERTIES:Mlld}
+CONFIGURE_ENV +=       LDFLAGS="${LDFLAGS} -L${X11BASE}/lib"
+.endif
+
 pre-configure:
        @sed -i 's,/bin/bash,/bin/sh,g' ${WRKSRC}/test/renderercheck.sh
 

Reply via email to