[27533] trunk/dports/graphics/jpeg/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Aug 6 20:33:24 PDT 2007


Revision: 27533
          http://trac.macosforge.org/projects/macports/changeset/27533
Author:   yves at macports.org
Date:     2007-08-06 20:33:23 -0700 (Mon, 06 Aug 2007)

Log Message:
-----------
Add lossless crop and drop support for jpeg (ticket:12165)

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

Modified: trunk/dports/graphics/jpeg/Portfile
===================================================================
--- trunk/dports/graphics/jpeg/Portfile	2007-08-07 02:35:32 UTC (rev 27532)
+++ trunk/dports/graphics/jpeg/Portfile	2007-08-07 03:33:23 UTC (rev 27533)
@@ -3,7 +3,7 @@
 PortSystem	1.0
 name		jpeg
 version		6b 
-revision	1
+revision	2
 categories	graphics
 maintainers	waqar at macports.org
 description	Library for manipulating JPEG images
@@ -18,27 +18,37 @@
 	list.  Mailing list members are notified of updates and have 	\
 	a chance to participate in technical discussions, etc.
 
-homepage	http://www.ijg.org/
-master_sites	http://www.ijg.org/files \
-		ftp://ftp.uu.net/graphics/jpeg
+homepage        http://www.ijg.org/
+platforms       darwin freebsd sunos
+master_sites    http://www.ijg.org/files \
+                ftp://ftp.uu.net/graphics/jpeg \
+                http://sylvana.net/jpegcrop/:drop
 
-distname	${name}src.v${version}
-worksrcdir	${name}-${version}
-platforms	darwin freebsd sunos
-checksums	md5 dbd5f3b47ed13132f04c685d608a7547
-patchfiles	patch-config.sub patch-config.guess patch-ltmain.sh \
-		patch-ltconfig patch-makefile.cfg
+distname        ${name}src.v${version}
+worksrcdir      ${name}-${version}
+set jpegmain    ${distname}${extract.suffix}
+distfiles       ${jpegmain} \
+                droppatch.tar.gz:drop
+                
+checksums       ${jpegmain} md5 dbd5f3b47ed13132f04c685d608a7547 \
+                droppatch.tar.gz md5 511c39779ac96cd41ca1e0a87b239287
+extract.only    ${jpegmain}
+
+patchfiles      patch-config.sub patch-config.guess patch-ltmain.sh \
+                patch-ltconfig patch-makefile.cfg
 post-patch {
-	reinplace	"s|(prefix)/man|(prefix)/share/man|g" makefile.cfg
+    reinplace	"s|(prefix)/man|(prefix)/share/man|g" makefile.cfg
+    cd ${worksrcpath}
+    system "tar zxf ${distpath}/droppatch.tar.gz"
 }
 
-configure.args	--enable-shared --enable-static
-destroot.destdir	prefix=${destroot}${prefix}
+configure.args      --enable-shared --enable-static
+destroot.destdir    prefix=${destroot}${prefix}
 pre-destroot {
-	xinstall -d ${destroot}${prefix}/bin
-	xinstall -d ${destroot}${prefix}/share/man/man1
-	xinstall -d ${destroot}${prefix}/include
-	xinstall -d ${destroot}${prefix}/lib
+    xinstall -d ${destroot}${prefix}/bin
+    xinstall -d ${destroot}${prefix}/share/man/man1
+    xinstall -d ${destroot}${prefix}/include
+    xinstall -d ${destroot}${prefix}/lib
 }
 
 

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


More information about the macports-changes mailing list