[27789] trunk/dports/aqua/FFView/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 14 04:01:43 PDT 2007


Revision: 27789
          http://trac.macosforge.org/projects/macports/changeset/27789
Author:   nox at macports.org
Date:     2007-08-14 04:01:43 -0700 (Tue, 14 Aug 2007)

Log Message:
-----------
FFView:
 * Updated to 0.9.8.
 * Ported to xcode portgroup.

Modified Paths:
--------------
    trunk/dports/aqua/FFView/Portfile

Modified: trunk/dports/aqua/FFView/Portfile
===================================================================
--- trunk/dports/aqua/FFView/Portfile	2007-08-14 09:55:40 UTC (rev 27788)
+++ trunk/dports/aqua/FFView/Portfile	2007-08-14 11:01:43 UTC (rev 27789)
@@ -1,9 +1,10 @@
 # $Id$
 
-PortSystem 1.0
+PortSystem		1.0
+PortGroup		xcode 1.0
 
 name			FFView
-version			0.9
+version			0.9.8
 categories		aqua graphics
 platforms		darwin
 maintainers		nomaintainer at macports.org
@@ -17,42 +18,47 @@
 
 homepage		http://www.feedface.com/projects/ffview.html
 master_sites	http://www.feedface.com/projects/files/ffview/
-distfiles		${name}-src-${version}.tar.bz2 \
-				FFArchive-src-0.6.4.tar.bz2 \
-				FFEXIF-src-0.5.tar.bz2
-checksums		${name}-src-${version}.tar.bz2 \
-					md5 80083705219c61b0b43e340d31e7977c \
-				FFArchive-src-0.6.4.tar.bz2 \
-					md5 b5c2082253b8bad9100f26d2df2e142d \
-				FFEXIF-src-0.5.tar.bz2 md5 98469f91ccb6bf94423d6b240841fe68
+distname		${name}-src-${version}
 use_bzip2		yes
+distfiles-append \
+				[suffix FFArchive-src-0.8.1] \
+				[suffix FFEXIF-src-0.5.2]
 
+checksums		[suffix ${distname}] \
+					md5 19b0aa32ef1f036864404a3726532969 \
+					sha1 ce38bf5e9313c3c48f6366718069d4252957d204 \
+					rmd160 d5ebb3b5c9457ad3abade6ead945b2feb2c5fe54 \
+				[suffix FFArchive-src-0.8.1] \
+					md5 60cc021380de3d05480345aa29783b10 \
+					sha1 4b6aa52e2c444c3b4b31604f3cac28a8b44c25fe \
+					rmd160 7484b80845665a8f4a1aaeac94ec9622f4f14aa0 \
+				[suffix FFEXIF-src-0.5.2] \
+					md5 a987bdbd053947f57b8e5c4281a408b7 \
+					sha1 dc457cac7b3996e75bdc17cd8540f499fe7c8222 \
+					rmd160 d49a3e9def1e03bcb3727be5da772bc0b5e6c580
+
 worksrcdir		${name}
 
-post-extract {
-	file mkdir ${workpath}/FFArchive/build ${workpath}/FFEXIF/build
-	system "cd ${workpath}/FFArchive/build && ln -sf Default/FFArchive.framework ."
-	system "cd ${workpath}/FFEXIF/build && ln -sf Default/FFEXIF.framework ."
-}
+xcode.target	${name}
 
-use_configure	no
+# Dummy configure to enable universal variant
+use_configure	yes
+configure		{}
 
-pre-build	{
-	system "cd ${workpath}/FFEXIF && ${build.cmd}"
-	system "cd ${workpath}/FFArchive && ${build.cmd}"
+if {! [variant_isset universal]} {
+	set arch ${os.arch}
+	if {! [string compare ${arch} powerpc]} {
+		set arch ppc
+	}
+
+	xcode.build.settings-append		ARCHS=${arch}
+	xcode.destroot.settings-append	ARCHS=${arch}
 }
 
-build.type		pbx
-build.target	-buildstyle Deployment
-
-platform darwin 8 {
-	pre-destroot {
-		system "cd ${worksrcpath}/build && mv Deployment/*.app . || true"
+pre-build {
+	foreach {framework} {FFArchive FFEXIF} {
+		cd ${workpath}/${framework}
+		system "${build.cmd} -configuration ${xcode.configuration} ${xcode.build.settings}"
 	}
 }
 
-destroot {
-	xinstall -m 755 -d ${destroot}/Applications/MacPorts
-	file copy ${worksrcpath}/build/FFView.app \
-		${destroot}/Applications/MacPorts
-}

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


More information about the macports-changes mailing list