41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.73 2022/09/11 12:51:57 wiz Exp $
|
|
|
|
DISTNAME= CGAL-4.14
|
|
PKGNAME= ${DISTNAME:tl}
|
|
PKGREVISION= 29
|
|
CATEGORIES= math
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=CGAL/}
|
|
GITHUB_RELEASE= releases/${DISTNAME}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= reinoud@NetBSD.org
|
|
HOMEPAGE= https://www.cgal.org/
|
|
COMMENT= Computational Geometry Algorithms Library
|
|
LICENSE= gnu-lgpl-v3
|
|
|
|
USE_CMAKE= yes
|
|
USE_LANGUAGES= c c++11
|
|
CMAKE_ARGS+= -DCGAL_INSTALL_MAN_DIR=${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
REPLACE_SH+= scripts/cgal_create_CMakeLists
|
|
REPLACE_SH+= scripts/cgal_create_cmake_script
|
|
|
|
SUBST_CLASSES+= cmakeworkdir
|
|
SUBST_STAGE.cmakeworkdir= post-install
|
|
SUBST_MESSAGE.cmakeworkdir= Removing $$WRKDIR from cmake files
|
|
SUBST_FILES.cmakeworkdir= ${DESTDIR}${PREFIX}/lib/cmake/CGAL/*.cmake
|
|
SUBST_SED.cmakeworkdir= -e 's%${WRKDIR}/.buildlink%${PREFIX}%g'
|
|
|
|
pre-install:
|
|
find ${WRKSRC} -name \*.orig -exec rm {} \;
|
|
|
|
.include "../../devel/boost-headers/buildlink3.mk"
|
|
.include "../../devel/boost-libs/buildlink3.mk"
|
|
.include "../../math/mpfr/buildlink3.mk"
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
.include "../../x11/qt5-qtbase/buildlink3.mk"
|
|
.include "../../x11/qt5-qttools/buildlink3.mk"
|
|
.include "../../x11/qt5-qtsvg/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|