aboutsummaryrefslogtreecommitdiffstats
path: root/cad/openscad-devel/Makefile
blob: 5f735cb964083bc83ed21245fd31c956b29a7d4a (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
# Created by: Michael Reifenberger <mr@FreeBSD.org>
# $FreeBSD$

PORTNAME=   openscad
PORTVERSION=    2018.10.22
PORTREVISION=   1
CATEGORIES= cad
PKGNAMESUFFIX=  -devel

MAINTAINER= mr@FreeBSD.org
COMMENT=    Programmer's solid 3D CAD modeller #'

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libzip.so:archivers/libzip \
        libhidapi.so:comms/hidapi \
        libboost_regex.so:devel/boost-libs \
        libqscintilla2_qt5.so:devel/qscintilla2-qt5 \
        libopencsg.so:graphics/opencsg \
        libCGAL.so:math/cgal \
        libgmp.so:math/gmp \
        libmpfr.so:math/mpfr \
        libfreetype.so:print/freetype2 \
        libharfbuzz.so:print/harfbuzz \
        libfontconfig.so:x11-fonts/fontconfig

CONFLICTS=  openscad

USES=       bison compiler:c++11-lib desktop-file-utils eigen:3 gettext \
        pkgconfig qmake qt:5 shared-mime-info
USE_GITHUB= yes
USE_GL=     gl glu glew
USE_GNOME=  glib20 libxml2
USE_QT=     buildtools_build core concurrent_build dbus gui multimedia widgets
USE_XORG=   x11
GH_TAGNAME= b8160eac0cca045e091fa65c3f7fbe68fdfada59
QMAKE_ARGS= CONFIG+="experimental" VERSION=${PORTVERSION}
# Avoid overlinking: kvm, procstat, boost(thread, system), Qt5(concurrent, network, printsupport)
LDFLAGS+=   -Wl,--as-needed

post-patch:
    @${REINPLACE_CMD} 's/-libusb//' ${WRKSRC}/features/hidapi.prf
    @${REINPLACE_CMD} -e 's,share/man,man,' \
        ${WRKSRC}/openscad.pro

.include <bsd.port.mk>