blob: 0c0b8e775c0afb7b06f507d95104e5ad40a98825 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.41 2021/08/15 03:29:29 mef Exp $
DISTNAME= klayout-0.27.3
CATEGORIES= cad
MASTER_SITES= http://www.klayout.org/downloads/source/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.klayout.de/
COMMENT= Simple GDS and OASIS file viewer and Editor
LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
USE_TOOLS+= gmake bash pax
CFLAGS+= -I${PREFIX}/include/python${PYVERSUFFIX}
NO_CONFIGURE= yes
CHECK_SHLIBS_SKIP+= lib/klayout/plugins/streamers/*/unit_tests/* \
lib/klayout/plugins/tools/net_tracer/unit_tests/*
SUBST_CLASSES+= rpath
SUBST_MESSAGE.rpath= Add COMPILER_RPATH_FLAG and PREFIX to NetBSD specific config file
SUBST_FILES.rpath+= config/Makefile.conf.netbsd-32-gcc-release
SUBST_STAGE.rpath= pre-configure
SUBST_VARS.rpath= COMPILER_RPATH_FLAG PREFIX LDFLAGS
BUILDLINK_TRANSFORM.NetBSD+= rm:-ldl
AUTO_MKDIRS= yes
INSTALL_BINDIR= ${DESTDIR}${PREFIX}/bin
INSTALL_LIBDIR= ${DESTDIR}${PREFIX}/lib/klayout
REL_DIR= bin-release
PLUGINS_DIR= db_plugins lay_plugins pymod
PLIST_SUBST+= PKGVERSION_MAJOR_MINOR=${PKGVERSION_NOREV:C/([0-9]+\.[0-9]+)\.[0-9]*/\1/}
.include "../../mk/bsd.prefs.mk"
.if !empty(MAKE_JOBS)
MAKE_JOBS_FLAG= -option -j${MAKE_JOBS}
.endif
do-build:
cd ${WRKSRC} && ${MKDIR} ${REL_DIR} && \
${PKGSRC_SETENV} ${MAKE_ENV} ${BASH} build.sh \
-python python${PYVERSSUFFIX} \
-qt5 \
-qmake ${PREFIX}/qt5/bin/qmake \
-ruby ${PREFIX}/bin/${RUBY_NAME} \
${MAKE_JOBS_FLAG} \
-prefix ${REL_DIR} \
-rpath ${PREFIX}/lib/klayout
do-install:
cd ${WRKSRC}/${REL_DIR} && \
${PAX} -wr libklayout* ${PLUGINS_DIR} ${INSTALL_LIBDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/strm* \
${INSTALL_BINDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/klayout \
${INSTALL_BINDIR}
.include "../../lang/python/pyversion.mk"
.include "../../lang/ruby/buildlink3.mk"
.include "../../x11/qt5-qtbase/buildlink3.mk"
.include "../../x11/qt5-qtsvg/buildlink3.mk"
.include "../../x11/qt5-qttools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|