blob: 08110f46923eb47d4aef075f68652d5a12a44d5e (
plain)
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
|
# $NetBSD: Makefile,v 1.39 2007/02/09 23:53:05 dmcmahill Exp $
#
DISTNAME= pcb-20070208p1
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pcb/}
MAINTAINER= dmcmahill@NetBSD.org
HOMEPAGE= http://pcb.sourceforge.net/
COMMENT= Printed circuit board layout system
PKG_INSTALLATION_TYPES= overwrite pkgviews
CONFLICTS+= pcb-current-[0-9]*
GNU_CONFIGURE= yes
CONFIGURE_ENV+= WISH=${TOOLS_PATH.wish}
# work around a problem where the configure script uses
# AM_PROG_LEX and follows it with an AC_PATH_PROG to try
# and make sure that lex really does exist. Unfortunately
# that test is thrown off by pkgsrc giving a full path for LEX.
# so, bypass the test and put our desired result directly into the
# configure cache. Same for YACC.
CONFIGURE_ENV+= ac_cv_path_LEX_PATH=${TOOLS_PATH.lex}
CONFIGURE_ENV+= ac_cv_path_YACC_PATH=${TOOLS_PATH.bison}
USE_TOOLS+= bison gm4:run gmake lex wish:run pkg-config
INFO_FILES= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.pcb
PKG_SUPPORTED_OPTIONS= png
PKG_OPTIONS_REQUIRED_GROUPS= gui
PKG_OPTIONS_GROUP.gui= batch gtk motif
PKG_SUGGESTED_OPTIONS= gtk png
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mmotif)
.include "../../mk/motif.buildlink3.mk"
CONFIGURE_ARGS+= --with-gui=lesstif
.elif !empty(PKG_OPTIONS:Mgtk)
.include "../../devel/glib2/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
CONFIGURE_ARGS+= --with-gui=gtk
.elif !empty(PKG_OPTIONS:Mbatch)
CONFIGURE_ARGS+= --with-gui=none
.else
PKG_FAIL_REASON= Invalid options
.endif
EXPORTERS= bom gerber ps
.if !empty(PKG_OPTIONS:Mpng)
EXPORTERS+= png
.include "../../graphics/gd/buildlink3.mk"
.endif
CONFIGURE_ARGS+= --with-exporters=${EXPORTERS:Q}
.include "../../mk/bsd.pkg.mk"
|