summaryrefslogtreecommitdiff
path: root/multimedia/libtheora
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2006-12-19 19:40:10 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2006-12-19 19:40:10 +0000
commit4cc4990180f99bba0b0c3d1e5f2822e81b7440e3 (patch)
treebe4ab398b9d30226ad000dd9dc5822cc9668b92c /multimedia/libtheora
parentFix build with gcc41 (diff)
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).
Notes
Notes: svn path=/head/; revision=180185
Diffstat (limited to 'multimedia/libtheora')
-rw-r--r--multimedia/libtheora/Makefile11
1 files 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 <bsd.port.pre.mk>
+
+.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 <bsd.port.mk>
+.include <bsd.port.post.mk>