Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#17909 closed defect (fixed)

smpeg doesn't build universal

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: universal Cc: mww@…
Port: smpeg3

Description

mkdir .libs
rm -fr .libs/libsmpeg.lax
mkdir .libs/libsmpeg.lax
rm -fr .libs/libsmpeg.lax/libaudio.a
mkdir .libs/libsmpeg.lax/libaudio.a
(cd .libs/libsmpeg.lax/libaudio.a && ar x /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_smpeg/work/smpeg-0.4.4/audio/.libs/libaudio.a)
ar: /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_smpeg/work/smpeg-0.4.4/audio/.libs/libaudio.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
ar: /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_multimedia_smpeg/work/smpeg-0.4.4/audio/.libs/libaudio.a: Inappropriate file type or format
make[1]: *** [libsmpeg.la] Error 1
make: *** [all-recursive] Error 1

Warning: the following items did not execute (for smpeg): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: smpeg
Error: Status 1 encountered during processing.

Change History (3)

comment:1 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Index: Portfile
===================================================================
--- Portfile	(revision 45133)
+++ Portfile	(working copy)
@@ -4,7 +4,7 @@
 
 name		smpeg
 version		0.4.4
-revision	7
+revision	8
 categories	multimedia
 maintainers	mww
 platforms	darwin
@@ -22,6 +22,8 @@
 		ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
 		ltmain13 md5 e094ae92724c4015dbab97de151c2525
 
+depends_build	port:libtool
+
 depends_lib	port:libsdl
 
 patchfiles	patch-smpeg.h.diff patch-glmovie-tile.c.diff \
@@ -42,12 +44,9 @@
 
 use_parallel_build	no
 
-set libname	libsmpeg.${version}.dylib
-set ln	"ln -s ${libname}"
-post-destroot {
-	xinstall -m 644 ${worksrcpath}/${libname} ${destroot}${prefix}/lib
-	system "cd ${destroot}${prefix}/lib && ${ln} libsmpeg.dylib \
-		&& ${ln} libsmpeg.0.dylib && ${ln} libsmpeg.0.4.dylib"
-	reinplace "s|library_names=\'\'|library_names=\'${libname}\'|g" \
-		${destroot}${prefix}/lib/libsmpeg.la
+post-configure {
+	# It's too much of a PITA to autoreconf
+	delete ${worksrcpath}/libtool
+	system "ln -s ${prefix}/bin/glibtool ${worksrcpath}/libtool"
 }
+

comment:2 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.