From 4cc4990180f99bba0b0c3d1e5f2822e81b7440e3 Mon Sep 17 00:00:00 2001 From: Michael Nottebrock Date: Tue, 19 Dec 2006 19:40:10 +0000 Subject: [PATCH] Those who would give up essential linkability to purchase a little plat- form specific optimization, ... (Disable asm code, thus make compilable with gcc 2.95 on 4.x so C++ programs on 4.x can link to the shared library). --- multimedia/libtheora/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/multimedia/libtheora/Makefile b/multimedia/libtheora/Makefile index aa4e7340870e..4a0ce896b0e8 100644 --- a/multimedia/libtheora/Makefile +++ b/multimedia/libtheora/Makefile @@ -17,18 +17,23 @@ COMMENT= Theora video codec for the Ogg multimedia streaming system LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis USE_BZIP2= yes -USE_GCC= 3.4+ USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include " \ LDFLAGS="-L${LOCALBASE}/lib" \ LIBS="${PTHEAD_LIBS}" -CONFIGURE_ARGS= --disable-sdltest \ +CONFIGURE_ARGS+=--disable-sdltest \ --enable-shared +.include + +.if ${OSVERSION} < 500035 +CONFIGURE_ARGS+=--disable-asm +.endif + post-patch: @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/examples/Makefile.in @${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in -.include +.include