summaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-09-28 22:32:18 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-09-28 22:32:18 +0000
commit468839f86dd41428a51a0d03b75bdd58b8e98de3 (patch)
tree92b5fea5e42bc367da0f8c2a62669f8558fc3ef1 /cad
parent- Add dependency on textproc/pecl-xdiff (diff)
RepSnapper is a host software for controlling a RepRap 3D printer. It has a
3D OpenGL interface, slices objects and calculates the extrusion toolpath. It can manipulate 3D objects and save constellations in STL and AMF format. WWW: http://reprap.org/wiki/RepSnapper_Manual:Introduction PR: ports/171796 Submitted by: Martin Dieringer <martin.dieringe@gmx.de>
Notes
Notes: svn path=/head/; revision=305014
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/repsnapper/Makefile84
-rw-r--r--cad/repsnapper/distinfo2
-rw-r--r--cad/repsnapper/pkg-descr5
-rw-r--r--cad/repsnapper/pkg-plist13
5 files changed, 105 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index c2948fbe9f4f..099d781f1007 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -77,6 +77,7 @@
SUBDIR += qfsm
SUBDIR += qmls
SUBDIR += qucs
+ SUBDIR += repsnapper
SUBDIR += salome
SUBDIR += salome-geom
SUBDIR += salome-gui
diff --git a/cad/repsnapper/Makefile b/cad/repsnapper/Makefile
new file mode 100644
index 000000000000..c247e6b234f4
--- /dev/null
+++ b/cad/repsnapper/Makefile
@@ -0,0 +1,84 @@
+# Created by: Martin Dieringer <martin.dieringe@gmx.de>
+# $FreeBSD$
+
+PORTNAME= repsnapper
+PORTVERSION= 2.0.0b01
+CATEGORIES= cad
+MASTER_SITES= http://nodeload.github.com/timschmidt/repsnapper/tarball/
+DISTNAME= ${PORTVERSION}
+EXTRACT_SUFX= #
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= martin.dieringer@gmx.de
+COMMENT= Controller and GCode generator for RepRap 3D printers
+
+LICENSE= GPLv2 BSD MIT
+LICENSE_COMB= multi
+
+BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
+LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext \
+ gtkmm-2:${PORTSDIR}/x11-toolkits/gtkmm24 \
+ glademm-2:${PORTSDIR}/devel/libglademm24 \
+ cairomm-1:${PORTSDIR}/graphics/cairomm \
+ zip:${PORTSDIR}/archivers/libzip \
+ atkmm-1.6:${PORTSDIR}/accessibility/atkmm \
+ glibmm-2.4:${PORTSDIR}/devel/glibmm \
+ pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
+ sigc-2.0:${PORTSDIR}/devel/libsigc++20 \
+ pcre:${PORTSDIR}/devel/pcre \
+ drm:${PORTSDIR}/graphics/libdrm \
+ png15:${PORTSDIR}/graphics/png \
+ freetype:${PORTSDIR}/print/freetype2 \
+ expat:${PORTSDIR}/textproc/expat2 \
+ xml++-2.6:${PORTSDIR}/textproc/libxml++26 \
+ fontconfig:${PORTSDIR}/x11-fonts/fontconfig \
+ pangomm-1.4:${PORTSDIR}/x11-toolkits/pangomm \
+ xcb:${PORTSDIR}/x11/libxcb
+
+MAKE_JOBS_SAFE= yes
+USE_GNOME= gdkpixbuf2 gtk20 libxml2
+USE_GL= glu glut
+USE_AUTOTOOLS= automake libtool
+USE_GMAKE= yes
+USE_ICONV= yes
+USE_PKGCONFIG= build
+USE_XORG= ice pixman sm x11 xau xcomposite xcursor xdamage xdmcp xext \
+ xfixes xi xinerama xmu xrandr xrender xt xxf86vm
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+WRKSRC= ${WRKDIR}/timschmidt-${PORTNAME}-39af569
+INSTALL_TARGET= install-strip
+CONFIGURE_ARGS= --prefix=${PREFIX}
+
+pre-configure:
+ cd ${WRKSRC} && ./autogen.sh
+
+post-configure:
+ @${REINPLACE_CMD} 's|src/repsnapper.conf||' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} 's|DATADIRNAME = lib|DATADIRNAME = share|' \
+ ${WRKSRC}/po/Makefile
+
+post-install:
+ ${MKDIR} ${PREFIX}/etc/xdg/repsnapper
+ ${INSTALL_DATA} ${WRKSRC}/src/repsnapper.conf \
+ ${PREFIX}/etc/xdg/repsnapper/repsnapper.conf.sample
+ @if [ ! -f ${PREFIX}/etc/xdg/repsnapper/repsnapper.conf ]; then \
+ ${CP} -p ${PREFIX}/etc/xdg/repsnapper/repsnapper.conf.sample \
+ ${PREFIX}/etc/xdg/repsnapper/repsnapper.conf ; \
+ fi
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 800000
+IGNORE= needs acosl(3) function to compile
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/cad/repsnapper/distinfo b/cad/repsnapper/distinfo
new file mode 100644
index 000000000000..17cf89083654
--- /dev/null
+++ b/cad/repsnapper/distinfo
@@ -0,0 +1,2 @@
+SHA256 (repsnapper/2.0.0b01) = 01ac8745933f87661972492476eb94b90ae2272e522b6accec64e6b2a938f60d
+SIZE (repsnapper/2.0.0b01) = 1340375
diff --git a/cad/repsnapper/pkg-descr b/cad/repsnapper/pkg-descr
new file mode 100644
index 000000000000..3fb69e7a176f
--- /dev/null
+++ b/cad/repsnapper/pkg-descr
@@ -0,0 +1,5 @@
+RepSnapper is a host software for controlling a RepRap 3D printer. It has a
+3D OpenGL interface, slices objects and calculates the extrusion toolpath.
+It can manipulate 3D objects and save constellations in STL and AMF format.
+
+WWW: http://reprap.org/wiki/RepSnapper_Manual:Introduction
diff --git a/cad/repsnapper/pkg-plist b/cad/repsnapper/pkg-plist
new file mode 100644
index 000000000000..52fedb183166
--- /dev/null
+++ b/cad/repsnapper/pkg-plist
@@ -0,0 +1,13 @@
+bin/repsnapper
+@unexec if cmp -s %D/etc/xdg/repsnapper/repsnapper.conf.sample %D/etc/xdg/repsnapper/repsnapper.conf; then rm -f %D/etc/xdg/repsnapper/repsnapper.conf; fi
+etc/xdg/repsnapper/repsnapper.conf.sample
+@exec if [ ! -f %D/etc/xdg/repsnapper/repsnapper.conf ] ; then cp -p %D/%F %B/xdg/repsnapper/repsnapper.conf; fi
+share/applications/repsnapper.desktop
+share/locale/en_GB/LC_MESSAGES/repsnapper.mo
+share/locale/de_DE/LC_MESSAGES/repsnapper.mo
+share/repsnapper/repsnapper.ui
+@dirrmtry etc/xdg/repsnapper
+@dirrmtry share/applications
+@dirrmtry share/locale/de_DE/LC_MESSAGES
+@dirrmtry share/locale/de_DE
+@dirrm share/repsnapper