aboutsummaryrefslogtreecommitdiffstats
path: root/cad/klayout/Makefile
blob: a084d7863b150fb1364bc1575a7c16595f9f3a03 (plain) (blame)
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
# $FreeBSD$

PORTNAME=   klayout
PORTVERSION=    0.25.8
DISTVERSIONPREFIX=  v
CATEGORIES= cad

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Qt-based GDS2 Viewer

LICENSE=    GPLv2

BROKEN_i386=    type 'hash<long long>' does not provide a call operator
BROKEN_sparc64= Does not compile on sparc64: gcc bug

USES=       compiler:c++0x gmake gl python qt:5
USE_GITHUB= yes
GH_ACCOUNT= KLayout
USE_GL=     gl
USE_RUBY=   yes
USE_QT=     core buildtools designer gui multimedia network printsupport \
        qmake sql svg testlib widgets xml xmlpatterns
USE_LDCONFIG=   yes

CXXFLAGS+=  -fPIC -I${LOCALBASE}/include/qt5
LDFLAGS+=   ${LIBS} -L${LOCALBASE}/lib/qt5 -lpthread
QT5MODULES= Core Designer Gui Multimedia MultimediaWidgets \
        Network PrintSupport Sql Svg Test Widgets Xml XmlPatterns
.for M in ${QT5MODULES}
CXXFLAGS+=  -I${LOCALBASE}/include/qt5/Qt${M}
LIBS+=      -lQt5${M}
.endfor
MAKE_ENV=   INSTALL_ROOT=${STAGEDIR}
BUILD_WRKSRC=   ${WRKSRC}/build-release
INSTALL_WRKSRC= ${WRKSRC}/build-release

do-configure:
    cd ${WRKSRC} && \
        ${SETENV} ${MAKE_ENV} ${SH} build.sh \
        -with-qtbinding \
        -qt5 \
        -rpath ${LOCALBASE}/lib \
        -prefix ${PREFIX} \
        -python ${PYTHON_CMD} \
        -ruby ${RUBY} \
        -dry-run

post-install:
    cd ${STAGEDIR}${PREFIX} && \
        ${MV} libklayout* ${STAGEDIR}${PREFIX}/lib && \
        ${MV} klayout strm* ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>