summaryrefslogtreecommitdiffstats
path: root/cad/linuxcnc-devel/Makefile
blob: 00b164103a7c1316943e09d2db33d95fb3605bad (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
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$

PORTNAME=	linuxcnc
PORTVERSION=	20160626
PORTREVISION=	5
CATEGORIES=	cad
PKGNAMESUFFIX=	-devel

MAINTAINER=	trasz@FreeBSD.org
COMMENT=	Open Source CNC machine controller

LICENSE=	GPLv2

BROKEN=		fails to build, too few arguments to modbus_set_response_timeout

LIB_DEPENDS=	libBLT25.so:x11-toolkits/blt \
		libboost_python.so:devel/boost-python-libs \
		libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2 \
		libmodbus.so:comms/libmodbus \
		libncurses.so:devel/ncurses \
		libXaw.so:x11-toolkits/libXaw \
		libtclx8.4.so:lang/tclX
RUN_DEPENDS=	bash:shells/bash \
		bwidget>=1.4:x11-toolkits/bwidget \
		${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:x11-toolkits/py-vte \
		${PYTHON_SITELIBDIR}/gtk-2.0/gtk/gdkgl/__init__.py:x11-toolkits/py-gtkglext \
		${LOCALBASE}/lib/Img/libtkimg1.4.6.so:graphics/libimg
BUILD_DEPENDS=	${RUN_DEPENDS}

NO_PACKAGE=	Licensing conflict between LinuxCNC (GPL2) and readline (GPL3)

WRKSRC_SUBDIR=		src
PATCH_WRKSRC=	${WRKDIR}/linuxcnc-${GH_TAGNAME}
ALL_TARGET=	default

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-realtime=uspace --enable-non-distributable=yes \
		CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
		CXXFLAGS="-I${LOCALBASE}/include" CXX=c++ CC=cc \
		--with-locale-dir="${PREFIX}/share/locale" --with-python=${PYTHON_CMD}
MAKE_ENV=	BUILD_VERBOSE=1
USES=		autoreconf gettext gmake ncurses pkgconfig python readline shebangfix tk
USE_GL=		gl glu
USE_GNOME=	cairo gdkpixbuf2 pygtksourceview
USE_XORG=	ice sm x11 xext xft xinerama xmu xrender xscrnsaver xt
USE_LDCONFIG=	yes
USE_GITHUB=	yes
GH_ACCOUNT=	LinuxCNC
GH_TAGNAME=	fe7b155c03fe77d6eb301bcfdc3d7c1acdea73e4

post-patch:
		${FIND} ${PATCH_WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
			-e 's|#!.*/bin/bash|#!${LOCALBASE}/bin/bash|' \
			-e 's|#!.*/usr/bin/tclsh|#!${LOCALBASE}/bin/tclsh8.6|' \
			-e 's|#!.*/usr/bin/wish|#!${LOCALBASE}/bin/wish8.6|'

.include <bsd.port.mk>
OpenPOWER on IntegriCloud