This diff fixes the build of comms/xastir on sparc64. Previously the
necessary define wasn't getting passed along to the compiler. I switched
from playing with CONFIG_ENV to adding the necessary parts to CFLAGS
directly in the Makefile.

I've confirmed that it still builds on amd64 after this change.

ok?

(cc MAINTAINER)

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/comms/xastir/Makefile,v
retrieving revision 1.39
diff -u -p -r1.39 Makefile
--- Makefile    10 Sep 2019 11:21:24 -0000      1.39
+++ Makefile    13 Feb 2020 03:09:15 -0000
@@ -3,7 +3,7 @@
 COMMENT=       X amateur station tracking and info reporting
 
 DISTNAME=      xastir-2.0.6
-REVISION=      3
+REVISION=      4
 
 CATEGORIES=            comms hamradio geo
 
@@ -24,10 +24,10 @@ AUTOCONF_VERSION=   2.69
 AUTOMAKE_VERSION=      1.11
 MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
 .if ${MACHINE} == "sparc64"
-MAKE_FLAGS=    CFLAGS="${CFLAGS} -fno-tree-ter"
+CFLAGS +=              -fno-tree-ter
 .endif
 # https://github.com/Xastir/Xastir/issues/47 proj 6
-CONFIGURE_ENV +=       CFLAGS=-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1
+CFLAGS +=              -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1
 
 CONFIGURE_ARGS=                --with-shapelib                                 
\
                        --with-pcre                                     \

Reply via email to