Skip to content
Permalink
Browse files

Allow building on Intel-based Macs

Bug:            https://trac.macports.org/ticket/7888
Obtained from:  Fink

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@17157 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Takanori Yamamoto
Takanori Yamamoto committed Mar 24, 2006
1 parent 8615084 commit fed1ed485a3d4247b020b1f06e476875f512cebc
Showing with 348 additions and 9 deletions.
  1. +17 −3 multimedia/mjpegtools/Portfile
  2. +331 −6 multimedia/mjpegtools/files/mjpegtools.patch
@@ -1,8 +1,9 @@
# $Id: Portfile,v 1.1 2005/05/26 05:48:20 olegb Exp $
# $Id: Portfile,v 1.2 2006/03/24 22:52:06 takanori Exp $

PortSystem 1.0
name mjpegtools
version 1.6.2
revision 1
categories multimedia
maintainers filippo.natali@gmail.com
platforms darwin
@@ -15,17 +16,30 @@ master_sites sourceforge:mjpeg

checksums md5 01c0120b0182de67f182ef99ad855daa

depends_build port:libtool
depends_lib lib:libpng:libpng lib:libjpeg:jpeg

configure.args --mandir=${prefix}/share/man --disable-glibtest --disable-gtktest --disable-sdltest
patch.pre_args -p1

configure.args --mandir=${prefix}/share/man --disable-glibtest --disable-gtktest --disable-sdltest

configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
CFLAGS="-L${prefix}/lib" CC=gcc-3.3 CXX=g++-3.3
CFLAGS="-L${prefix}/lib" CC=gcc CXX=g++

build.args LIBTOOL=${prefix}/bin/glibtool ASFLAGS="-f macho"

platform darwin 8 {
patchfiles mjpegtools.patch
}

platform i386 {
configure.args-append --disable-simd-accel
}

platform powerpc {
configure.args-append --enable-simd-accel
}

variant gtk {
configure.args-delete --disable-glibtest --disable-gtktest
depends_lib-append lib:libgtk.1:gtk1

0 comments on commit fed1ed4

Please sign in to comment.
You can’t perform that action at this time.