Index: en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml =================================================================== --- en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml +++ en_US.ISO8859-1/books/porters-handbook/porting-dads/chapter.xml @@ -572,11 +572,49 @@ and NOT_FOR_ARCHS_REASON_ARCH. + + + Futher shorthands are available (cf. + bsd.port.mk): + + IGNORE_i386= does not run on 32-bit architectures + + BROKEN_powerpc64= not ported to powerpc64 yet + + + Wordsize Considerations + + + Some ports are affected by wordize differences + between the various architectures. + + Here are some examples of usage: + + # modify CXXFLAGS on 32-bit archs +.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == mips || ${ARCH} == powerpc || ${ARCH} == powerpcspe +CXXFLAGS+= ... +.endif + + # modify LDFLAGS on 64-bit archs +.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == mips64 || ${ARCH} == powerpc64 || ${ARCH} == sparc64 || ${ARCH} == riscv64 +LDFLAGS+= ... +.endif + + The latter may be done more succinctly and robustly as: + + .if ${ARCH:M*64*} + + + + + + + i386-Specific Considerations If a port fetches i386 binaries and installs them,