blob: b762bcf49c8218af4241f1df930f0a9ae494eeda (
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
86
87
88
89
90
91
92
|
# Created by: Michael Reifenberger <mr@FreeBSD.org>
# $FreeBSD$
PORTNAME= pcb
PORTVERSION= 20110918
PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= X11 interactive printed circuit board layout system
LICENSE= GPLv2
LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd \
gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
RUN_DEPENDS= m4>=1.4.11:${PORTSDIR}/devel/m4 \
${LOCALBASE}/libdata/pkgconfig/dbus-1.pc:${PORTSDIR}/devel/dbus
BUILD_DEPENDS:= ${RUN_DEPENDS}
USE_AUTOTOOLS= autoconf
USE_GMAKE= yes
USE_TK_RUN= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= INSTALL_DATA="${BSD_INSTALL_DATA}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -pthread -L${LOCALBASE}/lib
CONFIGURE_ARGS= --docdir=${DOCSDIR}
MAKE_JOBS_SAFE= yes
PORTDOCS= pcb.html pcb.pdf refcard.pdf pad.png puller.png thermal.png \
examples tutorial gcode.png gcode_control_img.png \
gcode_tool_path.png
OPTIONS_DEFINE= DOCS NLS X11
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI=MOTIF GTK NONE
OPTIONS_DEFAULT=DOCS X11 GTK
MOTIF_DESC= Motif widgets
GTK_DESC= GIMP ToolKit widgets
NONE_DESC= No GUI support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= \
--enable-nls \
--with-libiconv-prefix=${LOCALBASE} \
--with-libintl-prefix=${LOCALBASE}
USES= gettext iconv
.for L in fr nl ru
PLIST_FILES+= share/locale/${L}/LC_MESSAGES/pcb.mo
.endfor
.else
CONFIGURE_ARGS+= \
--disable-nls \
--without-libiconv \
--without-libintl
.endif
.if ${PORT_OPTIONS:MX11}
.if ${PORT_OPTIONS:MNONE}
CONFIGURE_ARGS+= --without-gui
CONFIGURE_ENV+= WISH=${TRUE}
.elif ${PORT_OPTIONS:MMOTIF}
USE_MOTIF= yes
USE_TK_RUN= yes
CONFIGURE_ARGS+= --with-gui=lesstif
CONFIGURE_ENV+= WISH=${WISH}
.elif ${PORT_OPTIONS:MGTK}
USE_GNOME= gtk20 desktopfileutils
USE_TK_RUN= yes
CONFIGURE_ARGS+= --with-gui=gtk
CONFIGURE_ENV+= WISH=${WISH}
.endif
.endif
.if ${PORT_OPTIONS:MDOCS}
INFO= pcb
MAN1= pcb.1
.else
CONFIGURE_ARGS+= --disable-doc
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
.include <bsd.port.post.mk>
|