diff options
author | wiz <wiz@pkgsrc.org> | 2005-05-31 16:04:28 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-05-31 16:04:28 +0000 |
commit | 6a28a9b23ea5546425073ef5c6019e744cca3de1 (patch) | |
tree | b70ddb37591a6aa3633f310c030576c47b2a5a60 /audio/lame | |
parent | 985d98eb1cad68c1529d756b93f5d36a9d2b416b (diff) | |
download | pkgsrc-6a28a9b23ea5546425073ef5c6019e744cca3de1.tar.gz |
Convert to options framework.
Diffstat (limited to 'audio/lame')
-rw-r--r-- | audio/lame/Makefile | 11 | ||||
-rw-r--r-- | audio/lame/options.mk | 14 |
2 files changed, 17 insertions, 8 deletions
diff --git a/audio/lame/Makefile b/audio/lame/Makefile index bf7fb27921c..0393f0992d5 100644 --- a/audio/lame/Makefile +++ b/audio/lame/Makefile @@ -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 @@ CONFIGURE_ENV+= F77=${FALSE} 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 --git a/audio/lame/options.mk b/audio/lame/options.mk new file mode 100644 index 00000000000..9f6733d7b97 --- /dev/null +++ b/audio/lame/options.mk @@ -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 |