WITHOUT_X11 knob for mplayer
Jeremie Le Hen
jeremie at le-hen.org
Tue Jan 18 04:56:22 PST 2005
> 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 at le-hen.org
-------------- next part --------------
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
More information about the freebsd-ports
mailing list