[60538] trunk/dports/graphics/png2ico
ryandesign at macports.org
ryandesign at macports.org
Sat Nov 14 23:09:35 PST 2009
Revision: 60538
http://trac.macports.org/changeset/60538
Author: ryandesign at macports.org
Date: 2009-11-14 23:09:31 -0800 (Sat, 14 Nov 2009)
Log Message:
-----------
png2ico: add license, make sure we're UsingTheRightCompiler
Modified Paths:
--------------
trunk/dports/graphics/png2ico/Portfile
Added Paths:
-----------
trunk/dports/graphics/png2ico/files/
trunk/dports/graphics/png2ico/files/patch-Makefile
Modified: trunk/dports/graphics/png2ico/Portfile
===================================================================
--- trunk/dports/graphics/png2ico/Portfile 2009-11-15 06:53:21 UTC (rev 60537)
+++ trunk/dports/graphics/png2ico/Portfile 2009-11-15 07:09:31 UTC (rev 60538)
@@ -7,6 +7,7 @@
categories graphics
platforms darwin
maintainers nomaintainer
+license GPLv2
description Converts PNG files to Windows icon resource files.
long_description ${description}
@@ -19,9 +20,13 @@
worksrcdir ${name}
+patchfiles patch-Makefile
+
use_configure no
-build.args CPPFLAGS="-I${prefix}/include -L${prefix}/lib"
+build.args CXX=${configure.cxx} \
+ CPPFLAGS=${configure.cppflags} \
+ LDFLAGS=${configure.ldflags}
destroot {
xinstall -m 755 ${worksrcpath}/png2ico ${destroot}${prefix}/bin
@@ -31,8 +36,3 @@
xinstall -m 644 ${worksrcpath}/doc/png2ico.1 \
${destroot}${prefix}/share/man/man1/
}
-
-platform darwin 8 {
- build.args-append CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0
-}
-
Added: trunk/dports/graphics/png2ico/files/patch-Makefile
===================================================================
--- trunk/dports/graphics/png2ico/files/patch-Makefile (rev 0)
+++ trunk/dports/graphics/png2ico/files/patch-Makefile 2009-11-15 07:09:31 UTC (rev 60538)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2002-12-07 16:49:52.000000000 -0600
++++ Makefile 2009-11-15 01:04:56.000000000 -0600
+@@ -5,7 +5,7 @@
+ all: png2ico
+
+ png2ico: png2ico.cpp
+- g++ $(CPPFLAGS) $(DEBUG) -o $@ $< -lpng -lz -lm
++ $(CXX) $(CPPFLAGS) $(LDFLAGS) $(DEBUG) -o $@ $< -lpng -lz -lm
+
+ doc/png2ico.txt: doc/png2ico.1
+ man $< |sed -e $$'s/.\b\\(.\\)/\\1/g' -e 's/\(.*\)/\1'$$'\r/' >$@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091114/d06b7109/attachment.html>
More information about the macports-changes
mailing list