Annotation of pkgsrc/cad/pcb/Makefile, Revision 1.60
1.60 ! wiz 1: # $NetBSD: Makefile,v 1.59 2012/02/06 12:39:34 wiz Exp $
1.27 dmcmahil 2: #
1.1 frueauf 3:
1.57 dmcmahil 4: DISTNAME= pcb-20110918
1.60 ! wiz 5: PKGREVISION= 2
1.1 frueauf 6: CATEGORIES= cad
1.27 dmcmahil 7: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pcb/}
1.1 frueauf 8:
1.21 grant 9: MAINTAINER= dmcmahill@NetBSD.org
1.57 dmcmahil 10: HOMEPAGE= http://pcb.gpleda.org/
1.27 dmcmahil 11: COMMENT= Printed circuit board layout system
1.55 dmcmahil 12: LICENSE= gnu-gpl-v2
1.1 frueauf 13:
1.27 dmcmahil 14: PKG_INSTALLATION_TYPES= overwrite pkgviews
1.43 joerg 15: PKG_DESTDIR_SUPPORT= user-destdir
1.23 dmcmahil 16:
1.42 dmcmahil 17: DEPENDS+= gettext-tools>=0.14.6:../../devel/gettext-tools
18:
1.23 dmcmahil 19: CONFLICTS+= pcb-current-[0-9]*
1.1 frueauf 20:
1.27 dmcmahil 21: GNU_CONFIGURE= yes
1.30 jlam 22: CONFIGURE_ENV+= WISH=${TOOLS_PATH.wish}
1.39 dmcmahil 23: # work around a problem where the configure script uses
1.41 martti 24: # AM_PROG_LEX and follows it with an AC_PATH_PROG to try
1.39 dmcmahil 25: # and make sure that lex really does exist. Unfortunately
26: # that test is thrown off by pkgsrc giving a full path for LEX.
27: # so, bypass the test and put our desired result directly into the
28: # configure cache. Same for YACC.
29: CONFIGURE_ENV+= ac_cv_path_LEX_PATH=${TOOLS_PATH.lex}
30: CONFIGURE_ENV+= ac_cv_path_YACC_PATH=${TOOLS_PATH.bison}
1.42 dmcmahil 31: CONFIGURE_ARGS+= --disable-update-desktop-database
32: CONFIGURE_ARGS+= --disable-update-mime-database
33: USE_TOOLS+= bison gm4:run gmake intltool lex wish:run pkg-config
34: USE_PKGLOCALEDIR= yes
1.37 dmcmahil 35: INFO_FILES= yes
1.58 marino 36: LDFLAGS+= -lstdc++ # direct link as required by ld v2.22
1.7 dmcmahil 37:
1.57 dmcmahil 38: USE_LANGUAGES= c c++
39:
1.35 dmcmahil 40: PKG_OPTIONS_VAR= PKG_OPTIONS.pcb
41: PKG_SUPPORTED_OPTIONS= png
42: PKG_OPTIONS_REQUIRED_GROUPS= gui
1.38 dmcmahil 43: PKG_OPTIONS_GROUP.gui= batch gtk motif
44: PKG_SUGGESTED_OPTIONS= gtk png
1.15 jlam 45:
1.34 dmcmahil 46: .include "../../mk/bsd.prefs.mk"
47: .include "../../mk/bsd.options.mk"
48:
1.35 dmcmahil 49: .if !empty(PKG_OPTIONS:Mmotif)
1.34 dmcmahil 50: .include "../../mk/motif.buildlink3.mk"
51: CONFIGURE_ARGS+= --with-gui=lesstif
1.38 dmcmahil 52: .elif !empty(PKG_OPTIONS:Mgtk)
1.57 dmcmahil 53: .include "../../graphics/gtkglext/buildlink3.mk"
54: .include "../../graphics/glu/buildlink3.mk"
1.27 dmcmahil 55: .include "../../x11/gtk2/buildlink3.mk"
1.34 dmcmahil 56: CONFIGURE_ARGS+= --with-gui=gtk
1.38 dmcmahil 57: .elif !empty(PKG_OPTIONS:Mbatch)
58: CONFIGURE_ARGS+= --with-gui=none
59: .else
60: PKG_FAIL_REASON= Invalid options
1.34 dmcmahil 61: .endif
62:
1.54 dmcmahil 63: # dbus is only needed if we are building a gui (lesstif/gtk)
64: .if empty(PKG_OPTIONS:Mbatch)
65: .include "../../sysutils/dbus/buildlink3.mk"
66: .endif
67:
1.34 dmcmahil 68: EXPORTERS= bom gerber ps
69: .if !empty(PKG_OPTIONS:Mpng)
70: EXPORTERS+= png
71: .include "../../graphics/gd/buildlink3.mk"
72: .endif
73:
74: CONFIGURE_ARGS+= --with-exporters=${EXPORTERS:Q}
75:
1.45 hasso 76: post-extract:
77: ${CHMOD} -R go-w ${WRKSRC}
78:
1.42 dmcmahil 79: # remove some stuff that is either broken or unmaintained
80: # and would require another runtime depends
81: post-install:
1.43 joerg 82: ${RM} ${DESTDIR}${PREFIX}/share/pcb/tools/PCB2HPGL
83: ${RM} ${DESTDIR}${PREFIX}/share/pcb/tools/tgo2pcb.tcl
1.42 dmcmahil 84:
1.57 dmcmahil 85: .include "../../devel/gettext-lib/buildlink3.mk"
1.47 dmcmahil 86: # NOTE: glib is needed by the core of pcb and not just the GTK gui.
87: .include "../../devel/glib2/buildlink3.mk"
1.42 dmcmahil 88: .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
89: .include "../../sysutils/desktop-file-utils/desktopdb.mk"
1.1 frueauf 90: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>