source: trunk/dports/x11/pcb/Portfile

Last change on this file was 132884, checked in by jeremyhu@…, 3 years ago

pcb: Add dependency on libGLU

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 132884 2015-02-12 02:33:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pcb
7version             20140316
8
9categories          x11 graphics
10maintainers         nomaintainer
11license             GPL-2+
12
13description         Printed Circuit Board Layout Tool
14long_description    PCB is an interactive printed circuit board editor for the \
15                    X11 window system. PCB includes a rats nest feature, design \
16                    rule checking, and can provide industry standard RS-274-X \
17                    (Gerber), NC drill, and centroid data (X-Y data) output for \
18                    use in the board fabrication and assembly process. PCB offers \
19                    high end features such as an autorouter and trace optimizer \
20                    which can tremendously reduce layout time.
21
22homepage            http://pcb.sourceforge.net
23master_sites        sourceforge
24platforms           darwin
25
26checksums           md5     d3bc42a703aed651f1e7011b235be467 \
27                    rmd160  70ef878227ad52c83ce4499373550e7a8d807dd4 \
28                    sha1    ec714ff136d1817e500e1a9e654e786883b9501e \
29                    sha256  82c4f39438ee4e278196a3b67ef021145dcfbb00519508ccf51aa7832121c950
30                   
31
32depends_build       port:intltool \
33                    port:pkgconfig
34depends_run         bin:wish:tk
35depends_lib         port:dbus \
36                    port:gd2 \
37                    port:gtk2 \
38                    port:gtkglext \
39                    port:libGLU \
40                    port:mesa
41
42configure.args      --mandir=${prefix}/share/man \
43                    --infodir=${prefix}/share/info \
44                    --disable-update-desktop-database \
45                    --enable-dbus \
46                    --disable-update-mime-database
47
48post-extract {
49    file copy ${worksrcpath}/gts/gts.h ${worksrcpath}/gts/pcbgts.h
50}
51
52post-patch {
53    #rename pcb's builtin gts library so it won't conflict with port gts
54    reinplace "s|gts.h|pcbgts.h|"  ${worksrcpath}/gts/Makefile.in \
55                                   ${worksrcpath}/src/toporouter.h
56    reinplace "s|gts.a|pcbgts.a|g" ${worksrcpath}/gts/Makefile.in \
57                                   ${worksrcpath}/src/Makefile.in
58}
59
60post-configure {
61    #hackish, couldn't disable OS X SDKs' OpenGL in configure script
62    reinplace "s|#define HAVE_OPENGL_GL_H 1||"  ${worksrcpath}/config.h
63    reinplace "s|#define HAVE_OPENGL_GLU_H 1||" ${worksrcpath}/config.h
64}
65
66build.env           LC_CTYPE=en_US.ISO8859-1
Note: See TracBrowser for help on using the repository browser.