source: trunk/dports/devel/codeblocks-devel/Portfile @ 50980

Last change on this file since 50980 was 50980, checked in by and.damore@…, 8 years ago

Maintainers batch change, removed @macports.org

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    codeblocks-devel
6version                 1.0
7revision                5074
8platforms               darwin freebsd
9categories              devel aqua x11
10maintainers             afb
11description             Open Source, Cross-platform, Free C/C++/D IDE
12long_description        Code::Blocks is a free C++ IDE built specifically \
13                        to meet the most demanding needs of its users. \
14                        It was designed, right from the start, to be \
15                        extensible and configurable.
16
17homepage                http://codeblocks.org/
18master_sites            sourceforge:codeblocks
19
20fetch.type      svn
21svn.url         svn://svn.berlios.de/codeblocks/trunk
22#svn.date       2008-05-19
23svn.tag         5074
24worksrcdir      trunk
25
26# autoconf >= 2.50, automake >= 1.9, libtool >= 1.4
27depends_lib     path:${prefix}/bin/autoconf:autoconf \
28                path:${prefix}/bin/aclocal:automake \
29                path:${prefix}/bin/glibtool:libtool
30
31configure.cmd   ./bootstrap && ./configure
32configure.env   ACLOCAL_FLAGS="-I ${prefix}/share/aclocal"
33configure.args  --with-contrib-plugins=all
34
35post-destroot {
36        system "strip -S ${destroot}${prefix}/bin/codeblocks"
37        system "strip -S ${destroot}${prefix}/lib/libcodeblocks*.so || true"
38        system "strip -S ${destroot}${prefix}/lib/libcodeblocks*.dylib || true"
39        system "strip -S ${destroot}${prefix}/lib/libwxsmithlib*.so || true"
40        system "strip -S ${destroot}${prefix}/lib/libwxsmithlib*.dylib || true"
41        system "strip -S ${destroot}${prefix}/share/codeblocks/plugins/*.so"
42}
43
44platform macosx {}
45if { [variant_isset macosx] && ![variant_isset x11] } { default_variants +aqua }
46if { [variant_isset puredarwin] } { default_variants +x11 }
47if { [variant_isset freebsd] } { default_variants +x11 }
48
49variant aqua requires macosx description "Use the wxMac port of wxWidgets" {
50        depends_lib port:wxWidgets
51
52    post-destroot {
53        xinstall -d -m 0755 ${destroot}/Applications/MacPorts
54        set appPath ${destroot}/Applications/MacPorts/CodeBlocks.app/Contents
55
56        xinstall -d -m 0755 ${appPath}
57        file copy -force ${worksrcpath}/codeblocks.plist \
58                  ${appPath}/Info.plist
59        xinstall -d -m 0755 ${appPath}/Resources
60        file copy -force ${worksrcpath}/src/src/resources/icons/app.icns \
61                  ${appPath}/Resources
62        file copy -force ${worksrcpath}/src/src/resources/icons/cbp.icns \
63                  ${appPath}/Resources
64        file copy -force ${worksrcpath}/src/src/resources/icons/csd.icns \
65                  ${appPath}/Resources
66        file copy -force ${worksrcpath}/src/src/resources/icons/c.icns \
67                  ${appPath}/Resources
68        file copy -force ${worksrcpath}/src/src/resources/icons/cg.icns \
69                  ${appPath}/Resources
70        file copy -force ${worksrcpath}/src/src/resources/icons/cpp.icns \
71                  ${appPath}/Resources
72        file copy -force ${worksrcpath}/src/src/resources/icons/d.icns \
73                  ${appPath}/Resources
74        file copy -force ${worksrcpath}/src/src/resources/icons/f.icns \
75                  ${appPath}/Resources
76        file copy -force ${worksrcpath}/src/src/resources/icons/h.icns \
77                  ${appPath}/Resources
78        file copy -force ${worksrcpath}/src/src/resources/icons/rc.icns \
79                  ${appPath}/Resources
80
81        xinstall -d -m 0755 ${appPath}/MacOS
82        ln -sf ${prefix}/bin/codeblocks ${appPath}/MacOS/CodeBlocks
83        xinstall -d -m 0755 ${appPath}/Resources/share
84        ln -sf ${prefix}/share/codeblocks ${appPath}/Resources/share/codeblocks
85       
86        delete ${destroot}${prefix}/share/applications/codeblocks.desktop
87        delete ${destroot}${prefix}/share/icons/gnome
88        delete ${destroot}${prefix}/share/mime/packages/codeblocks.xml
89        delete ${destroot}${prefix}/share/pixmaps/codeblocks.png
90    }
91}
92
93variant x11 conflicts aqua description "Use the wxGTK port of wxWidgets" {
94        depends_lib port:wxgtk
95}
96
Note: See TracBrowser for help on using the repository browser.