some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
52 lines
1.0 KiB
Makefile
52 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.35 2018/10/24 14:28:07 sthen Exp $
|
|
|
|
COMMENT= environment for rapid engineering and scientific processing
|
|
BROKEN-hppa = undefined reference to lapack funcs
|
|
|
|
V= 4.0
|
|
DISTNAME= FreeMat-${V}-Source
|
|
REVISION= 4
|
|
PKGNAME= freemat-${V}
|
|
|
|
CATEGORIES= graphics math
|
|
|
|
HOMEPAGE= http://freemat.sourceforge.net/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += GL GLU QtGui QtNetwork QtOpenGL QtSvg QtXml amd c fftw3
|
|
WANTLIB += fftw3f m ncurses pcre portaudio pthread ${COMPILER_LIBCXX} umfpack
|
|
WANTLIB += z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=freemat/}
|
|
|
|
MODULES= x11/qt4 devel/cmake
|
|
|
|
LIB_DEPENDS= audio/portaudio-svn \
|
|
devel/pcre \
|
|
math/suitesparse \
|
|
math/fftw3,double \
|
|
math/fftw3,float
|
|
|
|
NO_TEST= Yes
|
|
|
|
SUBST_VARS= V
|
|
|
|
CONFIGURE_ARGS= -DUSE_LLVM:BOOL=FALSE
|
|
|
|
WRKDIST= ${WRKDIR}/FreeMat-${V}.1-Source
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC} && find . -name \*.moc.cpp | xargs rm
|
|
|
|
pre-configure:
|
|
@rm ${WRKSRC}/CMakeCache.txt
|
|
|
|
post-install:
|
|
@mv ${PREFIX}/bin/FreeMat ${PREFIX}/bin/freemat
|
|
|
|
.include <bsd.port.mk>
|