blob: 7f7db20653d2881d1ea5f578246c4112ca845778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.9 2020/08/17 20:17:17 leot Exp $
DISTNAME= OCE-0.18.3
PKGNAME= ${DISTNAME:tl}
PKGREVISION= 2
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_GITHUB:=tpaviot/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/tpaviot/oce/
COMMENT= Open CASCADE Community Edition
LICENSE= gnu-lgpl-v2.1
GITHUB_TAG= ${DISTNAME}
WRKSRC= ${WRKDIR}/oce-${DISTNAME}
USE_CMAKE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
CHECK_PORTABILITY_SKIP+= samples/qt/*
# mk/configure/cmake.mk disables rpath handling
# but we need it for a lib subpath
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/oce
CMAKE_ARGS+= -DOCE_INSTALL_PREFIX:PATH=${PREFIX}
SUBST_CLASSES+= prefix
SUBST_MESSAGE.prefix= Fixing PREFIX path.
SUBST_STAGE.prefix= post-configure
SUBST_FILES.prefix= CMakeFiles/Export/lib/oce/OCE-libraries-release.cmake
SUBST_SED.prefix= -e "s|${BUILDLINK_DIR}/lib/lib\([0-9a-zA-Z_-]*\)\.so|\1|g"
.include "options.mk"
.include "../../mk/bsd.pkg.mk"
|