pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/lame Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2b2e8bed4e1
branches:  trunk
changeset: 494858:e2b2e8bed4e1
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 16:04:28 2005 +0000

description:
Convert to options framework.

diffstat:

 audio/lame/Makefile   |  11 +++--------
 audio/lame/options.mk |  14 ++++++++++++++
 2 files changed, 17 insertions(+), 8 deletions(-)

diffs (44 lines):

diff -r 1a2424cbb2c9 -r e2b2e8bed4e1 audio/lame/Makefile
--- a/audio/lame/Makefile       Tue May 31 16:04:20 2005 +0000
+++ b/audio/lame/Makefile       Tue May 31 16:04:28 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2005/05/22 20:07:38 jlam Exp $
+# $NetBSD: Makefile,v 1.49 2005/05/31 16:04:28 wiz Exp $
 #
 
 DISTNAME=      lame-${VERS}
@@ -28,14 +28,9 @@
 
 LDFLAGS.SunOS+=                -lm
 
-.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
 
-.if defined(LAME_USE_GTK)
-CONFIGURE_ENV+=                GTK_CONFIG=${BUILDLINK_PREFIX.gtk}/bin/gtk-config
-.  include "../../x11/gtk/buildlink3.mk"
-.else
-CONFIGURE_ARGS+=       --disable-analyzer
-.endif
+.include "../../mk/bsd.prefs.mk"
 
 .if ${MACHINE_ARCH} == "alpha"
 .  include "../../math/libffm/buildlink3.mk"
diff -r 1a2424cbb2c9 -r e2b2e8bed4e1 audio/lame/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/lame/options.mk     Tue May 31 16:04:28 2005 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 16:04:28 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.lame
+PKG_SUPPORTED_OPTIONS= gtk
+PKG_OPTIONS_LEGACY_VARS+= LAME_USE_GTK:gtk
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtk)
+CONFIGURE_ENV+=                GTK_CONFIG=${BUILDLINK_PREFIX.gtk}/bin/gtk-config
+.  include "../../x11/gtk/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-analyzer
+.endif



Home | Main Index | Thread Index | Old Index