35 lines
843 B
Makefile
35 lines
843 B
Makefile
# $NetBSD: Makefile,v 1.10 2021/06/21 10:49:20 adam Exp $
|
|
|
|
DISTNAME= qhull-2020-src-${LIBVERSION}
|
|
PKGNAME= qhull-2020.2
|
|
PKGREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= http://www.qhull.org/download/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
LIBVERSION= ${LIBMAJOR}.2
|
|
LIBMAJOR= 8.0
|
|
PLIST_SUBST+= LIBVERSION=${LIBVERSION} LIBMAJOR=${LIBMAJOR}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.qhull.org/
|
|
COMMENT= Computing the convex hull
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
USE_CMAKE= yes
|
|
USE_LANGUAGES= c c++
|
|
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}
|
|
TEST_TARGET= test
|
|
|
|
CMAKE_ARGS+= -DMAN_INSTALL_DIR:PATH=${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
# Remove non-portable file not used in build or test.
|
|
post-extract:
|
|
rm -f ${WRKSRC}/eg/q_benchmark ${WRKSRC}/eg/qhull-zip.sh
|
|
|
|
# libqhull is deprecated
|
|
post-build:
|
|
cd ${WRKSRC} && make libqhull
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|