Date: Tue, 18 Jan 2005 13:56:14 +0100 From: Jeremie Le Hen <jeremie@le-hen.org> To: Kirill Ponomarew <krion@voodoo.oberon.net> Cc: Florent Thoumie <flz@xbsd.org> Subject: Re: WITHOUT_X11 knob for mplayer Message-ID: <20050118125614.GT36629@obiwan.tataz.chchile.org> In-Reply-To: <20050118114928.GB44541@voodoo.oberon.net> References: <20050118085557.GP36629@obiwan.tataz.chchile.org> <41ECD481.4020308@xbsd.org> <20050118103850.GQ36629@obiwan.tataz.chchile.org> <20050118114344.GR36629@obiwan.tataz.chchile.org> <20050118114928.GB44541@voodoo.oberon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > Did you try ? > > BUILD_DEPENDS= imake:${X_IMAKE_PORT} Perfect ! I didn't know this one. This is exactly what I was looking for. The updated patch is attached. Best regards, -- Jeremie Le Hen jeremie@le-hen.org --zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mplayer.WITHOUT_X11.patch" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/multimedia/mplayer/Makefile,v retrieving revision 1.110 diff -u -r1.110 Makefile --- Makefile 13 Jan 2005 19:04:06 -0000 1.110 +++ Makefile 18 Jan 2005 12:48:10 -0000 @@ -38,6 +38,11 @@ # the default is to build mplayer with mencoder. If you're sure that you # don't want to encode or recode any media file, then define this. # +# WITHOUT_X11 +# default: undefined +# the default is to build mplayer with X11 support. If you don't want to +# install any X11 environnement, this one is for you. +# # WITH_GTK1|WITH_GTK2 # default: autodetect GTK1 # if you want mplayer to have gui abilities, you can use this knob to define @@ -269,15 +274,12 @@ USE_BZIP2= yes USE_GMAKE= yes USE_ICONV= yes -USE_XLIB= yes GNU_CONFIGURE= yes CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS=${PTHREAD_LIBS} \ TMPDIR="${WRKSRC}" CONFIGURE_ARGS= --with-extralibdir=${LOCALBASE}/lib \ --with-extraincdir=${LOCALBASE}/include \ - --with-x11libdir=${X11BASE}/lib \ - --with-x11incdir=${X11BASE}/include \ --enable-png \ --enable-menu \ --disable-libfame \ @@ -285,6 +287,16 @@ --disable-tv-v4l \ --disable-tremor +.if defined(WITHOUT_X11) +WITHOUT_GUI= yes +BUILD_DEPENDS+= imake:${X_IMAKE_PORT} +.else +USE_XLIB= yes +CONFIGURE_ARGS+=--with-x11libdir=${X11BASE}/lib \ + --with-x11incdir=${X11BASE}/include +.endif + + .if defined(WITH_LANG) CONFIGURE_ARGS+=--language=${WITH_LANG} .endif --zbGR4y+acU1DwHSi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050118125614.GT36629>