Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / cad / pcb / Makefile
blob343b84bd3eacf2e1d63c2aa3de88e5b5bf11fb22
1 # $NetBSD: Makefile,v 1.67 2013/01/26 21:37:06 adam Exp $
4 DISTNAME= pcb-20110918
5 PKGREVISION= 9
6 CATEGORIES= cad
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
12 LICENSE= gnu-gpl-v2
14 PKG_INSTALLATION_TYPES= overwrite pkgviews
16 DEPENDS+= gettext-tools>=0.14.6:../../devel/gettext-tools
18 CONFLICTS+= pcb-current-[0-9]*
20 GNU_CONFIGURE= yes
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
33 USE_PKGLOCALEDIR= yes
34 INFO_FILES= yes
35 LDFLAGS+= -lstdc++ # direct link as required by ld v2.22
37 USE_LANGUAGES= c c++
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
58 .else
59 PKG_FAIL_REASON= Invalid options
60 .endif
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"
65 .endif
67 EXPORTERS= bom gerber ps
68 .if !empty(PKG_OPTIONS:Mpng)
69 EXPORTERS+= png
70 .include "../../graphics/gd/buildlink3.mk"
71 .endif
73 CONFIGURE_ARGS+= --with-exporters=${EXPORTERS:Q}
75 post-extract:
76 ${CHMOD} -R go-w ${WRKSRC}
78 # remove some stuff that is either broken or unmaintained
79 # and would require another runtime depends
80 post-install:
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"