[25270] trunk/dports/graphics/dcraw/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed May 16 19:11:39 PDT 2007


Revision: 25270
          http://trac.macosforge.org/projects/macports/changeset/25270
Author:   takanori at macports.org
Date:     2007-05-16 19:11:39 -0700 (Wed, 16 May 2007)

Log Message:
-----------
Version 8.72.

Modified Paths:
--------------
    trunk/dports/graphics/dcraw/Portfile

Modified: trunk/dports/graphics/dcraw/Portfile
===================================================================
--- trunk/dports/graphics/dcraw/Portfile	2007-05-17 02:01:06 UTC (rev 25269)
+++ trunk/dports/graphics/dcraw/Portfile	2007-05-17 02:11:39 UTC (rev 25270)
@@ -2,7 +2,7 @@
 
 PortSystem			1.0
 name				dcraw
-version				8.19
+version				8.72
 categories			graphics
 maintainers			nomaintainer at macports.org
 description			Raw Digital Photo Decoding, supporting 209 cameras
@@ -14,29 +14,44 @@
 # dcraw is provided as raw source and man page (no tarball/zipfile), so
 # a tarball is placed here to avoid the regular checksum issues when the .c
 # file is updated to a new version
-master_sites		http://www.opendarwin.org/~blb/
-use_bzip2			yes
+master_sites		http://www.cybercom.net/~dcoffin/dcraw/archive/
 
-checksums			md5 fc0c316efc0babf2efaab49b9ac6d048 \
-					sha1 3879b53b9a032f11e653f5342be9cde00d9fceb1 \
-					rmd160 1a454ab230ca5fe950bf664cccf24a939cf59fdb
+checksums			md5 1b2dbeb7cdb570ee7d8273bc7b7352d7 \
+				sha1 6e02993b2e26b80cf2882910f042dd66ae093cf9 \
+				rmd160 0365d5a4badd525ee391a4c90b07fc4cbe3f3f81
+worksrcdir			$name
 
+depends_lib			port:gettext \
+				port:libiconv \
+				port:jpeg \
+				port:lcms 
 
-depends_lib			port:jpeg port:lcms
-
 use_configure		no
 
 build {
 	cd ${worksrcpath}
-	system "cc -o dcraw -O3 dcraw.c -ljpeg -llcms -I${prefix}/include \
-		-L${prefix}/lib"
+	system "cc -o dcraw -O3 dcraw.c -ljpeg -llcms -lintl \
+	       -I${prefix}/include -L${prefix}/lib \
+	       -DLOCALEDIR=\\\"${prefix}/share/locale/\\\""
 }
 
 destroot {
-	xinstall -m 755 -d ${destroot}${prefix}/bin \
-		${destroot}${prefix}/share/man/man1
-	xinstall -m 755 -W ${worksrcpath} dcraw ${destroot}${prefix}/bin
-	xinstall -m 644 -W ${worksrcpath} dcraw.1 \
-		${destroot}${prefix}/share/man/man1
+	xinstall -s -m 755 -W ${worksrcpath} dcraw ${destroot}${prefix}/bin
+	xinstall -m 644 -W ${worksrcpath} dcraw.1 ${destroot}${prefix}/share/man/man1
+	foreach lang {eo ru fr it de pt es zh_TW zh_CN nl pl hu} {
+		if {[file exist ${worksrcpath}/dcraw_${lang}.1]} {
+			xinstall -m 755 -d ${destroot}${prefix}/share/man/${lang}/man1
+			xinstall -m 644 -W ${worksrcpath} dcraw_${lang}.1 ${destroot}${prefix}/share/man/${lang}/man1/dcraw.1
+		}
+		if {[file exist ${worksrcpath}/dcraw_${lang}.po]} {
+			xinstall -m 755 -d ${destroot}${prefix}/share/locale/${lang}/LC_MESSAGES
+			system "msgfmt -o ${destroot}${prefix}/share/locale/${lang}/LC_MESSAGES/dcraw.mo ${worksrcpath}/dcraw_${lang}.po"
+		}
+	}
 }
 
+pre-activate {
+    ui_msg "This port conflicts with ufraw. If this port fails to"
+    ui_msg "activate, uninstall or deactivate ufraw and attempt to"
+    ui_msg "activate this port again."
+}

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


More information about the macports-changes mailing list