Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Aug 2019 20:54:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 238780] converters/pdf2djvu: fix build with GCC-based architectures
Message-ID:  <bug-238780-7788-zC2P5DmPEN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238780-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238780-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238780

--- Comment #13 from Samy Mahmoudi <samy.mahmoudi@gmail.com> ---
While investigating, it seemed even the following didn't work as expected (=
the
following is just a test, would use an option helper in a real case):
--------------------------
.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MGCC_BUILD}
USES+=3D          compiler:gcc-c++11-lib
.else
USES+=3D          compiler:c++11-lang
.endif

.include <bsd.port.post.mk>
---------------------------

By trial and error, I found that to manually test for an option, I should
resort to:
------------------------------
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGCC_BUILD}
USES+=3D          compiler:gcc-c++11-lib
.else
USES+=3D          compiler:c++11-lang
.endif

.include <bsd.port.mk>
----------------------
This would prevent me from testing for ARCH.

emulators/wine-devel is an example of a port using pre/post *.mk to test for
ARCH and manually testing for STAGING on PORT_OPTIONS. Why can't I do the s=
ame
?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238780-7788-zC2P5DmPEN>