2c78b9754c
finance/quickfix: fix build on non-x86 Code uses x86 assembly, but makes it possible to use Boost atomic. multimedia/zoneminder: enable on powerpc64 net/mpich: fix build on powerpc64 Neither __BYTE_ORDER nor __BIG_ENDIAN are defined: In file included from src/mpi/datatype/typerep/dataloop/looputil.c:10: ./src/mpi/datatype/typerep/dataloop/looputil.h:57:2: error: This code assumes that __BYTE_ORDER and __BIG_ENDIAN are defined #error This code assumes that __BYTE_ORDER and __BIG_ENDIAN are defined editors/libreoffice: fix build on powerpc64 elfv2 This set of patches is applied only on powerpc* architectures. Submitted by: afsilva Approved by: tier 2 blanket security/openconnect-gui: fix checksum emulators/riscv-isa-sim: enable on powerpc64 sysutils/linuxfdisk: enable on powerpc64 graphics/openfx-arena: enable on powerpc64 multimedia/arcan: enable LUAJIT on powerpc64 It builds fine with luajit-openresty. games/libretro-desmume2015: fix build on non-x86 / ARM JIT is only for x86 and ARM. astro/opencpn: fix build on powerpc64* Use GCC unconditionally on powerpc64*: In file included from /usr/lib/clang/11.0.1/include/xmmintrin.h:13: /usr/lib/clang/11.0.1/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'? __builtin_ia32_emms(); editors/libreoffice6: backport powerpc* patches to libreoffice6 Approved by: tier 2 blanket
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= opencpn
|
|
PORTVERSION= 5.2.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= astro geography
|
|
|
|
MAINTAINER= ml@netfence.it
|
|
COMMENT= Concise ChartPlotter/Navigator
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING.gplv2
|
|
|
|
LIB_DEPENDS= libportaudio.so:audio/portaudio \
|
|
libcurl.so:ftp/curl \
|
|
libexpat.so:textproc/expat2 \
|
|
libtinyxml.so:textproc/tinyxml \
|
|
liblz4.so:archivers/liblz4
|
|
|
|
USES= cmake gettext-tools gl gnome libarchive localbase pkgconfig \
|
|
sqlite xorg
|
|
USE_CXXSTD= c++11
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ${GH_PROJECT}
|
|
GH_PROJECT= OpenCPN
|
|
USE_GL= gl
|
|
USE_GNOME= cairo gdkpixbuf2 gtk30 pango
|
|
INSTALLS_ICONS= yes
|
|
USE_LDCONFIG= ${PREFIX}/lib/opencpn
|
|
USE_WX= 3.0+
|
|
USE_XORG= ice sm x11 xext
|
|
|
|
CMAKE_ARGS= -DOCPN_BUNDLE_GSHHS=CRUDE
|
|
CMAKE_ON= OCPN_BUNDLE_TCDATA OCPN_FORCE_GTK3
|
|
CMAKE_OFF= OCPN_USE_NEWSERIAL
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
DOCS_CMAKE_ON= -DOCPN_BUNDLE_DOCS:STRING="ON"
|
|
DOCS_CMAKE_OFF= -DOCPN_BUNDLE_DOCS:STRING="OFF"
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH:Mpowerpc64*}
|
|
USES+= compiler:gcc-c++11-lib
|
|
.else
|
|
USES+= compiler:c++11-lang
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \
|
|
${WRKSRC}/libs/gdal/src/cpl_csv.cpp \
|
|
${WRKSRC}/libs/gdal/src/cpl_findfile.cpp \
|
|
${WRKSRC}/data/doc/help_en_US.html
|
|
.if ${ARCH} != amd64 && ${ARCH} != i386
|
|
@${REINPLACE_CMD} -e '/-msse/d' -e '/-mssse3/d' \
|
|
-e '/-mavx2/d' ${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|