[26979] trunk/dports/devel

source_changes at macosforge.org source_changes at macosforge.org
Sun Jul 15 01:35:57 PDT 2007


Revision: 26979
          http://trac.macosforge.org/projects/macports/changeset/26979
Author:   afb at macports.org
Date:     2007-07-15 01:35:57 -0700 (Sun, 15 Jul 2007)

Log Message:
-----------
new port, builds from svn trunk

Added Paths:
-----------
    trunk/dports/devel/codeblocks-devel/
    trunk/dports/devel/codeblocks-devel/Portfile

Added: trunk/dports/devel/codeblocks-devel/Portfile
===================================================================
--- trunk/dports/devel/codeblocks-devel/Portfile	                        (rev 0)
+++ trunk/dports/devel/codeblocks-devel/Portfile	2007-07-15 08:35:57 UTC (rev 26979)
@@ -0,0 +1,94 @@
+# $Id$
+
+PortSystem 1.0
+
+name			codeblocks-devel
+version			1.0
+#revision		0
+platforms		darwin freebsd
+categories		devel aqua x11
+maintainers		afb at macports.org
+description		Open Source, Cross-platform, Free C/C++/D IDE
+long_description	Code::Blocks is a free C++ IDE built specifically \
+			to meet the most demanding needs of its users. \
+			It was designed, right from the start, to be \
+			extensible and configurable.
+
+homepage		http://codeblocks.org/
+master_sites		sourceforge:codeblocks
+
+fetch.type	svn
+svn.url		svn://svn.berlios.de/codeblocks/trunk
+#svn.tag		4261
+worksrcdir	trunk
+
+# autoconf >= 2.50, automake >= 1.9, libtool >= 1.4
+depends_build	path:${prefix}/bin/autoconf:autoconf \
+		path:${prefix}/bin/aclocal:automake \
+		path:${prefix}/bin/glibtool:libtool
+
+configure.cmd   ./bootstrap && ./configure
+configure.env   ACLOCAL_FLAGS="-I ${prefix}/share/aclocal"
+configure.args  --enable-contrib
+
+post-destroot {
+	system "strip -S ${destroot}${prefix}/bin/codeblocks"
+	system "strip -S ${destroot}${prefix}/lib/libcodeblocks*.so || true"
+	system "strip -S ${destroot}${prefix}/lib/libcodeblocks*.dylib || true"
+	system "strip -S ${destroot}${prefix}/lib/libwxsmithlib*.so || true"
+	system "strip -S ${destroot}${prefix}/lib/libwxsmithlib*.dylib || true"
+	system "strip -S ${destroot}${prefix}/share/codeblocks/plugins/*.so"
+}
+
+
+default_variants +aqua
+platform macosx { if {[variant_isset x11]} { variant_undef aqua } }
+
+variant aqua requires macosx description "Use the wxMac port of wxWidgets" {
+	depends_lib-append port:wxWidgets
+
+    post-destroot {
+	xinstall -d -m 0755 ${destroot}/Applications/MacPorts
+	set appPath ${destroot}/Applications/MacPorts/CodeBlocks.app/Contents
+
+	xinstall -d -m 0755 ${appPath}
+	file copy -force ${worksrcpath}/codeblocks.plist \
+	          ${appPath}/Info.plist
+	xinstall -d -m 0755 ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/app.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/cbp.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/csd.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/c.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/cg.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/cpp.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/d.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/f.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/h.icns \
+	          ${appPath}/Resources
+	file copy -force ${worksrcpath}/src/src/resources/icons/rc.icns \
+	          ${appPath}/Resources
+
+	xinstall -d -m 0755 ${appPath}/MacOS
+	ln -sf ${prefix}/bin/codeblocks ${appPath}/MacOS/CodeBlocks
+	xinstall -d -m 0755 ${appPath}/Resources/share
+	ln -sf ${prefix}/share/codeblocks ${appPath}/Resources/share/codeblocks
+	
+	delete ${destroot}${prefix}/share/applications/codeblocks.desktop
+	delete ${destroot}${prefix}/share/icons/gnome
+	delete ${destroot}${prefix}/share/mime/packages/codeblocks.xml
+	delete ${destroot}${prefix}/share/pixmaps/codeblocks.png
+    }
+}
+
+variant x11 conflicts aqua description "Use the wxGTK port of wxWidgets" {
+	depends_lib-append port:wxgtk
+}
+


Property changes on: trunk/dports/devel/codeblocks-devel/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070715/be3d0b4f/attachment.html


More information about the macports-changes mailing list