aboutsummaryrefslogtreecommitdiffstats
path: root/cad/pcb/Makefile
blob: 61f846c8b7f3a9f4c6146c48565850a2b0a5d224 (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
# New ports collection makefile for:    PCB
# Date created:     19 October 1994
# Whom:         mr
#
# $FreeBSD$
#

PORTNAME=   pcb
PORTVERSION=    20080202
PORTREVISION=   3
CATEGORIES= cad
MASTER_SITES=   SF

MAINTAINER= hrs@FreeBSD.org
COMMENT=    X11 interactive printed circuit board layout system

LIB_DEPENDS=    gd.4:${PORTSDIR}/graphics/gd
RUN_DEPENDS=    m4>=1.4.11:${PORTSDIR}/devel/m4
BUILD_DEPENDS=  ${RUN_DEPENDS}

GNU_CONFIGURE=  yes
.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
USE_GMAKE=  yes
USE_TK_RUN= 83
INSTALLS_ICONS= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
        LDFLAGS="${PTHREAD_LIBS} -L${LOCALBASE}/lib" \
        INSTALL_DATA="/usr/bin/install ${COPY} ${_SHROWNGRP} -m ${SHAREMODE}"
CONFIGURE_ARGS= --docdir=${DOCSDIR}
PORTDOCS= pcb.html pcb.ps refcard.ps pcb.pdf refcard.pdf pad.eps    \
    puller.eps thermal.eps pad.gif puller.gif thermal.gif pad.pdf   \
    puller.pdf thermal.pdf pad.png puller.png thermal.png

.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=    --without-gui
CONFIGURE_ENV+=     WISH=${TRUE}
.elif defined(WITH_MOTIF_GUI)
USE_MOTIF=  yes
USE_TK_RUN= yes
CONFIGURE_ARGS+=    --with-gui=lesstif
CONFIGURE_ENV+=     WISH=${WISH}
.else
USE_GNOME=  gtk20 desktopfileutils
USE_TK_RUN= yes
CONFIGURE_ARGS+=    --with-gui=gtk
CONFIGURE_ENV+=     WISH=${WISH}
.endif

.if !defined(NOPORTDOCS)
INFO=       pcb
MAN1=       pcb.1
.else
CONFIGURE_ARGS+=    --disable-doc
.endif

.include <bsd.port.mk>