blob: 7e4c4f1254784479be323360b4f011471af86c0a (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Created by: Martin Dieringer <martin.dieringe@gmx.de>
# $FreeBSD$
PORTNAME= repsnapper
PORTVERSION= 2.0.0b01
PORTREVISION= 1
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
USES= pkgconfig
USE_GNOME= gdkpixbuf2 gtk20 libxml2
USE_GL= glu glut
USE_AUTOTOOLS= automake libtool
USE_GMAKE= yes
USE_ICONV= yes
USE_XORG= ice pixman sm x11 xau xcomposite xcursor xdamage xdmcp xext \
xfixes xi xinerama xmu xrandr xrender xt xxf86vm
.if !defined(WITHOUT_NLS)
USES+= gettext
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>
|