1 # $NetBSD: Makefile,v 1.67 2013/01/26 21:37:06 adam Exp $
7 MASTER_SITES
= ${MASTER_SITE_SOURCEFORGE
:=pcb
/}
9 MAINTAINER
= dmcmahill@NetBSD.org
10 HOMEPAGE
= http
://pcb.gpleda.org
/
11 COMMENT
= Printed circuit board layout system
14 PKG_INSTALLATION_TYPES
= overwrite pkgviews
16 DEPENDS
+= gettext-tools
>=0.14.6:..
/..
/devel
/gettext-tools
18 CONFLICTS
+= pcb-current-
[0-9]*
21 CONFIGURE_ENV
+= WISH
=${TOOLS_PATH.wish
}
22 # work around a problem where the configure script uses
23 # AM_PROG_LEX and follows it with an AC_PATH_PROG to try
24 # and make sure that lex really does exist. Unfortunately
25 # that test is thrown off by pkgsrc giving a full path for LEX.
26 # so, bypass the test and put our desired result directly into the
27 # configure cache. Same for YACC.
28 CONFIGURE_ENV
+= ac_cv_path_LEX_PATH
=${TOOLS_PATH.
lex}
29 CONFIGURE_ENV
+= ac_cv_path_YACC_PATH
=${TOOLS_PATH.bison
}
30 CONFIGURE_ARGS
+= --disable-update-desktop-database
31 CONFIGURE_ARGS
+= --disable-update-mime-database
32 USE_TOOLS
+= bison gm4
:run gmake intltool
lex wish
:run pkg-config
35 LDFLAGS
+= -lstdc
++ # direct link as required by ld v2.22
39 PKG_OPTIONS_VAR
= PKG_OPTIONS.pcb
40 PKG_SUPPORTED_OPTIONS
= png
41 PKG_OPTIONS_REQUIRED_GROUPS
= gui
42 PKG_OPTIONS_GROUP.gui
= batch gtk motif
43 PKG_SUGGESTED_OPTIONS
= gtk png
45 .
include "../../mk/bsd.prefs.mk"
46 .
include "../../mk/bsd.options.mk"
48 .if
!empty
(PKG_OPTIONS
:Mmotif
)
49 .
include "../../mk/motif.buildlink3.mk"
50 CONFIGURE_ARGS
+= --with-gui
=lesstif
51 .elif
!empty
(PKG_OPTIONS
:Mgtk
)
52 .
include "../../graphics/gtkglext/buildlink3.mk"
53 .
include "../../graphics/glu/buildlink3.mk"
54 .
include "../../x11/gtk2/buildlink3.mk"
55 CONFIGURE_ARGS
+= --with-gui
=gtk
56 .elif
!empty
(PKG_OPTIONS
:Mbatch
)
57 CONFIGURE_ARGS
+= --with-gui
=none
59 PKG_FAIL_REASON
= Invalid options
62 # dbus is only needed if we are building a gui (lesstif/gtk)
63 .if empty
(PKG_OPTIONS
:Mbatch
)
64 .
include "../../sysutils/dbus/buildlink3.mk"
67 EXPORTERS
= bom gerber ps
68 .if
!empty
(PKG_OPTIONS
:Mpng
)
70 .
include "../../graphics/gd/buildlink3.mk"
73 CONFIGURE_ARGS
+= --with-exporters
=${EXPORTERS
:Q
}
76 ${CHMOD} -R go-w
${WRKSRC}
78 # remove some stuff that is either broken or unmaintained
79 # and would require another runtime depends
81 ${RM} ${DESTDIR}${PREFIX}/share
/pcb
/tools
/PCB2HPGL
82 ${RM} ${DESTDIR}${PREFIX}/share
/pcb
/tools
/tgo2pcb.tcl
84 .
include "../../devel/gettext-lib/buildlink3.mk"
85 # NOTE: glib is needed by the core of pcb and not just the GTK gui.
86 .
include "../../devel/glib2/buildlink3.mk"
87 .
include "../../graphics/hicolor-icon-theme/buildlink3.mk"
88 .
include "../../sysutils/desktop-file-utils/desktopdb.mk"
89 .
include "../../mk/bsd.pkg.mk"