naddy d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00

52 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.38 2020/03/20 16:44:25 naddy Exp $
COMMENT= environment for rapid engineering and scientific processing
BROKEN-hppa = undefined reference to lapack funcs
V= 4.0
DISTNAME= FreeMat-${V}-Source
REVISION= 5
PKGNAME= freemat-${V}
CATEGORIES= graphics math
HOMEPAGE= http://freemat.sourceforge.net/
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += GL GLU QtGui QtNetwork QtOpenGL QtSvg QtXml amd c fftw3
WANTLIB += fftw3f m curses 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 -delete
pre-configure:
@rm ${WRKSRC}/CMakeCache.txt
post-install:
@mv ${PREFIX}/bin/FreeMat ${PREFIX}/bin/freemat
.include <bsd.port.mk>