pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/bmp bmp: Clean up options handling.
details: https://anonhg.NetBSD.org/pkgsrc/rev/a13412a29bf0
branches: trunk
changeset: 449739:a13412a29bf0
user: nia <nia%pkgsrc.org@localhost>
date: Mon Apr 05 08:49:33 2021 +0000
description:
bmp: Clean up options handling.
diffstat:
audio/bmp/Makefile | 4 +---
audio/bmp/Makefile.common | 36 ++----------------------------------
audio/bmp/options.mk | 16 ++++++++++++++++
3 files changed, 19 insertions(+), 37 deletions(-)
diffs (106 lines):
diff -r 6033a1fe3463 -r a13412a29bf0 audio/bmp/Makefile
--- a/audio/bmp/Makefile Mon Apr 05 08:43:36 2021 +0000
+++ b/audio/bmp/Makefile Mon Apr 05 08:49:33 2021 +0000
@@ -1,8 +1,6 @@
-# $NetBSD: Makefile,v 1.80 2020/11/05 09:07:23 ryoon Exp $
+# $NetBSD: Makefile,v 1.81 2021/04/05 08:49:33 nia Exp $
#
-BMP_ENABLE_ENCODERS= yes
-
.include "Makefile.common"
PKGREVISION= 53
diff -r 6033a1fe3463 -r a13412a29bf0 audio/bmp/Makefile.common
--- a/audio/bmp/Makefile.common Mon Apr 05 08:43:36 2021 +0000
+++ b/audio/bmp/Makefile.common Mon Apr 05 08:49:33 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.32 2020/01/26 05:26:09 rillig Exp $
+# $NetBSD: Makefile.common,v 1.33 2021/04/05 08:49:33 nia Exp $
#
# used by audio/bmp/Makefile
@@ -23,49 +23,17 @@
USE_PKGLOCALEDIR= yes
USE_TOOLS+= pkg-config
-BMP_USE_ESD?= no
-
CONFIGURE_ARGS+= --disable-alsa
-.if !empty(BMP_USE_ESD:M[Yy][Ee][Ss])
-CONFIGURE_ARGS+= --enable-esd
-.else
CONFIGURE_ARGS+= --disable-esd
-.endif
CONFIGURE_ARGS+= --disable-opengl
-.if defined(BMP_ENABLE_ENCODERS) && !empty(BMP_ENABLE_ENCODERS:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-mp3
CONFIGURE_ARGS+= --enable-ogg
CONFIGURE_ARGS+= --enable-vorbis
-.else
-CONFIGURE_ARGS+= --disable-mp3
-CONFIGURE_ARGS+= --disable-oss
-CONFIGURE_ARGS+= --disable-vorbis
-.endif
PKGCONFIG_OVERRIDE+= bmp.pc
-PKG_OPTIONS_VAR= PKG_OPTIONS.bmp
-PKG_SUPPORTED_OPTIONS= gnome inet6 xmms-eq
-PKG_SUGGESTED_OPTIONS= inet6
-
-.include "../../mk/bsd.options.mk"
.include "../../mk/bsd.prefs.mk"
-.if !empty(PKG_OPTIONS:Mgnome)
-CONFIGURE_ARGS+= --enable-gconf
-CONFIGURE_ARGS+= --enable-gnome-vfs
-. include "../../devel/GConf/buildlink3.mk"
-. include "../../sysutils/gnome-vfs/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Minet6)
-CONFIGURE_ARGS+= --enable-ipv6
-.endif
-
-.if !empty(PKG_OPTIONS:Mxmms-eq)
-CONFIGURE_ARGS+= --with-xmms-eq
-.endif
-
.if ${OPSYS} == "NetBSD"
RAWPART_cmd= /sbin/sysctl -n kern.rawpartition | ${TR} 0-9 a-j
CONFIGURE_ARGS+= --with-dev-dsp=${DEVOSSSOUND:Q} \
@@ -89,6 +57,7 @@
BUILDLINK_DEPMETHOD.libXt?= build
+.include "options.mk"
.include "../../audio/libmikmod/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
@@ -97,5 +66,4 @@
.include "../../devel/pango/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
-
.include "../../mk/oss.buildlink3.mk"
diff -r 6033a1fe3463 -r a13412a29bf0 audio/bmp/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/bmp/options.mk Mon Apr 05 08:49:33 2021 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2021/04/05 08:49:33 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bmp
+PKG_SUPPORTED_OPTIONS= inet6 xmms-eq
+PKG_SUGGESTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+.if !empty(PKG_OPTIONS:Mxmms-eq)
+CONFIGURE_ARGS+= --with-xmms-eq
+.endif
+
Home |
Main Index |
Thread Index |
Old Index