blob: 64589a717a14cc2be02daf1b6d909e1ffa769e4e (
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
|
# $NetBSD: Makefile,v 1.31 2020/11/05 09:07:32 ryoon Exp $
DISTNAME= klayout-0.26.8
PKGREVISION= 1
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
CFLAGS+= -I${PREFIX}/include/python${PYVERSUFFIX}
NO_CONFIGURE= yes
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
REL_DIR= build-release
.include "../../mk/bsd.prefs.mk"
.if !empty(MAKE_JOBS)
MAKE_JOBS_FLAG= -option -j${MAKE_JOBS}
.endif
do-build:
cd ${WRKSRC} && ${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 ${PREFIX}
do-install:
cd ${WRKSRC} && \
${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/libklayout_* \
${DESTDIR}${PREFIX}/lib
${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/strm* \
${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/klayout \
${DESTDIR}${PREFIX}/bin
.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"
|