freebsd-ports/cad/openscad-devel/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Michael Reifenberger <mr@FreeBSD.org>
# $FreeBSD$
PORTNAME= openscad
PORTVERSION= 2018.04.19
PORTREVISION= 2
CATEGORIES= cad
PKGNAMESUFFIX= -devel
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= mr@FreeBSD.org
COMMENT= Programmer's solid 3D CAD modeller
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:textproc/flex \
${LOCALBASE}/include/boost/tuple/tuple.hpp:devel/boost-libs
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libCGAL.so:math/cgal \
libqscintilla2_qt4.so:devel/qscintilla2 \
libharfbuzz.so:print/harfbuzz \
libopencsg.so:graphics/opencsg \
libzip.so:archivers/libzip
CONFLICTS= openscad
USES= bison compiler:c++11-lang desktop-file-utils eigen:3 gettext-tools \
pkgconfig python:run qmake qt:4 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= openscad
GH_PROJECT= openscad
GH_TAGNAME= 179074dff8c23cbc0e651ce8463737df0006f4ca
#SHEBANG_FILES= libraries/MCAD/get_submodules.py
USE_GL= glu glew
USE_QT= corelib gui opengl moc_build uic_build rcc_build
PLIST_SUB= PORTVERSION=${PORTVERSION}
QMAKE_ENV= EIGENDIR=${LOCALBASE}/include/eigen3
QMAKE_ARGS+= VERSION=${PORTVERSION} \
CONFIG+="experimental" \
QMAKE_LEX=${LOCALBASE}/bin/flex \
QMAKE_YAC=${LOCALBASE}/bin/bison
post-patch:
@${REINPLACE_CMD} -e 's,share/man,man,' \
${WRKSRC}/openscad.pro
.include <bsd.port.mk>