summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-01-09 11:55:52 +0000
committerdmcmahill <dmcmahill>2007-01-09 11:55:52 +0000
commit283e012138b15b6b52a321ea33f68b46d6552605 (patch)
tree392c1480aac61b600d94d7168e2b932e0adccffb
parent5304f605b93c623f4e1c2f092d3df865a5508141 (diff)
downloadpkgsrc-283e012138b15b6b52a321ea33f68b46d6552605.tar.gz
Add an option to allow a batch mode pcb to be built. Useful for webserver
environments.
-rw-r--r--cad/pcb/Makefile12
-rw-r--r--mk/defaults/options.description1
2 files changed, 9 insertions, 4 deletions
diff --git a/cad/pcb/Makefile b/cad/pcb/Makefile
index 9a8ea874b65..fd89a43f3c2 100644
--- a/cad/pcb/Makefile
+++ b/cad/pcb/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2006/08/23 11:26:44 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.38 2007/01/09 11:55:52 dmcmahill Exp $
#
DISTNAME= pcb-${SNAPDATE}
@@ -22,8 +22,8 @@ INFO_FILES= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.pcb
PKG_SUPPORTED_OPTIONS= png
PKG_OPTIONS_REQUIRED_GROUPS= gui
-PKG_OPTIONS_GROUP.gui= gtk motif
-PKG_SUGGESTED_OPTIONS= png gtk
+PKG_OPTIONS_GROUP.gui= batch gtk motif
+PKG_SUGGESTED_OPTIONS= gtk png
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
@@ -31,10 +31,14 @@ PKG_SUGGESTED_OPTIONS= png gtk
.if !empty(PKG_OPTIONS:Mmotif)
.include "../../mk/motif.buildlink3.mk"
CONFIGURE_ARGS+= --with-gui=lesstif
-.else
+.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
diff --git a/mk/defaults/options.description b/mk/defaults/options.description
index 0930a5020af..52c1774a156 100644
--- a/mk/defaults/options.description
+++ b/mk/defaults/options.description
@@ -21,6 +21,7 @@ aterm-xterm-scroll Use xterm-scrollbar instead of a NeXT-like one.
audiofile
authlib
avifile
+batch Enable batch mode support.
bdb
bittorrent Enable bittorrent support
bktr