Date: Sun, 15 Aug 2004 22:18:37 -0400 (EDT) From: Michael Johnson <ahze@ahze.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/70510: [PATCH] graphics/libtheora: [add better sdl support] Message-ID: <200408160218.i7G2IbjD035062@gentoo.ahze.net> Resent-Message-ID: <200408160220.i7G2KPkn083931@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 70510 >Category: ports >Synopsis: [PATCH] graphics/libtheora: [add better sdl support] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Aug 16 02:20:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michael Johnson >Release: FreeBSD 5.2-CURRENT i386 >Organization: >Environment: System: FreeBSD gentoo.ahze.net 5.2-CURRENT FreeBSD 5.2-CURRENT #62: Sun Aug 15 11:15:24 EDT 2004 >Description: - add better sdl support Port maintainer (kwm@rainbow-runner.nl) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- libtheora-1.0.a3.patch begins here --- Index: Makefile =================================================================== RCS file: /usr/opt/cvs/freebsd-src/ports/graphics/libtheora/Makefile,v retrieving revision 1.3 diff -u -r1.3 Makefile --- Makefile 25 Mar 2004 17:24:26 -0000 1.3 +++ Makefile 16 Aug 2004 02:16:07 -0000 @@ -25,12 +25,26 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include " \ LDFLAGS="-L${LOCALBASE}/lib" \ LIBS="${PTHEAD_LIBS}" -CONFIGURE_ARGS= --disable-sdltest \ - --enable-shared +CONFIGURE_ARGS= --enable-shared +WANT_SDL= yes + +.include <bsd.port.pre.mk> + +.if ${HAVE_SDL:Msdl} +WITH_SDL= yes +.endif + +.if defined(WITH_SDL) && !defined(WITHOUT_SDL) +USE_SDL= sdl +.endif + +pre-everything:: +.if !defined(WITH_SDL) + @${ECHO_MSG} "===> You can enable SDL support by defining WITH_SDL" + @${ECHO_MSG} "===>" +.endif post-patch: - @${REINPLACE_CMD} -e 's|sdl-config|sdl11-config|g; \ - s|-O2||g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL11/SDL.h|g; \ s|machine/soundcard.h|sys/soundcard.h|g' \ ${WRKSRC}/examples/player_example.c @@ -47,4 +61,4 @@ @${INSTALL_DATA} ${WRKSRC}/include/theora/theora.h \ ${PREFIX}/include/theora/ -.include <bsd.port.mk> +.include <bsd.port.post.mk> --- libtheora-1.0.a3.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408160218.i7G2IbjD035062>