pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/46269: audio/sox: add compilation options
>Number: 46269
>Category: pkg
>Synopsis: audio/sox: add compilation options
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 27 19:35:00 +0000 2012
>Originator: Andrey N. Oktyabrski
>Release: OpenIndiana 151a2
>Organization:
>Environment:
$ uname -a
SunOS thinkpot 5.11 oi_151a2 i86pc i386 i86pc Solaris
>Description:
Why not to add some options? I have tested it - works perfectly for me.
(of course, it's not for the 2012Q1)
>How-To-Repeat:
$ grep sox /usr/pkg/etc/mk.conf
PKG_OPTIONS.sox = lame oss ffmpeg wavpack
$ cd /usr/pkgsrc/audio/sox
$ bmake
>Fix:
23:22 ano@thinkpot:/usr/pkgsrc/audio:$ diff -uwpr sox sox.ano
diff -uwpr sox/Makefile sox.ano/Makefile
--- sox/Makefile 2012-01-20 16:31:25.000000000 +0400
+++ sox.ano/Makefile 2012-03-27 14:58:54.712136468 +0400
@@ -33,6 +33,7 @@ post-install:
.include "options.mk"
+.include "../../converters/libiconv/buildlink3.mk"
.include "../../audio/flac/buildlink3.mk"
.include "../../audio/gsm/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
diff -uwpr sox/options.mk sox.ano/options.mk
--- sox/options.mk 2010-10-30 19:07:42.000000000 +0400
+++ sox.ano/options.mk 2012-03-27 14:48:41.434005847 +0400
@@ -1,7 +1,7 @@
# $NetBSD: options.mk,v 1.5 2010/10/30 15:07:42 drochner Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.sox
-PKG_SUPPORTED_OPTIONS= lame oss
+PKG_SUPPORTED_OPTIONS= lame oss ffmpeg wavpack
# lame has LICENSE= issues and thus should not be SUGGESTED.
PKG_SUGGESTED_OPTIONS=
.include "../../mk/bsd.options.mk"
@@ -16,3 +16,13 @@ PKG_SUGGESTED_OPTIONS=
.else
CONFIGURE_ARGS+= --without-oss
.endif
+
+.if !empty(PKG_OPTIONS:Mffmpeg)
+.include "../../multimedia/ffmpeg/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ffmpeg
+.endif
+
+.if !empty(PKG_OPTIONS:Mwavpack)
+.include "../../audio/wavpack/buildlink3.mk"
+CONFIGURE_ARGS+= --with-wavpack
+.endif
Home |
Main Index |
Thread Index |
Old Index