sysutils/passwordsafe: fix build on non-x86

This commit is contained in:
Piotr Kubaj 2025-02-23 14:16:08 +01:00
parent 697c9f20b2
commit c93d490f1f

View file

@ -8,9 +8,6 @@ WWW= https://pwsafe.org
LICENSE= ART20
NOT_FOR_ARCHS= aarch64 armv6 armv7
NOT_FOR_ARCHS_REASON= Cannot determine whether the target CPU is big or little endian - please fix PwsPlatform.h
LIB_DEPENDS= libcurl.so:ftp/curl \
libuuid.so:misc/e2fsprogs-libuuid \
libxerces-c.so:textproc/xerces-c3 \
@ -46,6 +43,14 @@ ALL_TARGET= unicoderelease
PORTSCOUT= limit=^1\.
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc || ${ARCH} == powerpc64
CXXFLAGS+= -DPWS_BIG_ENDIAN
.else
CXXFLAGS+= -DPWS_LITTLE_ENDIAN
.endif
post-patch:
. for f in Makefile.freebsd help/Makefile.freebsd src/os/unix/Makefile \
src/os/unix/dir.cpp src/ui/wxWidgets/Makefile