aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-05-15 03:39:43 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-05-15 03:39:43 +0000
commit529073a9e6d848a4b8640189dc294805cb87c7bf (patch)
treea9068f2fbfe755bc3edebc173cc7da547f6e418f /audio
parent6fed3f3b25469b0aae75b229788f925b0b22cc5e (diff)
downloadports-529073a9e6d848a4b8640189dc294805cb87c7bf.tar.gz
ports-529073a9e6d848a4b8640189dc294805cb87c7bf.zip
Only try to build the mp3x binary if GTK is selected.
Noticed by: bento
Notes
Notes: svn path=/head/; revision=59133
Diffstat (limited to 'audio')
-rw-r--r--audio/lame-devel/Makefile4
-rw-r--r--audio/lame-devel/pkg-plist2
2 files changed, 4 insertions, 2 deletions
diff --git a/audio/lame-devel/Makefile b/audio/lame-devel/Makefile
index 2330c36a4cb1..e8e92a74d0df 100644
--- a/audio/lame-devel/Makefile
+++ b/audio/lame-devel/Makefile
@@ -38,7 +38,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME:S/-devel//}-${PORTVERSION:S/b//}
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-nasm \
- --enable-mp3x \
--enable-mp3rtp
USE_GMAKE= yes
USE_LIBTOOL= yes
@@ -52,8 +51,11 @@ NO_LATEST_LINK= yes
.if defined(HAVE_GTK)
USE_GTK= yes
+CONFIGURE_ARGS+= --enable-mp3x
+PLIST_SUB+= GTK=
.else
CONFIGURE_ARGS+= --disable-gtktest
+PLIST_SUB+= GTK="@comment "
.endif
.if !defined(WITHOUT_VORBIS)
diff --git a/audio/lame-devel/pkg-plist b/audio/lame-devel/pkg-plist
index fd1967bc61a6..b5e71f57fd51 100644
--- a/audio/lame-devel/pkg-plist
+++ b/audio/lame-devel/pkg-plist
@@ -1,7 +1,7 @@
@comment $FreeBSD$
bin/lame
bin/mp3rtp
-bin/mp3x
+%%GTK%%bin/mp3x
include/lame/lame.h
lib/libmp3lame.a
lib/libmp3lame.so.0