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).
This commit is contained in:
Michael Nottebrock 2006-12-19 19:40:10 +00:00
parent 939029b1e7
commit 4cc4990180
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180185

View file

@ -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>