* links: fix build on x86 (32 bits).
This seems to have been broken since the update to 2.28, as 2.21
is the last version available on the repositories.
The fix avoids errors resulting from conflicting integer types
between the <tiff.h> and <SupportDefs.h> headers.
Needed to also specify "-g -O2 -fopenmp" when defining CFLAGS to
avoid linking errors (and to match the default flags used otherwise).
None of this is necessary on x86_64, thus the conditional on "_x86".
* links: use a better check to detect the "x86" target arch
Co-authored-by: Jérôme Duval <jerome.duval@gmail.com>
Co-authored-by: Jérôme Duval <jerome.duval@gmail.com>
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has,
is transformed into "all", and then the other entries in ARCHITECTURES
either dropped or rearranged appropriately.
* Drop unneeded support for secondary architectures.
* Depend on libssl and libcrypto instead of openssl.
* Use $effectiveTargetArchitecture (instead of $targetArchitecture)
when defining STDCPPLIBS (as -lstdc++ or lbstdc++.r5) in order to
have a working code for both primary and secondary architectures,
should that code snippet be copied to other recipes.
* Add TEST() with "make check".
* Referring the current haiku version explicitly is not needed, since
the RequiresUpdater takes care of setting the version of Haiku used
for building a package.