aboutsummaryrefslogtreecommitdiffstats
path: root/cad/pcb/Makefile
blob: 61018ef3df4df690421c461f6bfe86ce1d66c962 (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
# Created by: Michael Reifenberger <mr@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pcb
PORTVERSION=    20140316
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=    libgd.so:${PORTSDIR}/graphics/gd \
        libgtkglext-x11-1.0.so:${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}

CONFLICTS=  gts-[0-9]*

USE_AUTOTOOLS=  autoconf
USES=       gmake pkgconfig tk:run shared-mime-info desktop-file-utils
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV+= INSTALL_DATA="${BSD_INSTALL_DATA}"
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   ${PTHREAD_LIBS} -L${LOCALBASE}/lib

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
OPTIONS_SINGLE= GUI
OPTIONS_SINGLE_GUI=MOTIF GTK NONE
OPTIONS_DEFAULT=DOCS GTK
DOCS_CONFIGURE_ENABLE=  doc
DOCS_CONFIGURE_ON=  --docdir=${DOCSDIR}
NLS_CONFIGURE_ENABLE=   nls
NLS_CONFIGURE_ON=   --with-libintl-prefix=${LOCALBASE} \
            ${ICONV_CONFIGURE_ARG}
NLS_CONFIGURE_OFF=  --without-libintl \
            --without-iconv
NLS_USES=   gettext iconv
.for L in fr nl ru pt_BR
NLS_PLIST_FILES+=   share/locale/${L}/LC_MESSAGES/pcb.mo
.endfor
MOTIF_DESC= Motif widgets
MOTIF_USES= motif
MOTIF_CONFIGURE_ON= --with-gui=lesstif
MOTIF_CONFIGURE_ENV=    WISH=${WISH}
GTK_DESC=   GIMP ToolKit widgets
GTK_USE=    GNOME=gtk20
GTK_CONFIGURE_ON=   --with-gui=gtk
GTK_CONFIGURE_ENV=  WISH=${WISH}
NONE_DESC=  No GUI support
NONE_CONFIGURE_ON=  --without-gui
NONE_CONFIGURE_ENV= WISH=/usr/bin/true

.for a in ia64 powerpc sparc64
BROKEN_${a}=    Does not compile on ia64, powerpc, or sparc64
.endfor

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
INFO=       pcb
.endif

.include <bsd.port.mk>