pacpl-6.1.0/0000755000175000017500000000000013311137174010420 5ustar pipipacpl-6.1.0/configure0000755000175000017500000046443113275724626012360 0ustar pipi#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for pacpl 6.1.0. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='pacpl' PACKAGE_TARNAME='pacpl' PACKAGE_VERSION='6.1.0' PACKAGE_STRING='pacpl 6.1.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_default_prefix=/usr ac_unique_file="pacpl.in" ac_subst_vars='LTLIBOBJS LIBOBJS DESTDIR GNOMEDIR ENABLE_GNOME_NEMO_FALSE ENABLE_GNOME_NEMO_TRUE ENABLE_GNOME_NAUTILUS_FALSE ENABLE_GNOME_NAUTILUS_TRUE INSTALL_KDE_FALSE INSTALL_KDE_TRUE INSTALL_NEMO_FALSE INSTALL_NEMO_TRUE INSTALL_NAUTILUS_FALSE INSTALL_NAUTILUS_TRUE NEMO NAUTILUS ZENITY KDIALOG SNDFILE WVUNPACK WAVPACK TTAENC OFS OFR OFF MPCDEC MPCENC BONK LA MPLAYER AVCONV FFMPEG FAAD FAAC SOX SHORTEN MAC FLAC SPEEXDEC SPEEXENC AFTEN OPUSDEC OPUSENC OGGDEC OGGENC BLADEENC TWOLAME TOOLAME LAME GZIP POD2HTML POD2MAN PERL RM ac_prefix_program KDEDIR INSTALL_DOLP INSTALL_KONQ AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_kde enable_nemo enable_nautilus ' ac_precious_vars='build_alias host_alias target_alias KDEDIR GNOMEDIR DESTDIR' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures pacpl 6.1.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/pacpl] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of pacpl 6.1.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-kde Install KDE Service Menu (Dolphin/Konqueror) --enable-nemo Install GNOME Nemo Action Script --enable-nautilus Install GNOME Nautilus Script Some influential environment variables: KDEDIR root directory of your KDE installation (default /usr) GNOMEDIR root directory of your GNOME installation (default /usr) DESTDIR root installation directory (default /) Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF pacpl configure 6.1.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by pacpl $as_me 6.1.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.16' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='pacpl' VERSION='6.1.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi if test "x$prefix" = xNONE; then $as_echo_n "checking for prefix by " >&6 # Extract the first word of "pacpl", so it can be a program name with args. set dummy pacpl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_prefix_program+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_prefix_program in [\\/]* | ?:[\\/]*) ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_prefix_program=$ac_cv_path_ac_prefix_program if test -n "$ac_prefix_program"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 $as_echo "$ac_prefix_program" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test -n "$ac_prefix_program"; then prefix=`$as_dirname -- "$ac_prefix_program" || $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_prefix_program" : 'X\(//\)[^/]' \| \ X"$ac_prefix_program" : 'X\(//\)$' \| \ X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_prefix_program" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` prefix=`$as_dirname -- "$prefix" || $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$prefix" : 'X\(//\)[^/]' \| \ X"$prefix" : 'X\(//\)$' \| \ X"$prefix" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$prefix" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` fi fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_RM+:} false; then : $as_echo_n "(cached) " >&6 else case $RM in [\\/]* | ?:[\\/]*) ac_cv_path_RM="$RM" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" ;; esac fi RM=$ac_cv_path_RM if test -n "$RM"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 $as_echo "$RM" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PERL+:} false; then : $as_echo_n "(cached) " >&6 else case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" ;; esac fi PERL=$ac_cv_path_PERL if test -n "$PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "pod2man", so it can be a program name with args. set dummy pod2man; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_POD2MAN+:} false; then : $as_echo_n "(cached) " >&6 else case $POD2MAN in [\\/]* | ?:[\\/]*) ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="pod2man" ;; esac fi POD2MAN=$ac_cv_path_POD2MAN if test -n "$POD2MAN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 $as_echo "$POD2MAN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "pod2html", so it can be a program name with args. set dummy pod2html; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_POD2HTML+:} false; then : $as_echo_n "(cached) " >&6 else case $POD2HTML in [\\/]* | ?:[\\/]*) ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="pod2man" ;; esac fi POD2HTML=$ac_cv_path_POD2HTML if test -n "$POD2HTML"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 $as_echo "$POD2HTML" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gzip", so it can be a program name with args. set dummy gzip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GZIP+:} false; then : $as_echo_n "(cached) " >&6 else case $GZIP in [\\/]* | ?:[\\/]*) ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="gzip" ;; esac fi GZIP=$ac_cv_path_GZIP if test -n "$GZIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 $as_echo "$GZIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ######################################## # check for supported encoder/decoders # ######################################## { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} # Extract the first word of "lame", so it can be a program name with args. set dummy lame; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LAME+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LAME"; then ac_cv_prog_LAME="$LAME" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LAME="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LAME=$ac_cv_prog_LAME if test -n "$LAME"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAME" >&5 $as_echo "$LAME" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "toolame", so it can be a program name with args. set dummy toolame; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_TOOLAME+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$TOOLAME"; then ac_cv_prog_TOOLAME="$TOOLAME" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_TOOLAME="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi TOOLAME=$ac_cv_prog_TOOLAME if test -n "$TOOLAME"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLAME" >&5 $as_echo "$TOOLAME" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "twolame", so it can be a program name with args. set dummy twolame; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_TWOLAME+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$TWOLAME"; then ac_cv_prog_TWOLAME="$TWOLAME" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_TWOLAME="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi TWOLAME=$ac_cv_prog_TWOLAME if test -n "$TWOLAME"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOLAME" >&5 $as_echo "$TWOLAME" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "bladeenc", so it can be a program name with args. set dummy bladeenc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_BLADEENC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$BLADEENC"; then ac_cv_prog_BLADEENC="$BLADEENC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_BLADEENC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi BLADEENC=$ac_cv_prog_BLADEENC if test -n "$BLADEENC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BLADEENC" >&5 $as_echo "$BLADEENC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "oggenc", so it can be a program name with args. set dummy oggenc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OGGENC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OGGENC"; then ac_cv_prog_OGGENC="$OGGENC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OGGENC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OGGENC=$ac_cv_prog_OGGENC if test -n "$OGGENC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGGENC" >&5 $as_echo "$OGGENC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "oggdec", so it can be a program name with args. set dummy oggdec; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OGGDEC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OGGDEC"; then ac_cv_prog_OGGDEC="$OGGDEC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OGGDEC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OGGDEC=$ac_cv_prog_OGGDEC if test -n "$OGGDEC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OGGDEC" >&5 $as_echo "$OGGDEC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "opusenc", so it can be a program name with args. set dummy opusenc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OPUSENC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OPUSENC"; then ac_cv_prog_OPUSENC="$OPUSENC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OPUSENC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OPUSENC=$ac_cv_prog_OPUSENC if test -n "$OPUSENC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPUSENC" >&5 $as_echo "$OPUSENC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "opusdec", so it can be a program name with args. set dummy opusdec; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OPUSDEC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OPUSDEC"; then ac_cv_prog_OPUSDEC="$OPUSDEC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OPUSDEC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OPUSDEC=$ac_cv_prog_OPUSDEC if test -n "$OPUSDEC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPUSDEC" >&5 $as_echo "$OPUSDEC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "aften", so it can be a program name with args. set dummy aften; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AFTEN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AFTEN"; then ac_cv_prog_AFTEN="$AFTEN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AFTEN="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AFTEN=$ac_cv_prog_AFTEN if test -n "$AFTEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTEN" >&5 $as_echo "$AFTEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "speexenc", so it can be a program name with args. set dummy speexenc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_SPEEXENC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SPEEXENC"; then ac_cv_prog_SPEEXENC="$SPEEXENC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_SPEEXENC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi SPEEXENC=$ac_cv_prog_SPEEXENC if test -n "$SPEEXENC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPEEXENC" >&5 $as_echo "$SPEEXENC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "speexdec", so it can be a program name with args. set dummy speexdec; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_SPEEXDEC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SPEEXDEC"; then ac_cv_prog_SPEEXDEC="$SPEEXDEC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_SPEEXDEC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi SPEEXDEC=$ac_cv_prog_SPEEXDEC if test -n "$SPEEXDEC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPEEXDEC" >&5 $as_echo "$SPEEXDEC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "flac", so it can be a program name with args. set dummy flac; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_FLAC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FLAC"; then ac_cv_prog_FLAC="$FLAC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FLAC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FLAC=$ac_cv_prog_FLAC if test -n "$FLAC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLAC" >&5 $as_echo "$FLAC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mac", so it can be a program name with args. set dummy mac; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MAC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MAC"; then ac_cv_prog_MAC="$MAC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MAC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MAC=$ac_cv_prog_MAC if test -n "$MAC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAC" >&5 $as_echo "$MAC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "shorten", so it can be a program name with args. set dummy shorten; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_SHORTEN+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SHORTEN"; then ac_cv_prog_SHORTEN="$SHORTEN" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_SHORTEN="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi SHORTEN=$ac_cv_prog_SHORTEN if test -n "$SHORTEN"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHORTEN" >&5 $as_echo "$SHORTEN" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sox", so it can be a program name with args. set dummy sox; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_SOX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SOX"; then ac_cv_prog_SOX="$SOX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_SOX="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi SOX=$ac_cv_prog_SOX if test -n "$SOX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOX" >&5 $as_echo "$SOX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "faac", so it can be a program name with args. set dummy faac; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_FAAC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FAAC"; then ac_cv_prog_FAAC="$FAAC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FAAC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FAAC=$ac_cv_prog_FAAC if test -n "$FAAC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAAC" >&5 $as_echo "$FAAC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "faad", so it can be a program name with args. set dummy faad; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_FAAD+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FAAD"; then ac_cv_prog_FAAD="$FAAD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FAAD="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FAAD=$ac_cv_prog_FAAD if test -n "$FAAD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAAD" >&5 $as_echo "$FAAD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ffmpeg", so it can be a program name with args. set dummy ffmpeg; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_FFMPEG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$FFMPEG"; then ac_cv_prog_FFMPEG="$FFMPEG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_FFMPEG="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi FFMPEG=$ac_cv_prog_FFMPEG if test -n "$FFMPEG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&5 $as_echo "$FFMPEG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "avconv", so it can be a program name with args. set dummy avconv; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AVCONV+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AVCONV"; then ac_cv_prog_AVCONV="$AVCONV" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AVCONV="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AVCONV=$ac_cv_prog_AVCONV if test -n "$AVCONV"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVCONV" >&5 $as_echo "$AVCONV" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mplayer", so it can be a program name with args. set dummy mplayer; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MPLAYER+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MPLAYER"; then ac_cv_prog_MPLAYER="$MPLAYER" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MPLAYER="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MPLAYER=$ac_cv_prog_MPLAYER if test -n "$MPLAYER"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPLAYER" >&5 $as_echo "$MPLAYER" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "la", so it can be a program name with args. set dummy la; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LA+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LA"; then ac_cv_prog_LA="$LA" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LA="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LA=$ac_cv_prog_LA if test -n "$LA"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LA" >&5 $as_echo "$LA" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "bonk", so it can be a program name with args. set dummy bonk; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_BONK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$BONK"; then ac_cv_prog_BONK="$BONK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_BONK="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi BONK=$ac_cv_prog_BONK if test -n "$BONK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BONK" >&5 $as_echo "$BONK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mpcenc", so it can be a program name with args. set dummy mpcenc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MPCENC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MPCENC"; then ac_cv_prog_MPCENC="$MPCENC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MPCENC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MPCENC=$ac_cv_prog_MPCENC if test -n "$MPCENC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPCENC" >&5 $as_echo "$MPCENC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "mpcdec", so it can be a program name with args. set dummy mpcdec; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_MPCDEC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$MPCDEC"; then ac_cv_prog_MPCDEC="$MPCDEC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_MPCDEC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi MPCDEC=$ac_cv_prog_MPCDEC if test -n "$MPCDEC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPCDEC" >&5 $as_echo "$MPCDEC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "off", so it can be a program name with args. set dummy off; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OFF+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OFF"; then ac_cv_prog_OFF="$OFF" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OFF="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OFF=$ac_cv_prog_OFF if test -n "$OFF"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OFF" >&5 $as_echo "$OFF" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ofr", so it can be a program name with args. set dummy ofr; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OFR+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OFR"; then ac_cv_prog_OFR="$OFR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OFR="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OFR=$ac_cv_prog_OFR if test -n "$OFR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OFR" >&5 $as_echo "$OFR" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ofs", so it can be a program name with args. set dummy ofs; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_OFS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$OFS"; then ac_cv_prog_OFS="$OFS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_OFS="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi OFS=$ac_cv_prog_OFS if test -n "$OFS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OFS" >&5 $as_echo "$OFS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "ttaenc", so it can be a program name with args. set dummy ttaenc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_TTAENC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$TTAENC"; then ac_cv_prog_TTAENC="$TTAENC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_TTAENC="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi TTAENC=$ac_cv_prog_TTAENC if test -n "$TTAENC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TTAENC" >&5 $as_echo "$TTAENC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "wavpack", so it can be a program name with args. set dummy wavpack; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_WAVPACK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$WAVPACK"; then ac_cv_prog_WAVPACK="$WAVPACK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_WAVPACK="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi WAVPACK=$ac_cv_prog_WAVPACK if test -n "$WAVPACK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAVPACK" >&5 $as_echo "$WAVPACK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "wvunpack", so it can be a program name with args. set dummy wvunpack; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_WVUNPACK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$WVUNPACK"; then ac_cv_prog_WVUNPACK="$WVUNPACK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_WVUNPACK="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi WVUNPACK=$ac_cv_prog_WVUNPACK if test -n "$WVUNPACK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WVUNPACK" >&5 $as_echo "$WVUNPACK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "sndfile-convert", so it can be a program name with args. set dummy sndfile-convert; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_SNDFILE+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$SNDFILE"; then ac_cv_prog_SNDFILE="$SNDFILE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_SNDFILE="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi SNDFILE=$ac_cv_prog_SNDFILE if test -n "$SNDFILE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNDFILE" >&5 $as_echo "$SNDFILE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi ################################### # Check for required perl modules # ################################### { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required perl modules..." >&5 $as_echo "$as_me: checking for required perl modules..." >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} # Make sure we have perl if test -z "$PERL"; then # Extract the first word of "perl", so it can be a program name with args. set dummy perl; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_PERL+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$PERL"; then ac_cv_prog_PERL="$PERL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_PERL="perl" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi PERL=$ac_cv_prog_PERL if test -n "$PERL"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 $as_echo "$PERL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test "x$PERL" != x; then ax_perl_modules_failed=0 for ax_perl_module in 'Getopt::Long' 'File::Basename' 'File::Find' 'Parallel::ForkManager' 'File::Spec::Functions' 'CDDB' 'CDDB_get' 'MP3::Tag' 'Audio::Scan' 'Audio::FLAC::Header' ; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 $as_echo_n "checking for perl module $ax_perl_module... " >&6; } # Would be nice to log result here, but can't rely on autoconf internals $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 if test $? -ne 0; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; }; ax_perl_modules_failed=1 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 $as_echo "ok" >&6; }; fi done # Run optional shell commands if test "$ax_perl_modules_failed" = 0; then : else : as_fn_error $? "ERROR: One or more of the required modules could not be found. See extra/mod-install.sh or extra/mod-install-ubuntu.sh" "$LINENO" 5 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 $as_echo "$as_me: WARNING: could not find perl" >&2;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required plugin applications..." >&5 $as_echo "$as_me: checking for required plugin applications..." >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} # Check whether --enable-kde was given. if test "${enable_kde+set}" = set; then : enableval=$enable_kde; else enable_kde=no fi # Check whether --enable-nemo was given. if test "${enable_nemo+set}" = set; then : enableval=$enable_nemo; else enable_nemo=no fi # Check whether --enable-nautilus was given. if test "${enable_nautilus+set}" = set; then : enableval=$enable_nautilus; else enable_nautilus=no fi # Extract the first word of "kdialog", so it can be a program name with args. set dummy kdialog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_KDIALOG+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$KDIALOG"; then ac_cv_prog_KDIALOG="$KDIALOG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_KDIALOG="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi KDIALOG=$ac_cv_prog_KDIALOG if test -n "$KDIALOG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDIALOG" >&5 $as_echo "$KDIALOG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "zenity", so it can be a program name with args. set dummy zenity; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ZENITY+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ZENITY"; then ac_cv_prog_ZENITY="$ZENITY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ZENITY="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ZENITY=$ac_cv_prog_ZENITY if test -n "$ZENITY"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZENITY" >&5 $as_echo "$ZENITY" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "nautilus", so it can be a program name with args. set dummy nautilus; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NAUTILUS+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NAUTILUS"; then ac_cv_prog_NAUTILUS="$NAUTILUS" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NAUTILUS="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NAUTILUS=$ac_cv_prog_NAUTILUS if test -n "$NAUTILUS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAUTILUS" >&5 $as_echo "$NAUTILUS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "nemo", so it can be a program name with args. set dummy nemo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_NEMO+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NEMO"; then ac_cv_prog_NEMO="$NEMO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_NEMO="yes" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi NEMO=$ac_cv_prog_NEMO if test -n "$NEMO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEMO" >&5 $as_echo "$NEMO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test x$enable_nautilus = xyes; then INSTALL_NAUTILUS_TRUE= INSTALL_NAUTILUS_FALSE='#' else INSTALL_NAUTILUS_TRUE='#' INSTALL_NAUTILUS_FALSE= fi if test x$enable_nemo = xyes; then INSTALL_NEMO_TRUE= INSTALL_NEMO_FALSE='#' else INSTALL_NEMO_TRUE='#' INSTALL_NEMO_FALSE= fi if test x$enable_kde = xyes; then INSTALL_KDE_TRUE= INSTALL_KDE_FALSE='#' else INSTALL_KDE_TRUE='#' INSTALL_KDE_FALSE= fi if test x$enable_nautilus = xyes; then ENABLE_GNOME_NAUTILUS_TRUE= ENABLE_GNOME_NAUTILUS_FALSE='#' else ENABLE_GNOME_NAUTILUS_TRUE='#' ENABLE_GNOME_NAUTILUS_FALSE= fi if test x$enable_nemo = xyes; then ENABLE_GNOME_NEMO_TRUE= ENABLE_GNOME_NEMO_FALSE='#' else ENABLE_GNOME_NEMO_TRUE='#' ENABLE_GNOME_NEMO_FALSE= fi if test "x$enable_nautilus" = "xyes" -o "x$enable_nemo" = "xyes"; then ENABLE_GNOME=true fi if test "x$KDIALOG" = "xyes" -a "x$enable_kde" != "xno"; then INSTALL_KDE=true else INSTALL_KDE=false fi if test "x$NAUTILUS" = "xyes" -a "x$enable_nautilus" != "xno"; then INSTALL_NAUTILUS=true else INSTALL_NAUTILUS=false fi if test "x$NEMO" = "xyes" -a "x$enable_nemo" != "xno"; then INSTALL_NEMO=true else INSTALL_NEMO=false fi if test "x$INSTALL_KDE" = "xtrue" -a "x$INSTALL_NAUTILUS" = "xtrue"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "nautilus and kde cannot be enabled at the same time. exiting.. See \`config.log' for more details" "$LINENO" 5; } fi if test "x$INSTALL_KDE" = "xtrue" -a "x$INSTALL_NEMO" = "xtrue"; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "nemo and kde cannot be enabled at the same time. exiting.. See \`config.log' for more details" "$LINENO" 5; } fi if test "x$NAUTILUS" != "xyes" -a "x$enable_nautilus" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "could not find applicaiton 'nautilus': exiting...\" See \`config.log' for more details" "$LINENO" 5; } { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} fi if test "x$NEMO" != "xyes" -a "x$enable_nemo" = "xyes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "could not find application 'nemo': exiting...\" See \`config.log' for more details" "$LINENO" 5; } { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} fi if test "x$enable_kde" != "xno"; then plugins=1 elif test "x$enable_nautilus" != "xno"; then plugins=1 elif test "x$enable_nemo" != "xno"; then plugins=1 else plugins=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} ac_config_files="$ac_config_files Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -z "${INSTALL_NAUTILUS_TRUE}" && test -z "${INSTALL_NAUTILUS_FALSE}"; then as_fn_error $? "conditional \"INSTALL_NAUTILUS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${INSTALL_NEMO_TRUE}" && test -z "${INSTALL_NEMO_FALSE}"; then as_fn_error $? "conditional \"INSTALL_NEMO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${INSTALL_KDE_TRUE}" && test -z "${INSTALL_KDE_FALSE}"; then as_fn_error $? "conditional \"INSTALL_KDE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_GNOME_NAUTILUS_TRUE}" && test -z "${ENABLE_GNOME_NAUTILUS_FALSE}"; then as_fn_error $? "conditional \"ENABLE_GNOME_NAUTILUS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_GNOME_NEMO_TRUE}" && test -z "${ENABLE_GNOME_NEMO_FALSE}"; then as_fn_error $? "conditional \"ENABLE_GNOME_NEMO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by pacpl $as_me 6.1.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ pacpl config.status 6.1.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi if test x$plugins = x1; then { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: The following plugins will be installed:" >&5 $as_echo "$as_me: The following plugins will be installed:" >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} if test x$INSTALL_KDE = xtrue; then { $as_echo "$as_me:${as_lineno-$LINENO}: KDE Service Menu" >&5 $as_echo "$as_me: KDE Service Menu" >&6;} fi if test x$INSTALL_NAUTILUS = xtrue; then { $as_echo "$as_me:${as_lineno-$LINENO}: Nautilus Script" >&5 $as_echo "$as_me: Nautilus Script" >&6;} fi if test x$INSTALL_NEMO = xtrue; then { $as_echo "$as_me:${as_lineno-$LINENO}: NEMO Action Script" >&5 $as_echo "$as_me: NEMO Action Script" >&6;} fi fi if test x$plugins = x0; then { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: no plugins have been enabled..." >&5 $as_echo "$as_me: no plugins have been enabled..." >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} fi { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: Configure finished successfully..." >&5 $as_echo "$as_me: Configure finished successfully..." >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5 $as_echo "$as_me: " >&6;} { $as_echo "$as_me:${as_lineno-$LINENO}: make && make install" >&5 $as_echo "$as_me: make && make install" >&6;} exit 0 pacpl-6.1.0/TODO0000644000175000017500000000021413275724626011122 0ustar pipi 1: Fix erronous messages produced when ripping cd tracks 2: clean up code and comments througout 3: add missing iOS file format extensions pacpl-6.1.0/pacpl.conf0000644000175000017500000001034513275724626012406 0ustar pipi######################################################### # # Perl Audio Converter - Configuration File # ######################################################### ################################################## # Import User Modules # # # # by default this function is tured off. set to # # 1 to enable module loading. # # # # you can find an example in /etc/pacpl/modules # ################################################## IMPORTM = 0 ############################################################ # Default Normalize Options # # e.g.: --peak # # # # see 'man normalize' for a list of options # ############################################################ NOPTS = ########################### # Default Encoder Options # ########################### ##################################### # Audio Bitrate # # Default: 320 # voice = 56kbps/mono # fm/radio/tape = 112kbps # mp3 = 128kbps # hifi = 160kbps # cd = 192kbps # studio = 256kbps # high = 320kbps # BITRATE = 320 #################### # Sampling Frequency # FREQ = 44100 ######################## # Audio Channels # CHANNELS = 2 ############################### # Ogg quality level # # Sets encoding quality to n, between -1 (low) and 10 # (high). This is the default mode of operation, with # a default quality level of 3. Fractional quality # levels such as 2.5 are permitted. Normal quality # range is 0 - 10. # OGGQUAL = 10 ##################### # Speex quality level # # (0-10), default 8 # SPXQUAL = 10 ######################## # FLAC compression level # # 1-8 (0 = fastest & 8 = highest ) # FCOMP = 2 ###################################### # APE compression level # # fast: 1000 # normal: 2000 # high: 3000 # extra high: 4000 # insane: 5000 # ACOMP = 3000 ########################### # AAC/MP4/M4A quality level # AACQUAL = 100 ################### # MPC/MPP compression level # # thumb low quality/internet, (typ. 58... 86 kbps) # radio medium (MP3) quality, (typ. 112...152 kbps) # standard high quality (dflt), (typ. 142...184 kbps) # xtreme extreme high quality, (typ. 168...212 kbps) # insane extreme high quality, (typ. 232...268 kbps) # braindead extreme high quality, (typ. 232...278 kbps) # MPCQUAL = standard ########################## # OptimFrog (OFR/OFS) mode # OFMODE = normal ################################## # OptimFrog (OFR/OFS) optimization # OFOPT = fast ######################### # BONK downsampling ratio # BRATIO = 2 ######################### # BONK quantization level # BQUANL = 1.0 ##################### # BONK predictor size # BPSIZE = 128 ############################## # Default CD Ripping Options # ############################## # 1: use cddb # 0: disable cddb # USE_CDDB = 1 CDDB_HOST = freedb.freedb.org CDDB_PORT = 8880 # cddb or http CDDB_MODE = cddb # 1: ask user if more than one possibility # 0: no user interaction # CDDB_INPUT = 1 DEVICE = /dev/dvd ############################# ZENITY options for Gnome # ############################# # Output directory # # 1: prompt # 0: use input file directory # ZEN_DIR = 0 # Encoder options # # 1: prompt # 0: use default encoder options # ZEN_OPTS = 0 # Extra Options (preserve, recursive, etc) # # This applies to both gnome/kde plugins # # 1: prompt # 0: no prompt # EXTRA_OPTS = 0 ########################################### # KDIALOG options for Dolphin & Konqueror # ########################################### # Output directory # # 1: prompt # 0: use input file directory # KDE_DIR = 1 # Encoder options # # 1: prompt # 0: use default encoder options # KDE_OPTS = 1 ################################################## # Use default encoder options 1 = yes / 0 = false# ################################################## # DEFOPTS = 1 ################################################### # Set the number of proceess (jobs) you would like # to run simultaneously. You probably shouldn't # exceed the number of cores * 2. # JOBS = 4 pacpl-6.1.0/Makefile.am0000644000175000017500000001036713275724626012500 0ustar pipi# Perl Audio Converter # # Copyright (C) 2005-2018 Philip Lyons (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ ACLOCAL_M4 = ./aclocal.m4 # # Modules & Documentation # DOCS = INSTALL README AUTHORS TODO NEWS ChangeLog COPYING LANG_MODS = po/* EXTRAS = extra/* # # Plugin directories # NAUTILUS_PLUGIN_DIR = plugins/gnome/nautilus NEMO_PLUGIN_DIR = plugins/gnome/nemo KDE_PLUGIN_DIR = plugins/kde # # Default KDE directory # DESTDIR = KDEDIR = /usr GNOMEDIR = /usr # # Target KDE directories # KDE_INSTALL_DIR = $(DESTDIR)$(KDEDIR)/share/kde4/services NAUTILUS_INSTALL_DIR = $(DESTDIR)$(HOME)/.local/share/nautilus/scripts NEMO_INSTALL_DIR = $(DESTDIR)$(GNOMEDIR)/share/nemo/actions ICON_DIR = $(DESTDIR)$(GNOMEDIR)/share/icons # # Compiler tools definitions... # POD2MAN = @POD2MAN@ POD2HTML = @POD2HTML@ GZIP = @GZIP@ RM = @RM@ -f SHELL = /bin/sh # # Configuration files directories and other # CONF_DIR = $(DESTDIR)$(sysconfdir)/$(PACKAGE_NAME) PO_DIR = $(DESTDIR)$(pkgdatadir)/locale MOD_DIR = $(CONF_DIR)/modules DOC_DIR = $(DESTDIR)$(docdir) MAN_DIR = $(DESTDIR)$(mandir)/man1 EXTRA_DIR = $(CONF_DIR)/extra edit = sed \ -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' all : pacpl.1.gz pacpl: pacpl.in Makefile rm -f $@ $@.tmp $(edit) '$@.in' >$@.tmp mv $@.tmp $@ chmod +x $@ pacpl.1.gz : pacpl $(POD2MAN) $< | $(GZIP) -9 > $@ touch $@ install: all main install-plugins main: $(INSTALL) -d $(DESTDIR)$(bindir) $(INSTALL) -d $(CONF_DIR) $(INSTALL) -d $(PO_DIR) $(INSTALL) -d $(MOD_DIR) $(INSTALL) -d $(MAN_DIR) $(INSTALL) -d $(DOC_DIR) $(INSTALL) -d $(EXTRA_DIR) $(INSTALL) pacpl $(DESTDIR)$(bindir) $(INSTALL_DATA) pacpl.conf codecs.conf pacpl.png $(CONF_DIR) $(INSTALL_DATA) $(LANG_MODS) $(PO_DIR) $(INSTALL_DATA) pacpl.1.gz $(MAN_DIR) $(INSTALL_DATA) $(DOCS) $(DOC_DIR) $(INSTALL_DATA) $(EXTRAS) $(EXTRA_DIR) install-plugins: if INSTALL_KDE $(INSTALL) -d $(KDE_INSTALL_DIR) $(INSTALL) $(KDE_PLUGIN_DIR)/PACPL-Konvert $(DESTDIR)$(bindir) $(INSTALL_DATA) $(KDE_PLUGIN_DIR)/pacpl.desktop $(KDE_INSTALL_DIR) sed -i 's/KDE_DIR = 0/KDE_DIR = 1/' $(CONF_DIR)/pacpl.conf sed -i 's/KDE_OPTS = 0/KDE_OPTS = 1/' $(CONF_DIR)/pacpl.conf endif if INSTALL_NAUTILUS $(INSTALL) -d $(NAUTILUS_INSTALL_DIR) $(INSTALL) $(NAUTILUS_PLUGIN_DIR)/PACPL-Convert $(NAUTILUS_INSTALL_DIR) endif if INSTALL_NEMO $(INSTALL) -d $(NEMO_INSTALL_DIR) $(INSTALL) $(NEMO_PLUGIN_DIR)/PACPL-Convert $(NEMO_INSTALL_DIR) $(INSTALL_DATA) $(NEMO_PLUGIN_DIR)/pacpl.nemo_action $(NEMO_INSTALL_DIR) $(INSTALL_DATA) $(NEMO_PLUGIN_DIR)/pacpl.png $(ICON_DIR) endif if ENABLE_GNOME_NAUTILUS sed -i 's/ZEN_DIR = 0/ZEN_DIR = 1/' $(CONF_DIR)/pacpl.conf sed -i 's/ZEN_OPTS = 0/ZEN_OPTS = 1/' $(CONF_DIR)/pacpl.conf endif if ENABLE_GNOME_NEMO sed -i 's/ZEN_DIR = 0/ZEN_DIR = 1/' $(CONF_DIR)/pacpl.conf sed -i 's/ZEN_OPTS = 0/ZEN_OPTS = 1/' $(CONF_DIR)/pacpl.conf endif clean: $(RM) pacpl.1.gz distclean: clean $(RM) config.log $(RM) config.status $(RM) Makefile $(RM) pacpl find . -name '*~' -exec $(RM) '{}' \; uninstall: uninstall-plugins $(RM) $(DESTDIR)$(bindir)/pacpl $(RM) $(MAN_DIR)/pacpl.1.gz $(RM) -r $(CONF_DIR)/pacpl $(RM) -r $(DOC_DIR)/pacpl $(RM) -r $(DESTDIR)$(pkgdatadir) uninstall-plugins: if INSTALL_KDE $(RM) $(KDE_INSTALL_DIR)/pacpl.desktop $(RM) $(DESTDIR)$(bindir)/PACPL-Konvert endif if INSTALL_NAUTILUS $(RM) $(NAUTILUS_INSTALL_DIR)/PACPL-Convert endif if INSTALL_NEMO $(RM) $(NEMO_INSTALL_DIR)/PACPL-Convert $(RM) $(NEMO_INSTALL_DIR)/pacpl.nemo_action $(RM) $(ICON_DIR)/pacpl.png endif pacpl-6.1.0/extra/0000755000175000017500000000000013275724626011560 5ustar pipipacpl-6.1.0/extra/libav-conf.sh0000644000175000017500000000103313275724626014131 0ustar pipi#!/bin/bash # # Confiure script for libav ./configure --prefix=/usr \ --enable-nonfree \ --enable-gpl \ --enable-version3 \ --enable-pic \ --enable-gnutls \ --enable-libfaac \ --enable-libmp3lame \ --enable-libfreetype \ --enable-libspeex \ --enable-libtheora \ --enable-libvorbis \ --enable-libx264 \ --enable-libxvid \ --enable-openssl \ --enable-libfdk-aac \ --enable-libvo-aacenc \ --enable-libvo-amrwbenc \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-x11grab \ pacpl-6.1.0/extra/ffmpeg-conf.sh0000644000175000017500000000137613275724626014312 0ustar pipi#!/bin/bash # # Confiure script for ffmpeg ./configure --prefix=/usr \ --enable-nonfree \ --enable-pthread \ --mandir=/usr/man \ --disable-debug \ --enable-shared \ --enable-postproc \ --enable-libschroedinger \ --enable-slib \ --enable-gpl \ --enable-version3 \ --enable-pic \ --enable-avisynth \ --enable-libvo-aacenc \ --enable-libvo-amrwbenc \ --enable-fontconfig \ --enable-gnutls \ --enable-libfaac \ --enable-libmp3lame \ --enable-libfreetype \ --enable-libspeex \ --enable-libtheora \ --enable-libtwolame \ --enable-libvorbis \ --enable-libx264 \ --enable-libxvid \ --enable-openssl \ --enable-libfdk-aac \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ --enable-x11grab \ pacpl-6.1.0/extra/README.module0000644000175000017500000000132313275724626013723 0ustar pipiUSER MODULES: You can use modules to extend pacpl conversion features adding new supported file formats. The best way to incorporate you own module is to copy the sample.m to a new file and change the various values accordingly. Then place the module in /etc/pacpl/modules and it will be automatically detected next time you run pacpl. If you're familiar with Perl and hashes, then writing your own shouldn't be a problem. Wild card %i will be the input file, and wild card %o will be the output file. ESTR = string used to encode the temporary .wav file DSTR = string used to decode to the temporary .wav file It should be noted that for the time being --dopts and --eopts will no longer work with imported codecs. pacpl-6.1.0/extra/README.extra0000644000175000017500000000110013275724626013552 0ustar pipi--------------------------------------------------------------------------- mod-install.sh: this script will attempt to install all the required perl modules for pacpl. For some it may be necessary to actually start the CPAN shell: perl -MCPAN -e 'shell' (or just 'cpan') and from there type: install Module::Name --------------------------------------------------------------------------- mod-install-ubuntu.sh Same as above except it uses apt-get to install the disto based packages for ubuntu/kubuntu. The script will attempt ot install Ogg::Vorbis::Header manually. pacpl-6.1.0/extra/sample.m0000644000175000017500000000106113275724626013215 0ustar pipi# Sample MP5 codec - John Doe (johndoe@example.org) # # This is just a sample. my $mp5 = { NAME => 'mp5', DEFAULT_ENCODER => 'ffmpeg', DEFAULT_DECODER => 'lame', TAGS => { READ => 0, WRITE => 0, MODULE => undef }, # do not change ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { "-y -i %i %o" }, }, }, DECODER => { lame => { NAME => 'lame', DSTR => sub { "--decode %i %o" }, }, }, }; import_module($mp5);pacpl-6.1.0/extra/mod-install-ubuntu.sh0000755000175000017500000000275113275724626015667 0ustar pipi#!/bin/bash # # This script installs the required perl modules # some necessary libraries and other useful encoders # & decoders which you will find useful while # utilizing the application # # run this script using: sudo sh ./mod-install-kubuntu.sh echo "" echo "" echo "Installing required libs and perl modules..." echo "" sleep 4 sudo apt-get install libvorbis-dev \ libcddb-perl \ libinline-perl \ libcddb-get-perl \ libmp3-tag-perl \ libaudio-scan-perl \ libaudio-flac-header-perl \ libparallel-forkmanager-perl # install some default encoders / decoders echo "" echo "" echo "Installing some basic encoding/decoding tools to get you started.." echo "" sleep 4 sudo apt-get install vorbis-tools \ lame \ twolame \ sox \ musepack-tools \ ffmpeg \ mplayer \ cdparanoia \ flac \ faac \ faad \ opus-tools \ sndfile-programs \ speex \ wavpack \ aften \ perl-doc echo "" echo "" echo "Settign up your repository to be able to install the restricted-extras package..." echo "" sleep 4 sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update echo "" echo "" echo "Now install via apt-get ubuntu-restricted-extras or kubuntu-restricted-extras depending on your flavor" echo "" sleep 5 pacpl-6.1.0/extra/mod-install.sh0000755000175000017500000000106213275724626014341 0ustar pipi#!/bin/bash # # Run this script to install the required modules for # the Perl Audio Converter. perl -MCPAN -e 'install Parse::RecDescent' perl -MCPAN -e 'install Devel::Symdump' perl -MCPAN -e 'install Pod::Coverage' perl -MCPAN -e 'install Parallel::ForkManager' perl -MCPAN -e 'install Test::Pod::Coverage' perl -MCPAN -e 'install Audio::Scan' perl -MCPAN -e 'install MP3::Info' perl -MCPAN -e 'install Audio::FLAC::Header' perl -MCPAN -e 'install MP3::Tag' perl -MCPAN -e 'install IO::String' perl -MCPAN -e 'install CDDB' perl -MCPAN -e 'install CDDB_get'pacpl-6.1.0/configure.ac0000644000175000017500000001300513275724626012722 0ustar pipi# Process this file with autoconf to produce a configure script. # # Copyright (C) 2007-2018 Philip Lyons (vorzox@gmail.com) AC_PACKAGE_NAME(Perl Audio Converter) AC_PACKAGE_TARNAME(pacpl-6.1.0.tar.bz2) AC_PACKAGE_VERSION(6.1.0) AC_PACKAGE_BUGREPORT(vorzox@gmail.com) m4_include([aclocal/ax_prog_perl_modules.m4]) AC_PROG_PERL_VERSION(5.18.1) AC_PREREQ([2.69]) AC_INIT([pacpl],[6.1.0]) AM_INIT_AUTOMAKE AC_SUBST(INSTALL_KONQ) AC_SUBST(INSTALL_DOLP) AC_SUBST(KDEDIR) AC_PREFIX_DEFAULT(/usr) AC_PREFIX_PROGRAM(pacpl) AC_CONFIG_SRCDIR(pacpl.in) AC_PROG_INSTALL AC_PATH_PROG(RM, rm, rm) AC_PATH_PROG(PERL, perl, perl) AC_PATH_PROG(POD2MAN, pod2man, pod2man) AC_PATH_PROG(POD2HTML, pod2html, pod2man) AC_PATH_PROG(GZIP, gzip, gzip) ######################################## # check for supported encoder/decoders # ######################################## AC_MSG_NOTICE() AC_CHECK_PROG(LAME, lame, yes) AC_CHECK_PROG(TOOLAME, toolame, yes) AC_CHECK_PROG(TWOLAME, twolame, yes) AC_CHECK_PROG(BLADEENC, bladeenc, yes) AC_CHECK_PROG(OGGENC, oggenc, yes) AC_CHECK_PROG(OGGDEC, oggdec, yes) AC_CHECK_PROG(OPUSENC, opusenc, yes) AC_CHECK_PROG(OPUSDEC, opusdec, yes) AC_CHECK_PROG(AFTEN, aften, yes) AC_CHECK_PROG(SPEEXENC, speexenc, yes) AC_CHECK_PROG(SPEEXDEC, speexdec, yes) AC_CHECK_PROG(FLAC, flac, yes) AC_CHECK_PROG(MAC, mac, yes) AC_CHECK_PROG(SHORTEN, shorten, yes) AC_CHECK_PROG(SOX, sox, yes) AC_CHECK_PROG(FAAC, faac, yes) AC_CHECK_PROG(FAAD, faad, yes) AC_CHECK_PROG(FFMPEG, ffmpeg, yes) AC_CHECK_PROG(AVCONV, avconv, yes) AC_CHECK_PROG(MPLAYER, mplayer, yes) AC_CHECK_PROG(LA, la, yes) AC_CHECK_PROG(BONK, bonk, yes) AC_CHECK_PROG(MPCENC, mpcenc, yes) AC_CHECK_PROG(MPCDEC, mpcdec, yes) AC_CHECK_PROG(OFF, off, yes) AC_CHECK_PROG(OFR, ofr, yes) AC_CHECK_PROG(OFS, ofs, yes) AC_CHECK_PROG(TTAENC, ttaenc, yes) AC_CHECK_PROG(WAVPACK, wavpack, yes) AC_CHECK_PROG(WVUNPACK, wvunpack, yes) AC_CHECK_PROG(SNDFILE, sndfile-convert, yes) ################################### # Check for required perl modules # ################################### AC_MSG_NOTICE() AC_MSG_NOTICE([checking for required perl modules...]) AC_MSG_NOTICE() AX_PROG_PERL_MODULES( Getopt::Long File::Basename File::Find Parallel::ForkManager File::Spec::Functions CDDB CDDB_get MP3::Tag Audio::Scan Audio::FLAC::Header , [], AC_MSG_ERROR([ERROR: One or more of the required modules could not be found. See extra/mod-install.sh or extra/mod-install-ubuntu.sh])) AC_MSG_NOTICE() AC_MSG_NOTICE([checking for required plugin applications...]) AC_MSG_NOTICE() AC_ARG_ENABLE([kde], [AS_HELP_STRING([--enable-kde],[Install KDE Service Menu (Dolphin/Konqueror)])], [], [enable_kde=no]) AC_ARG_ENABLE([nemo], [AS_HELP_STRING([--enable-nemo],[Install GNOME Nemo Action Script])], [], [enable_nemo=no]) AC_ARG_ENABLE([nautilus], [AS_HELP_STRING([--enable-nautilus],[Install GNOME Nautilus Script])], [], [enable_nautilus=no]) AC_CHECK_PROG([KDIALOG],[kdialog],[yes]) AC_CHECK_PROG([ZENITY],[zenity],[yes]) AC_CHECK_PROG([NAUTILUS],[nautilus],[yes]) AC_CHECK_PROG([NEMO],[nemo],[yes]) AM_CONDITIONAL([INSTALL_NAUTILUS], [test x$enable_nautilus = xyes]) AM_CONDITIONAL([INSTALL_NEMO], [test x$enable_nemo = xyes]) AM_CONDITIONAL([INSTALL_KDE], [test x$enable_kde = xyes]) AM_CONDITIONAL([ENABLE_GNOME_NAUTILUS], [test x$enable_nautilus = xyes]) AM_CONDITIONAL([ENABLE_GNOME_NEMO], [test x$enable_nemo = xyes]) if test "x$enable_nautilus" = "xyes" -o "x$enable_nemo" = "xyes"; then ENABLE_GNOME=true fi if test "x$KDIALOG" = "xyes" -a "x$enable_kde" != "xno"; then INSTALL_KDE=true else INSTALL_KDE=false fi if test "x$NAUTILUS" = "xyes" -a "x$enable_nautilus" != "xno"; then INSTALL_NAUTILUS=true else INSTALL_NAUTILUS=false fi if test "x$NEMO" = "xyes" -a "x$enable_nemo" != "xno"; then INSTALL_NEMO=true else INSTALL_NEMO=false fi if test "x$INSTALL_KDE" = "xtrue" -a "x$INSTALL_NAUTILUS" = "xtrue"; then AC_MSG_FAILURE([nautilus and kde cannot be enabled at the same time. exiting..]) fi if test "x$INSTALL_KDE" = "xtrue" -a "x$INSTALL_NEMO" = "xtrue"; then AC_MSG_FAILURE([nemo and kde cannot be enabled at the same time. exiting..]) fi if test "x$NAUTILUS" != "xyes" -a "x$enable_nautilus" = "xyes"; then AC_MSG_NOTICE() AC_MSG_FAILURE([could not find applicaiton 'nautilus': exiting..."]) AC_MSG_NOTICE() fi if test "x$NEMO" != "xyes" -a "x$enable_nemo" = "xyes"; then AC_MSG_NOTICE() AC_MSG_FAILURE([could not find application 'nemo': exiting..."]) AC_MSG_NOTICE() fi if test "x$enable_kde" != "xno"; then plugins=1 elif test "x$enable_nautilus" != "xno"; then plugins=1 elif test "x$enable_nemo" != "xno"; then plugins=1 else plugins=0 fi AC_MSG_NOTICE() AC_ARG_VAR([KDEDIR], [root directory of your KDE installation (default /usr)]) AC_ARG_VAR([GNOMEDIR], [root directory of your GNOME installation (default /usr)]) AC_ARG_VAR([DESTDIR], [root installation directory (default /)]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT() if test x$plugins = x1; then AC_MSG_NOTICE() AC_MSG_NOTICE([The following plugins will be installed:]) AC_MSG_NOTICE() if test x$INSTALL_KDE = xtrue; then AC_MSG_NOTICE([KDE Service Menu]) fi if test x$INSTALL_NAUTILUS = xtrue; then AC_MSG_NOTICE([Nautilus Script]) fi if test x$INSTALL_NEMO = xtrue; then AC_MSG_NOTICE([NEMO Action Script]) fi fi if test x$plugins = x0; then AC_MSG_NOTICE() AC_MSG_NOTICE() AC_MSG_NOTICE([no plugins have been enabled...]) AC_MSG_NOTICE() fi AC_MSG_NOTICE() AC_MSG_NOTICE([Configure finished successfully...]) AC_MSG_NOTICE() AC_MSG_NOTICE([make && make install]) exit 0 pacpl-6.1.0/pacpl.png0000644000175000017500000001243613275724626012250 0ustar pipiPNG  IHDR00WIDATxZ{tյ9'C^$$  X"iŢV]PRo*ڋ꽮Zv-v)!U(! $@H&: [ΚYə!C(dp M^n݌MSJ'BŽBN+rڶ_W>YfMGII`MMܚ !8! |^w܉֥/@ pEyyH$@ P(`0G6А8~wl]bF!BA)\\!@޽{nݺvttFg̘bD"0 I À(DQhJ4L裏|>oܹ=so <0sPJi*⭭;۝VϚ5 DSJiTUU( ( @Q0i 1R)عs'_{?sw <RN+W^ooKjkkQQQ!(RJM!1UU*Ebt]렔 EQD2---hnnSL_|r! (xٶ]wucǎ窫L2  4M Mc >󞪪 u] J)CG<ϣ &8Bh*կ޼}&O<֥*s*2 2 !,N{7x▖gBmJ8l-BUUR:|>B^, cp]ę3g H(b8~ӟff ?NAu]-Ruw+&OǡHmC4\sqQlٲ#J19(*b18aH| {u֭XhTU?p?Al۶mϗUTVVz`0|>x<}{?>lRjjj0sLyxu%{[۶QSSX,L&qDZ|r444`ppBB!ZSS㕗߼lٲ|A)mo@!죏>w0.4ig@ l6p8UVK_٬<pR ,c !\b6c0sLCuA8ݻw/NR\Q&9x۷o[aD&!+WDmm-2 ƇQ&q 9c a@UU?y3 r9u}H(y˗㢋.pQrIǵW_}޶6S!87@x/~x"પq7ccc^u] qx%,8J)TUEOO8Ey q!p5`ttPUZMlZfՌ1^4g RqymT\\Md022ӧcɒ%r/H$QRGAUU^ErH&(..ƪU8# Ç|7A>m(..^I1'L 4M#Li+ rYA4Myq8l6{!%1L&9ڰo>[OLìYdP(Dwƍ1NB@!\b1A|8s N>S#c BTUU! ²,?q<Q{СC @UUf~$1L8QFuݹU<ضm쒒B!!gCGG,FFFև(  $C:طo?:(~l+XC]q-h1p,9}T*uNٴiPWWvڵ ,ۜsr9`um-ke,CEQ`vmD`jD&ĵlRċiW4 e!#̙3>5˿A~^PJIBRYvA 9rc!^qL%rΑd~r- <$F(>BB%# jBqbEQDkq/RO? `ܹaYl׮]2dI>*" Q#\E((>K Ѩ/.Dj&BߏH$˲`L8ccc(N:Շd`&<σii``D4C L\ŤI؈T*|!BH&0 \N6p]i5$cŊ~Ht: EQ`oe !HUUJKK?-P?mhoo Fq% ,!|8 @:(gQj(ػw/ad6mM  # J)K&ޏ~K/KKKK( FFFpq_}՘={]} !`۶5uݍAB)E0_{@94ݍ'Nz  cBӦMPey?(uwy'088P(T*UU*k?9Ji1u]XjJy0}]}:EA6+AJYtR<b8z( @ 9 )R Bix7q!躎2166&,MRTUU'R(nO#ɠ/F:F:?rmg1u]}˲|j*ݻ`R)>| .|!8?#2n&q߷ySNٳgK{/T*B8D` !k~c&N8+WOXp!"ɲ웷vۦ *hg|ZX<,^x٤I>3nMAQ^^.L"qL&Bd2SORQYY)DEE())DB2QTT$EII,4Me˖;ӛ1cz]wEƟn[,{MMMJ,"v:c(**Bmm-,X'Ob۶mB4KҩK]3o<{PUK.EuucvjM6lhe/8\%ݻwg3fXw}q~Qyftuu!HRqA?-%dC1)cԩhjjcmiiQZ[[W^ 6l,i%gH/}Xv]lݺu !܌>(++?fy9"͂sH$磱Q;v{V^/6l{Z~}q(߽L M zmmmXv===VSSs%KH}}=b/~H&]QB" )>44ߏ'M}O% 8Csx^9bn[lhiyy?Ϩ@MM 9-G__zzzi+VؿtRYs<3\.,Kp)(qΕ3˲F9::Z `( x<W% ^\>LӃ9?iZ:<7oW U~;z+ 0n܌&@ Bؘ BK(.sMιQ, )LA!Zp(s"8hٿo"KxEssq^'RZ+pΙ^8*FQ}!B^0 !\!Dp(yjgR9<Cᎌ8?O8=?J)˲ˉeY ߈qaXނ=UU]qopUUc _~g~gIENDB`pacpl-6.1.0/aclocal/0000755000175000017500000000000013275724626012033 5ustar pipipacpl-6.1.0/aclocal/ax_prog_perl_modules.m40000644000175000017500000000431313275724626016507 0ustar pipi# =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_prog_perl_modules.html # =========================================================================== # # SYNOPSIS # # AX_PROG_PERL_MODULES([MODULES], [ACTION-IF-TRUE], [ACTION-IF-FALSE]) # # DESCRIPTION # # Checks to see if the given perl modules are available. If true the shell # commands in ACTION-IF-TRUE are executed. If not the shell commands in # ACTION-IF-FALSE are run. Note if $PERL is not set (for example by # calling AC_CHECK_PROG, or AC_PATH_PROG), AC_CHECK_PROG(PERL, perl, perl) # will be run. # # MODULES is a space separated list of module names. To check for a # minimum version of a module, append the version number to the module # name, separated by an equals sign. # # Example: # # AX_PROG_PERL_MODULES( Text::Wrap Net::LDAP=1.0.3, , # AC_MSG_WARN(Need some Perl modules) # # LICENSE # # Copyright (c) 2009 Dean Povey # # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice # and this notice are preserved. This file is offered as-is, without any # warranty. #serial 7 AU_ALIAS([AC_PROG_PERL_MODULES], [AX_PROG_PERL_MODULES]) AC_DEFUN([AX_PROG_PERL_MODULES],[dnl m4_define([ax_perl_modules]) m4_foreach([ax_perl_module], m4_split(m4_normalize([$1])), [ m4_append([ax_perl_modules], [']m4_bpatsubst(ax_perl_module,=,[ ])[' ]) ]) # Make sure we have perl if test -z "$PERL"; then AC_CHECK_PROG(PERL,perl,perl) fi if test "x$PERL" != x; then ax_perl_modules_failed=0 for ax_perl_module in ax_perl_modules; do AC_MSG_CHECKING(for perl module $ax_perl_module) # Would be nice to log result here, but can't rely on autoconf internals $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 if test $? -ne 0; then AC_MSG_RESULT(no); ax_perl_modules_failed=1 else AC_MSG_RESULT(ok); fi done # Run optional shell commands if test "$ax_perl_modules_failed" = 0; then : $2 else : $3 fi else AC_MSG_WARN(could not find perl) fi])dnl pacpl-6.1.0/README0000644000175000017500000000646313275724626011326 0ustar pipi***************************************************************************** Perl Audio Converter A Linux tool for converting multiple audio types from one format to another. It supports the following audio formats: ------------------------------------------------------------ 3G2, 3GP, 8SVX, AAC, AC3, ADTS, AIFF, AL, AMB, AMR, APE, AU, AVR, BONK, CAF, CDR, CVU, DAT, DTS, DVMS, F32, F64, FAP, FLA, FLAC, FSSD, GSRT, HCOM, IMA, IRCAM, LA, MAT, MAUD, MAT4, MAT5, M4A, MP2, MP3, MP4, MPC, MPP, NIST, OFF, OFR, OFS, OPUS, OGA, OGG, PAF, PRC, PVF, RA, RAM, RAW, RF64, SD2, SF, SHN, SMP, SND, SOU, SPX, SRN, TAK, TTA, TXW, VOC, VMS, VQF, W64, WAV, WMA, and WV. It can also extract audio from the following video extensions: -------------------------------------------------------------- RM, RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGM, OGV, QT, VCD, SVCD, M4V, NSV, NUV, PSP, SMK, VOB, FLV, WEBM and WMV. Parallel processing, a CD ripping function with CDDB support, batch conversion, tag preservation for most supported formats, independent tag reading & writing, service menus for KDE Dolphin/Konqueror, Gnome Nautilus script, & Nemo action script are also provided. ***************************************************************************** below is a list of supported applications, and the minimum version requirement. app version address ======================================================================== aften 0.0.8 http://sourceforge.net/projects/aften/ dcaenc 2 http://aepatrakov.narod.ru/index/0-2 mp3HD Toolkit 1.4.2 http://goo.gl/gJKoWx lame 3.99.5 http://lame.sourceforge.net toolame 0.2l http://sourceforge.net/projects/toolame/ twolame 0.3.13 http://www.twolame.org bladeenc 0.92.1b5 http://www.osl.iu.edu/~jsquyres/bladeenc/ flac 1.2.1 http://flac.sourceforge.net mac 3.99 http://goo.gl/4mhvWV shorten 3.6.1 http://www.etree.org/shnutils/shorten/ faac 1.26 https://sourceforge.net/projects/faac/files/ faad 2.7 https://sourceforge.net/projects/faad2-src/files cdparanoia 10.2 http://www.xiph.org/paranoia oggenc/oggdec 1.4.0 http://www.vorbis.com mplayer 1.0pre7 http://www.mplayerhq.hu speexenc 1.2rc1 http://www.speex.org speexdec 1.2rc1 http://www.speex.org sndfile-convert 1.0.25 http://www.mega-nerd.com/libsndfile/ mpcenc 1.30 http://www.musepack.net mpcdec 1.00 http://www.musepack.net wavpack 4.60.1 http://www.wavpack.com ofr/ofs 4.520 http://www.LosslessAudio.org ttaenc 3.4.1 http://www.true-audio.com ffmpeg 2.0 http://www.ffmpeg.org libav (avconv) 0.0.5 http://www.libav.org la 0.4 http://www.lossless-audio.com bonk 0.6 http://www.logarithmic.net/pfh/bonk sox 12.17.8 http://sox.sourceforge.net/ flake 0.11 http://flake-enc.sourceforge.net/download.html opus & opus-tools 1.0.3 http://www.opus-codec.org/downloads/ (you need both) For help and more information, see the manual page for pacpl pacpl-6.1.0/pacpl.in0000644000175000017500000047176413275724626012107 0ustar pipi#!/usr/bin/perl # # Perl Audio Converter # # Copyright (C) 2005-2018 Philip Lyons (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use Getopt::Long; use File::Basename; use File::Find; use File::Spec::Functions qw(rel2abs); use Parallel::ForkManager; use feature qw(switch say); no if $] >= 5.018, warnings => "experimental::smartmatch"; # Tagging modules use MP3::Tag; use Audio::FLAC::Header; use Audio::Scan; # CDDB module use CDDB_get qw(get_cddb); # non-encoder/decoder related options my ( $to, $recursive, $preserve, $rip, $help, $longhelp, $verbose, $verinfo, $dryrun, $delete, $keep, $overwrite, $formats, $topdir, $only, $first_run, @file, @dir, %run, %lang, ); my $silent = "> /dev/null 2>&1"; # tagging options my ( $title, $track, $artist, $album, $comment, $year, $genre, $taginfo, ); # name and version my $name = "Perl Audio Converter"; my $version = "6.1.0"; # If these options are toggled, messages/errors will be displayed # via kdialog or zenity/notify-send (depending on environment) my ($gui, $kde, $gnome); # Debugging (for developer use only) my $debug = 0; # default configuration. my %config = ( IMPORTM => 0, JOBS => 4, DEFOPTS => 1, EOPTS => '', DOPTS => '', NOPTS => '', BITRATE => 128, FREQ => 44100, CHANNELS => 2, EFFECT => '', FCOMP => 2, PCOMP => 3, ACOMP => 3000, OGGQUAL => 3, SPXQUAL => 8, AACQUAL => 100, MPCQUAL => 'radio', OFMODE => 'normal', OFOPT => 'fast', BRATIO => 2, BQUANL => 1.0, BPSIZE => 128, USE_CDDB => 1, CDDB_HOST => 'freedb.freedb.org', CDDB_PORT => 8880, CDDB_MODE => 'cddb', CDDB_INPUT => 1, DEVICE => '/dev/dvd', NSCHEME => '%ar - %ti', ZEN_DIR => 1, ZEN_OPTS => 1, KDE_DIR => 1, KDE_OPTS => 1, ); # location of configuration file my $conf_path = "@sysconfdir@/pacpl"; my $po_dir = "@pkgdatadir@/locale"; my $mod_dir = "$conf_path/modules"; my $conf_file; # Icon path my $icon_path = "$conf_path/pacpl.png"; # load the appropriate locale file load_lang(); # try to load configuration file in this order... my @conf_locations = ( "$ENV{HOME}/.pacplrc", # Local "$conf_path/pacpl.conf", # Global "$ENV{PWD}/pacpl.conf", # Current Directory ); # try to load conf file from one of the above locations foreach my $i (@conf_locations) { if (not $conf_file and -e $i) { $conf_file = $i; say "$lang{debug} $lang{loaded_config} $conf_file" if $debug == 1; } } say "$lang{no_config}" if not $conf_file; # open config file. if ($conf_file and -e $conf_file) { open(CONF, "$conf_file") or die "$lang{opening_file} $conf_file - $!\n"; my @conf_opts = ; @conf_opts = grep(!/^#|^$/, @conf_opts); close(CONF); # now read config file options and change default values accordingly. foreach (@conf_opts) { chomp; my ($k, $v) = split(/\s*=\s*/); $config{$k} = $v if exists($config{$k}) and length($v); say "$lang{debug} $k = $v" if $debug == 1 and exists($config{$k}); } } my $codecs_conf = "$conf_path/codecs.conf"; # set default encoders/decoders sub load_codecs { open(CODECS, "$codecs_conf") or die "$lang{opening_file} $codecs_conf - $!\n"; my @codecs = ; @codecs = grep(!/^$|^#/, @codecs); @codecs = grep(s/^\s*|\s*$//, @codecs); close(CODECS); foreach (@codecs) { chomp; my ($k, $v) = split(/\s*=\s*/); my ($e, $d) = split(/,/, $v); $k =~ tr/A-Z/a-z/; $run{$k}{DEFAULT_ENCODER} = $e if (exists($run{$k}{DEFAULT_ENCODER})); $run{$k}{DEFAULT_DECODER} = $d if (exists($run{$k}{DEFAULT_DECODER})); } } # load po file and store in %lang hash sub load_lang { my $po = "$po_dir/$ENV{LANG}.po"; $po =~ s/\.UTF-8//i if $po =~ /UTF-8/i; $po =~ s/\.utf8//i if $po =~ /utf8/i; $po =~ s/_\w+// if not -e $po; $po = "$po_dir/en_US.po" if not -e $po; open(LANG, "< $po") or die "error: could not open - $po\n$!\n"; my @data = ; @data = grep(!/^#|^$/, @data); close(LANG); foreach (@data) { chomp; s/=/__EQ__/; my ($k, $v) = split(/\s*__EQ__\s*/, $_); $lang{$k} = $v; } } my $banner = 1; # print error messages sub perror { my ($key, $msg) = @_; say "$name - $version\n"; say "$lang{error}: $lang{$key} $msg" . "\n"; system("kdialog --title \"$name\" --error \"$lang{error}: $lang{$key} $msg\" &") if $gui and $kde; system("zenity --title \"$name\" --error \"$lang{error}: $lang{$key} $msg\" &") if $gui and $gnome; die "$lang{seek_help}\n"; } # print notices/warnings sub pnotice { my ($key, $msg, $nm) = @_; say "$name - $version\n" if $banner == 1; print "$lang{$key} $msg"; say '' if $nm == 1; say "\n" if $nm == 2; $banner = 0; } # defaults for user variables. my $outfile; my $outdir; my $defopts = $config{DEFOPTS}; my $eopts = $config{EOPTS}; my $dopts = $config{DOPTS}; my $nopts = $config{NOPTS}; my $normalize = $config{NOPTS}; my $bitrate = $config{BITRATE}; my $freq = $config{FREQ}; my $channels = $config{CHANNELS}; my $effect = $config{EFFECT}; my $fcomp = $config{FCOMP}; my $acomp = $config{ACOMP}; my $oggqual = $config{OGGQUAL}; my $spxqual = $config{SPXQUAL}; my $aacqual = $config{AACQUAL}; my $mpcqual = $config{MPCQUAL}; my $ofmode = $config{OFMODE}; my $ofopt = $config{OFOPT}; my $bratio = $config{BRATIO}; my $bquanl = $config{BQUANL}; my $bpsize = $config{BPSIZE}; my $cdinfo; my $nocddb; my $noinput; my $device = $config{DEVICE}; my $nscheme = $config{NSCHEME}; my $my_encoder; my $my_decoder; my $encoder; my $decoder; my $jobs = $config{JOBS}; # command line options GetOptions ( 't|to=s' => \$to, 'r|recursive' => \$recursive, 'p|preserve' => \$preserve, 'h|help' => \$help, 'l|longhelp' => \$longhelp, 'v|verbose' => \$verbose, 'f|formats' => \$formats, 'o|only=s' => \$only, 'k|keep' => \$keep, 'j|jobs=n' => \$jobs, 'taginfo' => \$taginfo, 'version' => \$verinfo, 'dryrun' => \$dryrun, 'delete' => \$delete, 'overwrite' => \$overwrite, 'normalize' => \$normalize, 'encoder=s' => \$my_encoder, 'decoder=s' => \$my_decoder, 'title=s' => \$title, 'track=n' => \$track, 'artist=s' => \$artist, 'album=s' => \$album, 'comment=s' => \$comment, 'year=n' => \$year, 'genre=s' => \$genre, 'gui' => \$gui, 'kde' => \$kde, 'gnome' => \$gnome, 'eopts=s' => \$eopts, 'dopts=s' => \$dopts, 'defopts=n' => \$defopts, 'nopts=s' => \$nopts, 'outfile=s' => \$outfile, 'outdir=s' => \$outdir, 'bitrate=n' => \$bitrate, 'freq=n' => \$freq, 'channels=n' => \$channels, 'effect=s' => \$effect, 'fcomp=n' => \$fcomp, 'acomp=n' => \$acomp, 'oggqual=n' => \$oggqual, 'spxqual=n' => \$spxqual, 'aacqual=n' => \$aacqual, 'mpcqual=s' => \$mpcqual, 'ofmode=s' => \$ofmode, 'ofopt=s' => \$ofopt, 'bratio=n' => \$bratio, 'bquanl=n' => \$bquanl, 'bpsize=n' => \$bpsize, 'rip=s' => \$rip, 'nocddb' => \$nocddb, 'noinput' => \$noinput, 'device=s' => \$device, 'nscheme=s' => \$nscheme, 'cdinfo' => \$cdinfo, ); if (defined($preserve) && !defined($outdir)) { die "You must specify --outdir when you use --preserve option. See man page.\n"; } $silent = '' if $verbose; my $opts; my $total_converted = 0; my $total_failed = 0; # Initialize the fork manager with a count set through pacpl.conf or via the command line my $pm = Parallel::ForkManager->new($jobs); # conversion options. when adding a new format, # wild card %i = input file and %o = output file %run = ( '3g2' => { DEFAULT_ENCODER => 'ffmpeg', DEFAULT_DECODER => 'ffmpeg', ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "-ar 8000 -ac 1" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { NONE => 0, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ar 8000 -ac 1" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "-y -i %o $dopts %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "-y -i %o %dopts %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, '3gp' => { DEFAULT_ENCODER => 'ffmpeg', DEFAULT_DECODER => 'ffmpeg', ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "-ar 8000 -ac 1" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { NONE => 0, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ar 8000 -ac 1" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "-y -i %o $dopts %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "-y -i %o %dopts %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, aac => { DEFAULT_ENCODER => "faac", DEFAULT_DECODER => "faad", ENCODER => { faac => { NAME => "faac", ESTR => sub { $opts = "-q $aacqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i -o %o" }, PROMPT => { AACQUAL => 1 }, }, ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 1, }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { faad => { NAME => "faad", DSTR => sub { "$dopts -o %i %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, ac3 => { DEFAULT_ENCODER => "ffmpeg", DEFAULT_DECODER => "ffmpeg", ENCODER => { ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => "avconv", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, aften => { NAME => "aften", ESTR => sub { $opts = "-v 1 -q $bitrate -2" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { BITRATE => 1, }, }, }, DECODER => { mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => "avconv", DSTR => sub { "$dopts -y -i %i %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, adts => { DEFAULT_ENCODER => 'ffmpeg', DEFAULT_DECODER => 'ffmpeg', ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libfaac" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $opts $eopts -strict -2 %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libfaac" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $opts $eopts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { ffmpeg => { NAME => 'ffmpeg', DSTR => "$dopts -y -i %i %o", }, avconv => { NAME => 'avconv', DSTR => "$dopts -y -i %i %o", }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, ape => { DEFAULT_ENCODER => "mac", DEFAULT_DECODER => "mac", ENCODER => { mac => { NAME => "mac", ESTR => sub { $opts = "-c$acomp" if $defopts == 1; $opts = '' if $defopts == 0; "%i %o $opts $eopts" }, PROMPT => { ACOMP => 1 }, }, }, DECODER => { mac => { NAME => "mac", DSTR => sub { "%i %o -d $dopts" }, }, ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "-y -i %i %dopts %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "-y -i %i $dopts %o" }, }, }, TAGS => { READ => 1, WRITE => 0, MODULE => "Audio::Scan", }, }, amr => { DEFAULT_ENCODER => "ffmpeg", DEFAULT_DECODER => "ffmpeg", ENCODER => { ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ar 8000 -ac 1" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { NONE => 0, }, }, avconv => { NAME => "avconv", ESTR => sub { $opts = "-ar 8000 -ac 1" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "-y -i %i $dopts %o" }, }, avconv => { NAME => 'ffmpeg', DSTR => sub { "-y -i %i %dopts %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, bonk => { DEFAULT_ENCODER => "bonk", DEFAULT_DECODER => "bonk", ENCODER => { bonk => { NAME => "bonk", ESTR => sub { $opts = "-q $bquanl -b $bratio -s $bpsize" if $defopts == 1; $opts = '' if $defopts == 0; "encode $eopts $opts %i -o %o" }, PROMPT => { BQUANL => 1, BRATIO => 1, BPSIZE => 1, }, }, }, DECODER => { bonk => { NAME => "bonk", DSTR => sub { "decode %i -o %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, dts => { DEFAULT_ENCODER => 'ffmpeg', DEFAULT_DECODER => 'ffmpeg', ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = '' if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $opts $eopts -strict -2 -codec:a libfaac %o" }, PROMPT => { NONE => 0, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = '' if $defopts == 1 or $defopts == 0; "-y -i %i $opts $eopts -codec:a libfaac %o", }, PROMPT => { NONE => 0, }, }, dcaenc => { NAME => 'dcaenc', ESTR => sub { $opts = "$bitrate" if $defopts == 0; $opts = '' if $defopts == 1; "%i %o $opts" }, PROMPT => { NONE => 0, }, }, }, DECODER => { ffmpeg => { NAME => 'ffmpeg', DSTR => "$dopts -y -i %i %o", }, avconv => { NAME => 'avconv', DSTR => "$dopts -y -i %i %o", }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, flac => { DEFAULT_ENCODER => "flac", DEFAULT_DECODER => "flac", ENCODER => { flac => { NAME => "flac", ESTR => sub { $opts = "-$fcomp" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts -f $opts %i -o %o" }, PROMPT => { FCOMP => 1 }, }, flake => { NAME => "flake", ESTR => sub { $opts = "-$fcomp" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i -o %o" }, PROMPT => { FCOMP => 1 }, }, ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 1; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { flac => { NAME => "flac", DSTR => sub { "$dopts -f -d %i -o %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::FLAC::Header", }, }, fla => { DEFAULT_ENCODER => "flac", DEFAULT_DECODER => "flac", ENCODER => { flac => { NAME => "flac", ESTR => sub { $opts = "-$fcomp" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts -f $opts %i -o %o" }, PROMPT => { FCOMP => 1 }, }, }, DECODER => { flac => { NAME => "flac", DSTR => sub { "$dopts -f -d %i -o %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::FLAC::Header", }, }, la => { DEFAULT_ENCODER => "la", DEFAULT_DECODER => "la", ENCODER => { la => { NAME => "la", ESTR => sub { "-overwrite $eopts %i %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { la => { NAME => "la", ESTR => sub { "-console $dopts %i > %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, mp2 => { DEFAULT_ENCODER => "ffmpeg", DEFAULT_DECODER => "ffmpeg", ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, toolame => { NAME => 'toolame', ESTR => sub { $opts = "-b $bitrate" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { BITRATE => 1, }, }, twolame => { NAME => 'twolame', ESTR => sub { $opts = "-b $bitrate -s $freq" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { BITRATE => 1, FREQ => 1, }, }, sox => { NAME => 'sox', ESTR => sub { $opts = "-c $channels -r $bitrate" if $defopts == 1; $opts = '' if $defopts == 0; "%i $eopts $opts %o" }, PROMPT => { BITRATE => 1, CHANNELS => 1, }, }, }, DECODER => { ffmpeg => { NAME => 'ffmpeg', DSTR => "$dopts -y -i %i %o", }, avconv => { NAME => 'avconv', DSTR => "%dopts -y -i %i %o", }, mplayer => { NAME => 'mplayer', DSTR => "-vc null -vo null -ao pcm:file=%o %i", }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, mp3 => { DEFAULT_ENCODER => "lame", DEFAULT_DECODER => "lame", ENCODER => { lame => { NAME => "lame", ESTR => sub { $opts = "--resample $freq -b $bitrate -h" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { BITRATE => 1, FREQ => 1, }, }, bladeenc => { NAME => "bladeenc", ESTR => sub { $opts = "-br $bitrate" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { BITRATE => 1 }, }, ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts -y -i %i $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, sox => { NAME => "sox", ESTR => sub { $opts = "-r $freq -c $channels" if $defopts == 1; $opts = '' if $defopts == 0; "%i $eopts $opts %o" }, PROMPT => { FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { lame => { NAME => "lame", DSTR => sub { "$dopts --decode %i %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %O" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, sox => { NAME => "sox", DSTR => sub { "%i $dopts %o" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "MP3::Tag", }, }, mp3hd => { DEFAULT_ENCODER => "mp3hdEncoder", DEFAULT_DECODER => "mp3hdDecoder", ENCODER => { mp3hdEncoder => { NAME => "mp3hdEncoder", ESTR => sub { $opts = "-br $bitrate" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts -if %i -of %o" }, PROMPT => { BITRATE => 1 }, }, }, DECODER => { mp3hdDecoder => { NAME => "mp3hdDecoder", DSTR => sub { "$dopts -if %i -of %o" }, }, }, TAGS => { WRITE => 1, READ => 1, MODULE => "MP3::Tag", }, }, mp4 => { DEFAULT_ENCODER => "faac", DEFAULT_DECODER => "faad", ENCODER => { faac => { NAME => "faac", ESTR => sub { $opts = "-q $aacqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts -w $opts %i -o %o" }, PROMPT => { AACQUAL => 1 }, }, ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PRIMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { faad => { NAME => "faad", DSTR => sub { "$dopts -o %o %i" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::Scan", }, }, # m4a container with AAC codec mp4a => { DEFAULT_ENCODER => "faac", DEFAULT_DECODER => "faad", ENCODER => { faac => { NAME => "faac", ESTR => sub { $opts = "-q $aacqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts -w $opts %i -o %o" }, PROMPT => { AACQUAL => 1 }, }, ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts -y -i %i $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { faad => { NAME => "faad", DSTR => sub { "$dopts -o %o %i" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, ESTR => sub { "$eopts -w -q $aacqual %i -o %o" }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::Scan", }, }, # m4a container with ALAC codec alac => { DEFAULT_ENCODER => undef, DEFAULT_DECODER => "alac-decoder", DECODER => { 'alac-decoder' => { NAME => "alac-decoder", DSTR => sub { "$dopts -f %o %i" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 0, MODULE => "Audio::Scan", }, }, m4b => { DEFAULT_ENCODER => undef, DEFAULT_DECODER => "faad", DECODER => { faad => { NAME => "faad", DSTR => sub { "$dopts -o %o %i" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "$dopts -vc null -vo null -ao pcm:file=%o %i" }, }, ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, }, TAGS => { READ => 0, WRITE => 1, MODULE => undef, }, }, mpc => { DEFAULT_ENCODER => "mpcenc", DEFAULT_DECODER => "mpcdec", ENCODER => { mpcenc => { NAME => "mpcenc", ESTR => sub { $opts = "--$mpcqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts --overwrite $opts %i %o" }, PROMPT => { MPCQUAL => 1 }, }, }, DECODER => { mpcdec => { NAME => "mpcdec", DSTR => sub { "$dopts %i %o" }, }, ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::Scan", }, PROMPT => { MPCQUAL => 1, }, }, mpp => { DEFAULT_ENCODER => "mpcenc", DEFAULT_DECODER => "mpcdec", ENCODER => { mpcenc => { NAME => "mpcenc", ESTR => sub { $opts = "--$mpcqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts --overwrite $opts %i %o" }, PROMPT => { MPCQUAL => 1 }, }, }, DECODER => { mpcdec => { NAME => "mpcdec", DSTR => sub { "$dopts %i %o" }, }, ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::Scan", }, }, off => { DEFAULT_ENCODER => 'off', DEFAULT_DECODER => 'off', ENCODER => { off => { NAME => 'off', ESTR => sub { $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts --overwrite $opts %i --output %o" }, PROMPT => { OFMODE => 1, OFOPT => 1, }, }, }, DECODER => { off => { NAME => 'off', DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, ofr => { DEFAULT_ENCODER => "ofr", DEFAULT_DECODER => "ofr", ENCODER => { ofr => { NAME => "ofr", ESTR => sub { $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts --overwrite $opts %i --output %o" }, PROMPT => { OFMODE => 1, OFOPT => 1, }, }, }, DECODER => { ofr => { NAME => "ofr", DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, ofs => { DEFAULT_ENCODER => "ofs", DEFAULT_DECODER => "ofs", ENCODER => { ofs => { NAME => "ofs", ESTR => sub { $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts --overwrite $opts %i --output %o" }, PROMPT => { OFMODE => 1, OFOPT => 1, }, }, }, DECODER => { ofs => { NAME => "ofs", DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, oga => { DEFAULT_ENCODER => 'oggenc', DEFAULT_DECODER => 'oggdec', ENCODER => { oggenc => { NAME => 'oggenc', ESTR => sub { $opts = "--resample $freq -q $oggqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { FREQ => 1, OGGQUAL => 1, }, }, ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, sox => { NAME => "sox", ESTR => sub { $opts = "-r $freq -c $channels" if $defopts == 1; $opts = '' if $defopts == 0; "%i $eopts $opts %o" }, PROMPT => { FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { oggdec => { NAME => "oggdec", DSTR => sub { "$dopts %i --output %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, sox => { NAME => "sox", DSTR => sub { "%i $dopts %o" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "vorbiscomment", }, }, ogg => { DEFAULT_ENCODER => "oggenc", DEFAULT_DECODER => "oggdec", ENCODER => { oggenc => { NAME => "oggenc", ESTR => sub { $opts = "--resample $freq -q $oggqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i -o %o" }, PROMPT => { FREQ => 1, OGGQUAL => 1, }, }, ffmpeg => { NAME => "ffmpeg", ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, FREQ => 1, CHANNELS => 1, }, }, sox => { NAME => "sox", ESTR => sub { $opts = "-r $freq -c $channels" if $defopts == 1; $opts = '' if $defopts == 0; "%i $eopts $opts %o" }, PROMPT => { FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { oggdec => { NAME => "oggdec", DSTR => sub { "$dopts %i --output %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, sox => { NAME => "sox", DSTR => sub { "%i $dopts %o" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "vorbiscomment", }, }, opus => { DEFAULT_ENCODER => "opusenc", DEFAULT_DECODER => "opusdec", ENCODER => { opusenc => { NAME => 'opusenc', ESTR => sub { $opts = "--bitrate $bitrate" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMTP => { BITRATE => 1, }, }, }, DECODER => { opusdec => { NAME => 'opusdec', DSTR => sub { "--force-wav %i %o" }, PROMPT => { NONE => 0 }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, raw => { DEFAULT_ENCODER => "sox", DEFAULT_DECODER => "sox", ENCODER => { sox => { NAME => 'sox', ESTR => sub { $opts = "-r $freq -c $channels" if $defopts == 1; $opts = '' if $defopts == 0; "%i $opts $eopts %o $effect" }, PROMPT => { FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { sox => { NAME => 'sox', DSTR => sub { "-w -s -r $freq -c $channels $dopts %i %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, rm => { DEFAULT_ENCODER => 'ffmpeg', DEFAULT_DECODER => 'ffmpeg', ENCODER => { ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "-ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { FREQ => 1, CHANNELS => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "-ar $freq -ac $channels" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { FREQ => 1, CHANNELS => 1, }, }, }, DECODER => { mplayer => { NAME => 'mplayer', DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, shn => { DEFAULT_ENCODER => "shorten", DEFAULT_DECODER => "shorten", ENCODER => { shorten => { NAME => "shorten", ESTR => sub { $opts = "-c $channels" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { CHANNELS => 1 }, }, }, DECODER => { shorten => { NAME => "shorten", DSTR => sub { "-x %i %o" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, spx => { DEFAULT_ENCODER => "speexenc", DEFAULT_DECODER => "speexdec", ENCODER => { speexenc => { NAME => "speexenc", ESTR => sub { $opts = "--quality $spxqual" if $defopts == 1; $opts = '' if $defopts == 0; "$eopts $opts %i %o" }, PROMPT => { SPXQUAL => 1 }, }, ffmpeg => { NAME => 'ffmpeg', ESTR => sub { $opts = "--bitrate $bitrate.k" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i %i $eopts $opts %o" }, PROMPT => { BITRATE => 1, }, }, avconv => { NAME => 'avconv', ESTR => sub { $opts = "--bitrate $bitrate.k" if $defopts == 1; $opts = '' if $defopts == 0; "-y -i $eopts $opts %o" }, PROMPT => { BITRATE => 1, }, }, }, DECODER => { speexdec => { NAME => "speexdec", DSTR => sub { "$dopts %i %o" }, }, ffmpeg => { NAME => 'ffmpeg', DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => undef, }, }, tta => { DEFAULT_ENCODER => "ttaenc", DEFAULT_DECODER => "ttaenc", ENCODER => { ttaenc => { NAME => "ttaenc", ESTR => sub { "$eopts -e %i -o %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { ttaenc => { NAME => "ttaenc", DSTR => sub { "$dopts -d %i -o %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, wav => { DEFAULT_ENCODER => "mv", DEFAULT_DECODER => "cp", ENCODER => { mv => { NAME => "mv", ESTR => sub { "%i %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { cp => { NAME => "cp", DSTR => sub { "%i %o" }, } }, TAGS => { READ => 0, WRITE => 0, MODULE => undef, }, }, wv => { DEFAULT_ENCODER => "wavpack", DEFAULT_DECODER => "wvunpack", ENCODER => { wavpack => { NAME => "wavpack", ESTR => sub { "$eopts -h -y %i -o %o" }, PROMPT => { NONE => 0, }, }, ffmpeg => { NAME => 'ffmpeg', ESTR => sub { "-y -i %i $eopts %o" }, PROMPT => { NONE => 0, }, }, avconv => { NAME => 'avconv', ESTR => sub { "-y -i %i $eopts %o" }, PROMPT => { NONE => 0, }, }, }, DECODER => { wvunpack => { NAME => "wvunpack", DSTR => sub { "$dopts -y %i -o %o" }, }, ffmpeg => { NAME => "ffmpeg", DSTR => sub { "$dopts -y -i %i %o" }, }, avconv => { NAME => 'avconv', DSTR => sub { "$dopts -y -i %i %o" }, }, mplayer => { NAME => "mplayer", DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, }, TAGS => { READ => 1, WRITE => 1, MODULE => "Audio::Scan", }, }, ); # supported ffmpeg/avconv formats (decode only) my @ffmpeg_codecs = ( "mmf", "ra", "wma" ); my @ffmpeg_forks = ( "avconv", "ffmpeg" ); foreach my $fork (@ffmpeg_forks) { foreach my $codec (@ffmpeg_codecs) { $run{$codec}{DEFAULT_ENCODER} = $fork; $run{$codec}{DEFAULT_DECODER} = $fork; $run{$codec}{ENCODER}{$fork}{NAME} = $fork; $run{$codec}{DECODER}{$fork}{NAME} = $fork; $run{$codec}{DECODER}{$fork}{DSTR} = sub {"-y -i %i $dopts %o"}; $run{$codec}{ENCODER}{$fork}{ESTR} = sub {"-y -i %i $eopts -ab $bitrate.k -ar $freq -ac $channels %o"}; $run{$codec}{TAGS}{READ} = 0; $run{$codec}{TAGS}{WRITE} = 0; $run{$codec}{TAGS}{MODULE} = undef; } } # support reading of WMA tags via Audio::Scan $run{wma}{TAGS}{READ} = 1; $run{wma}{TAGS}{MODULE} = "Audio::Scan"; # supported video to audio types my @movie_codecs = ( "rv", "asf", "avi", "divx", "mkv", "mpg", "mpeg", "mov", "ogm", "qt", "vcd", "vob", "wmv", "flv", "svcd", "m4v", "nsv", "nuv", "psp", "smk", "ogv", "webm", # decode only audio formats "vqf", "tak", ); foreach (@movie_codecs) { $run{$_}{DEFAULT_ENCODER} = undef; $run{$_}{DEFAULT_DECODER} = "ffmpeg"; $run{$_}{DECODER}{mplayer}{NAME} = "mplayer"; $run{$_}{DECODER}{ffmpeg}{NAME} = "ffmpeg"; $run{$_}{DECODER}{mplayer}{DSTR} = sub { "$dopts -vc null -vo null -ao pcm:file=%o %i" }; $run{$_}{DECODER}{ffmpeg}{DSTR} = sub { "$dopts -i %i %o"; }; $run{$_}{TAGS}{READ} = 0; $run{$_}{TAGS}{WRITE} = 0; $run{$_}{TAGS}{MODULE} = undef; } # supported sndfile-convert formats my @sndfile = ( "pvf", "caf", "sf", "paf", "fap", "sd2", "mat4", "mat5", "mat", "ircam", "w64", "nist", "rf64", ); foreach (@sndfile) { $run{$_}{DEFAULT_ENCODER} = "sndfile-convert"; $run{$_}{DEFAULT_DECODER} = "sndfile-convert"; $run{$_}{ENCODER}{"sndfile-convert"}{NAME} = "sndfile-convert"; $run{$_}{DECODER}{"sndfile-convert"}{NAME} = "sndfile-convert"; $run{$_}{ENCODER}{"sndfile-convert"}{ESTR} = sub { "$eopts %i %o" }; $run{$_}{DECODER}{"sndfile-convert"}{DSTR} = sub { "$dopts %i %o" }; $run{$_}{TAGS}{READ} = 0; $run{$_}{TAGS}{WRITE} = 0; $run{$_}{TAGS}{MODULE} = undef; } # supported sox formats my @sox_codecs = ( "aiff", "aif", "au", "snd", "voc", "smp", "avr", "cdr", "8svx", "amb", "dat", "dvms", "f32", "f64", "fssd", "gsrt", "hcom", "txw", "vms", "al", "sou", "ima", "prc", "cvu", "maud", ); foreach (@sox_codecs) { $run{$_}{DEFAULT_ENCODER} = "sox"; $run{$_}{DEFAULT_DECODER} = "sox"; $run{$_}{ENCODER}{sox}{NAME} = "sox"; $run{$_}{DECODER}{sox}{NAME} = "sox"; $run{$_}{ENCODER}{sox}{ESTR} = sub { "%i -r $freq -c $channels $eopts %o $effect" }; $run{$_}{DECODER}{sox}{DSTR} = sub { "%i $dopts %o" }; $run{$_}{TAGS}{READ} = 0; $run{$_}{TAGS}{WRITE} = 0; $run{$_}{TAGS}{MODULE} = undef; $run{$_}{ENCODER}{sox}{PROMPT}{FREQ} = 1; $run{$_}{ENCODER}{sox}{PROMPT}{CHANNELS} = 1; } # load codecs.conf file load_codecs() if -e $codecs_conf; my $out_name = $outfile; my $out_dir = $outdir; my $first_message = 1; my %files; my $number = 0; # process all files and directories sub proc_input { $to =~ tr/A-Z/a-z/; perror("bad_input","") unless(exists($run{$to})); proc_preserve_dir($dir[0]) if @dir and $preserve; # process recursive directory preservation (sends to proc_files proc_dirs() if @dir and not $preserve; # process directories including recursively (sends to proc_files) proc_files() if @file; # process all files fork_files(); # start the conversion process. } # process all files (all roads lead to rome) sub proc_files { if (@file) { foreach my $i (sort(@file)) { my ($file, $dir, $ext) = fileparse("$i", qr/\.[^.]*/); $ext =~ s/^\.//; $dir = rel2abs($dir); $outdir = $dir if not defined($out_dir) and not $preserve; $outdir = $out_dir if $preserve; my $if = $ext; $if =~ tr/A-Z/a-z/; $only =~ tr/A-Z/a-z/ if $only; next if $only and $if ne $only; $encoder = $my_encoder if defined($my_encoder); $decoder = $my_decoder if defined($my_decoder); $encoder = $run{$to}{DEFAULT_ENCODER} if not $my_encoder; my $codec = ( $if eq "m4a" ? Audio::Scan->scan_info($i)->{info}->{tracks}[0]->{encoding} : $if ); $decoder = $run{$codec}{DEFAULT_DECODER} if not $my_decoder; if (-e "$dir/$file.$to" and not $overwrite) { pnotice("overwrite","$file.$to",1); $total_failed++; next; } if (check_input($file,$dir,$codec) == 0) { pnotice("unk_encoder","$file.$ext",1), next unless(exists($run{$to}{ENCODER}{$encoder})); pnotice("unk_decoder","$file.$ext",1), next unless(exists($run{$codec}{DECODER}{$decoder})); get_visual_opts($to,$outdir) if $gui and not defined($first_run); $first_run = 1; perror("multi_out","") if (defined($out_name) and $#file gt 0 or defined($out_name) and @dir); perror("no_outdir","") if (not -e $outdir and not -d $outdir); $outfile = "$file" if not $out_name; if ($keep and $if eq $to) { system("cp -v \"$dir/$file.$ext\" \"$outdir/$outfile.$ext\"") if $outdir ne $dir and not -e "$outdir/$outfile.$ext"; next if $outdir eq $dir; } else { $files{"FILE$number"}{FILE} = "$dir/$file"; $files{"FILE$number"}{OUTF} = "$outdir/$outfile"; $files{"FILE$number"}{EXT} = "$ext"; $files{"FILE$number"}{CODEC} = "$codec"; $files{"FILE$number"}{NAME} = "$file"; $files{"FILE$number"}{OUTD} = "$outfile"; $files{"FILE$number"}{DECODER} = "$decoder"; $number++; } } } } undef(@file); } # process directories and push all to @file arrary sub proc_dirs { if (@dir) { my @tmp_dir = @dir; undef(@dir); $topdir = $tmp_dir[0]; if (not $recursive) { undef(@file); foreach my $d (@tmp_dir) { opendir(DIR, "$d") or perror("opening_dir","$d: $!"); my @dir_files = readdir(DIR); closedir(DIR); perror("empty_dir","$d") if $#dir_files <= 1; foreach my $f (@dir_files) { if (not -d $f and not -d "$d/$f") { push(@file, "$d/$f"); undef($out_name); } } } proc_files(); return 0; } elsif ($recursive) { if (not $preserve) { undef(@file); foreach my $r (@tmp_dir) { $r = rel2abs($r); find ( sub { my $rfile = $File::Find::name; push(@file, $rfile) if not -d $rfile; }, $r ); } proc_files(); return 0; } } } } # preserve directory structuer (revised 10-7-2013) my $out_dir_original = rel2abs($outdir) if $outdir and -d $outdir; sub proc_preserve_dir { $topdir = rel2abs($dir[0]); perror("no_outdir","") if not defined($out_dir_original); perror("no_outdir","") if not -d $out_dir_original; undef(@file); # clear the array before we begin. find ( sub { my $val = $File::Find::name; $val =~ s/(\$)/\\\$/g; if ($val ne $topdir) { $val =~ s/$topdir\///; # create mirrored directories in output directory if (not -f fileparse("$topdir/$val") and not -d "$out_dir_original/$val") { say "creating directory $out_dir_original/$val" if not -f "$topdir/$val" and $verbose; mkdir("$out_dir_original/$val", 0755) if not -f "$topdir/$val"; } # this will list all files in their original directories if (-f "$topdir/$val") { say "$lang{debug} pushing to \@file: $topdir/$val" if $debug == 1; push(@file, "$topdir/$val"); } # set $out_dir to the $out_dir = "$out_dir_original/" . dirname($val) if -f "$topdir/$val"; # send file, and output dir to proc_files(); proc_files(); } }, $topdir ); } # convert input to destination format sub convert { my ($inf, $outf, $infmt, $iname, $oname, $codec, $dec) = @_; my $if = $infmt; $if =~ tr/A-Z/a-z/; clear_tag_hash() if not $rip; # catch ^C. will have to be pressed repeatedly to exit the process. $SIG{INT} = sub { unlink("$outf.$$.wav"); kill 9, $$; }; # check to see if encoder/decoder exists. if not, see if we have one # that supports the desired input/output formats. $decoder = $dec; check_encoder(); check_decoder($codec); my $decode_string = $run{$codec}{DECODER}{$decoder}{DSTR}->(); $decode_string =~ s/%i/\"$inf.$infmt\"/; $decode_string =~ s/%o/\"$outf.$$.wav\"/; $decode_string =~ s/(\$|\\)/\\$1/g; pnotice("debug","\n$run{$codec}{DECODER}{$decoder}{NAME} $decode_string", 2) if $dryrun; # decode input file to temporary wav system("$run{$codec}{DECODER}{$decoder}{NAME} $decode_string $silent") if not $dryrun; # remove temporary wav file and die if decode fails if ($? > 0) { unlink("$outf.$$.wav") if -e "$outf.$$.wav"; say ""; $banner = 0; pnotice("decode_failed","$inf.$infmt: try with --verbose",1); return 1; } # normalize wav file before encoding to output format perror("no_app","normalize") if $normalize and not `which normalize 2>/dev/null`; system("normalize $nopts \"$outf.$$.wav\"") if $normalize; # copy meta-data from input file to %tag_name read_tags("$inf.$infmt", "$codec") if $run{$codec}{TAGS}{READ} == 1 and not $dryrun; my $tag_opts = format_tags($to); # tag options for mp4/m4a/m4b/mpc/mpp/bonk/spx/wv my $encode_string = $run{$to}{ENCODER}{$encoder}{ESTR}->(); $encode_string =~ s/%i/$tag_opts \"$outf.$$.wav\"/ if $to =~ /mpc|mpp|mp4|m4a/ and $encoder eq "faac" or $encoder eq "mpcenc"; $encode_string =~ s/%i/\"$outf.$$.wav\" $tag_opts/ if $to =~ /mpc|mpp|mp4|m4a/ and $encoder eq "ffmpeg" or $encoder eq "avconv"; $encode_string =~ s/%i/\"$outf.$$.wav\"/ if $to !~ /mpc|mpp|mp4|m4a/; $encode_string =~ s/%o/$tag_opts \"$outf.$to\"/ if $tag_opts ne " " and $to !~ /mpc|mpp|mp4|m4a/; $encode_string =~ s/%o/\"$outf.$to\"/ if $tag_opts eq " " or $to =~ /mpc|mpp|mp4|m4a/; $encode_string =~ s/(\$|\\)/\\$1/g; # read tag options from command line if present get_user_tags(); pnotice("debug","\n$run{$to}{ENCODER}{$encoder}{NAME} $encode_string", 2) if $dryrun; # encode temporary WAV to desired output format. system("$run{$to}{ENCODER}{$encoder}{NAME} $encode_string $silent") if not $dryrun; # remove partially encoded output file and temporary wav if encoding fails if ($? > 0) { unlink("$outf.$to") if -e "$outf.$to"; unlink("$outf.$$.wav") if -e "$outf.$$.wav"; say ""; $banner = 0; pnotice("encode_failed","$outf.$to: $?",1); return 1; } # write meta-data to output file from %tag_name hash write_tags("$outf.$to", "$to") if $run{$to}{TAGS}{WRITE} == 1 and $tag_opts eq " " and not $dryrun; unlink("$outf.$$.wav") if not $dryrun; unlink("$inf.$infmt") if $delete and not $dryrun; pnotice("removed_tmp","$outf.$$.wav","2") if $verbose; pnotice("removed_src","$inf.$infmt", "2") if $delete and $verbose; } $pm->run_on_finish ( sub { my $pid = shift; my $exit_code = shift; my $ident = shift; if (-e "$ident.$to") { $total_converted++; } say "$lang{debug} PID: $pid EXIT_CODE: $exit_code IDENTITY: \"$ident.$to\"" if $debug == 1; } ); # convert all files that have been placed in the %files hash through various procs* sub fork_files { say "\n$name - $version\n" if not $gui and $banner == 1; foreach (sort(keys(%files))) { $pm->start($files{$_}{OUTF}) and next; my $msg = "$lang{converting}" . " " . basename($files{$_}{FILE}) . ".$files{$_}{EXT} -> $to"; say "$msg" if not $gui; system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$msg\" 10 &") if $gui and $kde; system("notify-send \"$name\" \"$msg\" -t 35 -i $icon_path &") if $gui and $gnome; convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}","$files{$_}{CODEC}","$files{$_}{DECODER}"); $pm->finish; } $pm->wait_all_children; $total_failed = $number - $total_converted if $total_converted < $number; my $finished_msg = "\n$lang{total_converted} $total_converted, $lang{failed} $total_failed\n"; say "$finished_msg" if not $gui; system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$finished_msg\" 10 &") if $gui and $kde; system("notify-send \"$name\" \"$finished_msg\" -t 35 -i $icon_path &") if $gui and $gnome; } # if the default encoder does not exist, cycle through the supported # encoders until we find one that does. sub check_encoder { if (not `which $encoder 2>/dev/null`) { my $first_encoder = $encoder; foreach (keys %{$run{$to}{ENCODER}}) { $encoder = $_ and return if `which $_ 2>/dev/null`; } perror("no_encode_app","$to") if $encoder eq $first_encoder; } else { return 0; } } # if the default decoder does not exist, cycle through the supported # decoders until we find one that does. sub check_decoder { my $from = shift; if (not `which $decoder 2>/dev/null`) { my $first_decoder = $decoder; foreach (keys %{$run{$from}{DECODER}}) { $decoder = $_ and return if `which $_ 2>/dev/null`; } perror("no_decode_app","$from") if $decoder eq $first_decoder; } else { return 0; } } # make sure encoding/decoding is supported. sub check_input { my $file = shift; my $dir = shift; my $codec = shift; perror("no_encoder","$to") unless(defined($run{$to}{ENCODER})); unless(defined($run{$codec}{DECODER})) { pnotice("no_decoder","$codec",2) if $verbose or not $only; $total_failed++; return 1; } return 0; } ######################################## # GUI options for KDE & Gnome Plugins # ######################################## my $kdialog = "kdialog --title \"$name\""; my $zenity = "zenity --title \"$name\" --list --radiolist --width 100 --height 300 --column '' --column "; sub get_visual_opts { my ($to_fmt,$od) = @_; # escape illegal characters in output directory name $od =~ s/( |'|\(|\)|"|\\)/\\$1/g; $outdir = `kdialog --getexistingdirectory $od` if $config{KDE_DIR} == 1 and $kde; $outdir = `zenity --title \"$lang{gui_outdir}\" --file-selection --directory --filename=\`pwd\`` if $config{ZEN_DIR} == 1 and $gnome; chomp($outdir); $out_dir = $outdir; exit(1) if not $outdir; if ($config{KDE_OPTS} == 1 or $config{ZEN_OPTS} == 1) { foreach (keys %{$run{$to_fmt}{ENCODER}{$encoder}{PROMPT}}) { prompt_user($_); } } } sub prompt_user { my $opt = shift; given ($opt) { when (/^BITRATE/) { $bitrate = `$kdialog --default $bitrate --combobox \"$lang{gui_bitrate}\" 56 112 128 160 192 256 320` if $kde; $bitrate = `$zenity \"$lang{gui_bitrate}\" FALSE 56 FALSE 112 FALSE 128 FALSE 160 TRUE 192 FALSE 256 FALSE 320` if $gnome; chomp($bitrate); exit(1) if not $bitrate; } when (/^FREQ/) { $freq = `$kdialog --default $freq --combobox \"$lang{gui_freq}\" 32000 44100 48000` if $kde; $freq = `$zenity \"$lang{gui_freq}\" FALSE 32000 TRUE 44100 FALSE 48000` if $gnome; chomp($freq); exit(1) if not $freq; } when (/^CHANNELS/) { $channels = `$kdialog --default $channels --combobox \"$lang{gui_chans}\" 1 2` if $kde; $channels = `$zenity \"$lang{gui_chans}\" FALSE 1 TRUE 2` if $gnome; chomp($channels); exit(1) if not $channels; } when (/^FCOMP/) { $fcomp = `$kdialog --default $fcomp --combobox \"$lang{gui_fcomp}\" 0 1 2 3 4 5 6 7 8` if $kde; $fcomp = `$zenity \"$lang{gui_fcomp}\" FALSE 0 FALSE 1 TRUE 2 FALSE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 FALSE 8` if $gnome; chomp($fcomp); exit(1) if not $fcomp; } when (/^ACOMP/) { $acomp = `$kdialog --default $acomp --combobox \"$lang{gui_acomp}\" 1000 2000 3000 4000 5000` if $kde; $acomp = `$zenity \"$lang{gui_acomp}\" FALSE 1000 FALSE 2000 TRUE 3000 FALSE 4000 FALSE 5000` if $gnome; chomp($acomp); exit(1) if not $acomp; } when (/^OGGQUAL/) { $oggqual = `$kdialog --default $oggqual --combobox \"$lang{gui_oggqual}\" 0 1 2 3 4 5 6 7 8 9 10` if $kde; $oggqual = `$zenity \"$lang{gui_oggqual}\" FALSE 0 FALSE 1 FALSE 2 TRUE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 FALSE 8 FALSE 9 FALSE 10` if $gnome; chomp($oggqual); exit(1) if not $oggqual; } when (/^SPXQUAL/) { $spxqual = `$kdialog --default $spxqual --combobox \"$lang{gui_spxqual}\" 0 1 2 3 4 5 6 7 8 9 10` if $kde; $spxqual = `$zenity \"$lang{gui_spxqual}\" FALSE 0 FALSE 1 FALSE 2 FALSE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 TRUE 8 FALSE 9 FALSE 10` if $gnome; chomp($spxqual); exit(1) if not $spxqual; } when (/^AACQUAL/) { $aacqual = `$kdialog --default $aacqual --combobox \"$lang{gui_aacqual}\" 100 200 300 400 500` if $kde; $aacqual = `$zenity \"$lang{gui_aacqual}\" TRUE 100 FALSE 200 FALSE 300 FALSE 400 FALSE 500` if $gnome; chomp($aacqual); exit(1) if not $aacqual; } when (/^MPCQUAL/) { $mpcqual = `$kdialog --default $mpcqual --combobox \"$lang{gui_mpcqual}\" thumb radio standard xtreme insane braindead` if $kde; $mpcqual = `$zenity \"$lang{gui_mpcqual}\" FALSE thumb TRUE radio FALSE standard FALSE xtreme FALSE insane FALSE braindead` if $gnome; chomp($mpcqual); exit(1) if not $mpcqual; } when (/^OFMODE/ ) { $ofmode = `$kdialog --default $ofmode --combobox \"$lang{gui_ofmode}\" fast normal high extra best highnew extranew bestnew` if $kde; $ofmode = `$zenity \"$lang{gui_ofmode}\" FALSE fast TRUE normal FALSE high FALSE extra FALSE best FALSE highnew FALSE extranew FALSE bestnew` if $gnome; chomp($ofmode); exit(1) if not $ofmode; } when (/^OFOPT/) { $ofopt = `$kdialog --default $ofopt --combobox \"$lang{gui_ofopt}\" none fast normal high best` if $kde; $ofopt = `$zenity \"$lang{gui_ofopt}\" FALSE none TRUE fast FALSE normal FALSE high FALSE best` if $gnome; chomp($ofopt); exit(1) if not $ofopt; } when (/^BRATIO/) { $bratio = `$kdialog --default $bratio --combobox \"$lang{gui_bratio}\" 1 2 3 4 5` if $kde; $bratio = `$zenity \"$lang{gui_bratio}\" FALSE 1 TRUE 2 FALSE 3 FALSE 4 FALSE 5` if $gnome; chomp($bratio); exit(1) if not $bratio; } when (/^BQUANL/) { $bquanl = `$kdialog --default $bquanl --combobox \"$lang{gui_bquanl}\" 1.00 1.25 1.50 1.75 2.00` if $kde; $bquanl = `$zenity \"$lang{gui_bquanl}\" TRUE 1.00 FALSE 1.25 FALSE 1.50 FALSE 1.75 FALSE 2.00` if $gnome; chomp($bquanl); exit(1) if not $bquanl; } when (/^BPSIZE/) { $bpsize = `$kdialog --default $bpsize --combobox \"$lang{gui_bpsize}\" 10 128` if $kde; $bpsize = `$zenity \"$lang{gui_bpsize}\" FALSE 10 TRUE 128` if $gnome; chomp($bpsize); exit(1) if not $bpsize; } default { return 0; } } } # all copied tags will be stored here for furture use my %tag_name = ( title => undef, track => undef, artist => undef, album => undef, comment => undef, year => undef, genre => undef, ); # override tags read from input file if any of the tagging # options are specified by the user during conversion. sub get_user_tags { $tag_name{title} = $title if $title; $tag_name{track} = $track if $track; $tag_name{artist} = $artist if $artist; $tag_name{album} = $album if $album; $tag_name{comment} = $comment if $comment; $tag_name{year} = $year if $year; $tag_name{genre} = $genre if $genre; } # the formats MP4/M4A/M4B/MPC/MPP/WV/BONK have no tag writing module. # tags therefore have to be written during encode via various # command line args. sub format_tags { my $type = shift; given ($type) { when (/^mp4$|^m4a$|^m4b$/) { if ($run{$to}{ENCODER}{$encoder}{NAME} eq "ffmpeg" or $run{$to}{ENCODER}{$encoder}{NAME} eq "avconv") { $tag_name{track} = 0 if not $tag_name{track}; $tag_name{year} = 0 if not $tag_name{year}; return "-metadata TITLE=\"$tag_name{title}\" -metadata TRACK=\"$tag_name{track}\" -metadata ARTIST=\"$tag_name{artist}\" -metadata ALBUM=\"$tag_name{album}\" -metadata COMMENT=\"$tag_name{comment}\" -metadata YEAR=\"$tag_name{year}\" -metadata GENRE=\"$tag_name{genre}\""; } else { return "--title \"$tag_name{title}\" --track \"$tag_name{track}\" --artist \"$tag_name{artist}\" --album \"$tag_name{album}\" --comment \"$tag_name{comment}\" --year \"$tag_name{year}\" --genre \"$tag_name{genre}\""; } } when (/^mpc$|^mpp$/) { return "--artist \"$tag_name{artist}\" --title \"$tag_name{title}\" --album \"$tag_name{album}\" --track \"$tag_name{track}\" --genre \"$tag_name{genre}\" --year \"$tag_name{year}\" --comment \"$tag_name{comment}\""; } when (/^wv$/) { return "-w \"Title=$tag_name{title}\" -w \"Track=$tag_name{track}\" -w \"Artist=$tag_name{artist}\" -w \"Album=$tag_name{album}\" -w \"Comment=$tag_name{comment}\" -w \"Year=$tag_name{year}\" -w \"Genre=$tag_name{genre}\""; } when (/^bonk$/) { return "-t \"$tag_name{title}\" -a \"$tag_name{artist}\" -c \"$tag_name{comment}\""; } when (/^spx$/) { return "--author \"$tag_name{artist}\" --title \"$tag_name{title}\" --comment \"year=$tag_name{year}\" --comment \"tracknumber=$tag_name{track}\" --comment \"album=$tag_name{album}\" --comment \"genre=$tag_name{genre}\" --comment \"comment=$tag_name{comment}\""; } default { return " "; } } } # meta-data is read based on input file extension. # all tags which are present will be copied to # the %tag_name hash. sub read_tags { my $in_file = shift; my $in_format = shift; my $tag_module = $run{$in_format}{TAGS}{MODULE}; given ($in_format) { when (/^mp3$|^mp3hd$/) { my $mp3tag = $tag_module->new($in_file); my @tags = $mp3tag->autoinfo(); $tag_name{title} = "$tags[0]" if $tags[0]; $tag_name{track} = "$tags[1]" if $tags[1]; $tag_name{artist} = "$tags[2]" if $tags[2]; $tag_name{album} = "$tags[3]" if $tags[3]; $tag_name{comment} = "$tags[4]" if $tags[4]; $tag_name{year} = "$tags[5]" if $tags[5]; $tag_name{genre} = "$tags[6]" if $tags[6]; return 0; } when (/^ogg$|^oga$/) { my $ogg_tag = Audio::Scan->scan_tags($in_file)->{tags}; $tag_name{title} = $ogg_tag->{TITLE} if $ogg_tag->{TITLE}; $tag_name{track} = $ogg_tag->{TRACKNUMBER} if $ogg_tag->{TRACKNUMBER}; $tag_name{artist} = $ogg_tag->{ARTIST} if $ogg_tag->{ARTIST}; $tag_name{album} = $ogg_tag->{ALBUM} if $ogg_tag->{ALBUM}; $tag_name{comment} = $ogg_tag->{COMMENT} if $ogg_tag->{COMMENT}; $tag_name{year} = $ogg_tag->{YEAR} if $ogg_tag->{YEAR}; $tag_name{genre} = $ogg_tag->{GENRE} if $ogg_tag->{GENRE}; return 0; } when (/^spx$/) { my $pid = open(SPX, "speexdec \"$in_file\" tmp1-$$.wav 2>&1 |") or perror("opening_file","$in_file"); my @data = ; @data = grep(!/^$|^#/, @data); close(SPX); foreach (@data) { next unless /=/; chomp; my ($k, $v) = split /=/; $k =~ tr/A-Z/a-z/; $tag_name{$k} = $v if exists($tag_name{$k}); $tag_name{artist} = $v if $k =~ /^author/i; $tag_name{track} = $v if $k =~ /^tracknumber/i; } unlink("tmp-$$.wav"); return 0; } when (/^flac$|^fla$/) { my $flac_tag = Audio::Scan->scan_tags($in_file)->{tags}; $tag_name{title} = $flac_tag->{TITLE} if $flac_tag->{TITLE}; $tag_name{track} = $flac_tag->{TRACKNUMBER} if $flac_tag->{TRACKNUMBER}; $tag_name{artist} = $flac_tag->{ARTIST} if $flac_tag->{ARTIST}; $tag_name{album} = $flac_tag->{ALBUM} if $flac_tag->{ALBUM}; $tag_name{comment} = $flac_tag->{COMMENT} if $flac_tag->{COMMENT}; $tag_name{year} = $flac_tag->{DATE} if $flac_tag->{DATE}; $tag_name{genre} = $flac_tag->{GENRE} if $flac_tag->{GENRE}; return 0; } when (/^(mp4|m4b|alac|mp4a)$/) { my $mp4_tag = $tag_module->scan_tags($in_file)->{tags}; $tag_name{title} = $mp4_tag->{NAM} if $mp4_tag->{NAM}; $tag_name{track} = $mp4_tag->{TRKN} if $mp4_tag->{TRKN}; $tag_name{artist} = $mp4_tag->{ART} if $mp4_tag->{ART}; $tag_name{album} = $mp4_tag->{ALB} if $mp4_tag->{ALB}; $tag_name{comment} = $mp4_tag->{CMT} if $mp4_tag->{CMT}; $tag_name{year} = $mp4_tag->{DAY} if $mp4_tag->{DAY}; $tag_name{genre} = $mp4_tag->{GNRE} if $mp4_tag->{GNRE}; return 0; } when (/^ape$|^mpc$|^mpp$|^wv$/) { my $audio_tag = $tag_module->scan_tags($in_file)->{tags}; $tag_name{title} = $audio_tag->{TITLE} if $audio_tag->{TITLE}; $tag_name{track} = $audio_tag->{TRACK} if $audio_tag->{TRACK}; $tag_name{artist} = $audio_tag->{ARTIST} if $audio_tag->{ARTIST}; $tag_name{album} = $audio_tag->{ALBUM} if $audio_tag->{ALBUM}; $tag_name{comment} = $audio_tag->{COMMENT} if $audio_tag->{COMMENT}; $tag_name{year} = $audio_tag->{YEAR} if $audio_tag->{YEAR}; $tag_name{genre} = $audio_tag->{GENRE} if $audio_tag->{GENRE}; return 0; } when (/^wma$/) { my $wma_tag = $tag_module->scan_tags($in_file)->{tags}; $tag_name{title} = $wma_tag->{Title} if $wma_tag->{Title}; $tag_name{track} = $wma_tag->{'WM/TrackNumber'} if $wma_tag->{'WM/TrackNumber'}; $tag_name{artist} = $wma_tag->{'WM/AlbumArtist'} if $wma_tag->{'WM/AlbumArtist'}; $tag_name{album} = $wma_tag->{'WM/AlbumTitle'} if $wma_tag->{'WM/AlbumTitle'}; $tag_name{comment} = $wma_tag->{'WM/Description'} if $wma_tag->{'WM/Description'}; $tag_name{year} = $wma_tag->{'WM/Year'} if $wma_tag->{'WM/Year'}; $tag_name{genre} = $wma_tag->{'WM/Genre'} if $wma_tag->{'WM/Genre'}; return 0; } default { return 1; } } } # write meta-data stored in %tag_name to output file. sub write_tags { my $out_file = shift; my $out_format = shift; my $tag_m; given ($out_format) { when (/^mp3$|^mp3hd$/) { $tag_m = MP3::Tag->new("$out_file"); # ID3v2 Tags unless(exists($tag_m->{ID3v2})) { $tag_m->new_tag("ID3v2"); } $tag_m->{ID3v2}->add_frame("TIT2", "$tag_name{title}") if defined($tag_name{title}); $tag_m->{ID3v2}->add_frame("TRCK", "$tag_name{track}") if defined($tag_name{track}); $tag_m->{ID3v2}->add_frame("TPE1", "$tag_name{artist}") if defined($tag_name{artist}); $tag_m->{ID3v2}->add_frame("TALB", "$tag_name{album}") if defined($tag_name{album}); $tag_m->{ID3v2}->comment("$tag_name{comment}") if defined($tag_name{comment}); $tag_m->{ID3v2}->add_frame("TYER", "$tag_name{year}") if defined($tag_name{year}); $tag_m->{ID3v2}->add_frame("TCON", "$tag_name{genre}") if defined($tag_name{genre}); $tag_m->{ID3v2}->write_tag; # ID3v1 Tags unless(exists($tag_m->{ID3v1})) { $tag_m->new_tag("ID3v1"); } $tag_m->{ID3v1}->title("$tag_name{title}") if defined($tag_name{title}); $tag_m->{ID3v1}->track("$tag_name{track}") if defined($tag_name{track}); $tag_m->{ID3v1}->artist("$tag_name{artist}") if defined($tag_name{artist}); $tag_m->{ID3v1}->album("$tag_name{album}") if defined($tag_name{album}); $tag_m->{ID3v1}->comment("$tag_name{comment}") if defined($tag_name{comment}); $tag_m->{ID3v1}->year("$tag_name{year}") if defined($tag_name{year}); $tag_m->{ID3v1}->genre("$tag_name{genre}") if defined($tag_name{genre}); $tag_m->{ID3v1}->write_tag; return 0; } when (/^ogg$|^oga$/) { $tag_m = ''; $tag_m = "$tag_m -t \"TITLE=$tag_name{title}\"" if $tag_name{title}; $tag_m = "$tag_m -t \"TRACKNUMBER=$tag_name{track}\"" if $tag_name{track}; $tag_m = "$tag_m -t \"ARTIST=$tag_name{artist}\"" if $tag_name{artist}; $tag_m = "$tag_m -t \"ALBUM=$tag_name{album}\"" if $tag_name{album}; $tag_m = "$tag_m -t \"COMMENT=$tag_name{comment}\"" if $tag_name{comment}; $tag_m = "$tag_m -t \"YEAR=$tag_name{year}\"" if $tag_name{year}; $tag_m = "$tag_m -t \"GENRE=$tag_name{genre}\"" if $tag_name{genre}; system("vorbiscomment -w $tag_m \"$out_file\"") if $tag_m ne ''; return 0; } when (/^fla$|^flac$/) { $tag_m = Audio::FLAC::Header->new("$out_file"); my $tag_i = $tag_m->tags(); $tag_i->{TITLE} = "$tag_name{title}" if $tag_name{title}; $tag_i->{TRACKNUMBER} = "$tag_name{track}" if $tag_name{track}; $tag_i->{ARTIST} = "$tag_name{artist}" if $tag_name{artist}; $tag_i->{ALBUM} = "$tag_name{album}" if $tag_name{album}; $tag_i->{COMMENT} = "$tag_name{comment}" if $tag_name{comment}; $tag_i->{DATE} = "$tag_name{year}" if $tag_name{year}; $tag_i->{GENRE} = "$tag_name{genre}" if $tag_name{genre}; $tag_m->write(); return 0; } default { perror("no_write_tag","$out_file"); } } } # this is necessary when converting multiple files. # it prevents old tags from the previous file being # copied over to the next file in line. sub clear_tag_hash { foreach (keys(%tag_name)) { $tag_name{$_} = ''; } } # display meta-data for selected file(s) sub show_taginfo { perror("no_input","") if $#file < 0; foreach my $i (@file) { my ($file, $dir, $ext) = fileparse("$i", qr/\.[^.]*/); $ext =~ s/^\.//; my $from = $ext; $from =~ tr/A-Z/a-z/; if ($run{$from}{TAGS}{READ} == 1) { clear_tag_hash(); read_tags("$dir/$file.$ext","$from"); say ''; pnotice("tag_info","$file.$ext",2); say " Artist: $tag_name{artist}"; say " Title: $tag_name{title}"; say " Album: $tag_name{album}"; say " Track: $tag_name{track}"; say "Comment: $tag_name{comment}"; say " Year: $tag_name{year}"; say " Genre: $tag_name{genre}"; say ''; } else { pnotice("no_read_tag","$file.$ext",2); } } } # write tags to file supplied by the user sub write_user_tags { perror("no_input","") if $#file < 0; say ''; say "$name - $version\n"; foreach (@file) { my ($file, $dir, $ext) = fileparse("$_", qr/\.[^.]*/); $ext =~ s/^\.//; my $from = $ext; $from =~ tr/A-Z/a-z/; if ($run{$from}{TAGS}{WRITE} == 1) { clear_tag_hash(); read_tags("$dir/$file.$ext","$from"); $tag_name{title} = $title if $title; $tag_name{track} = $track if $track; $tag_name{artist} = $artist if $artist; $tag_name{album} = $album if $album; $tag_name{comment} = $comment if $comment; $tag_name{year} = $year if $year; $tag_name{genre} = $genre if $genre; write_tags("$dir/$file.$ext","$from"); say "$lang{write_tag_i} $file.$ext"; } else { perror("no_write_tag","$file.$ext"); } } say ''; } # print out list of supported encode & decode formats sub show_formats { say "\n$name - $version\n"; say "EXT E D ENCODER DECODER TAG-READ TAG-WRITE"; say "----------------------------------------------------------------------"; my $enc_count = 0; my $dec_count = 0; foreach (sort(keys(%run))) { my $e = "N"; $e = "Y" if defined($run{$_}{DEFAULT_ENCODER}); my $d = "N"; $d = "Y" if defined($run{$_}{DEFAULT_DECODER}); my $r = "N"; $r = "Y" if $run{$_}{TAGS}{READ} == 1; my $w = "N"; $w = "Y" if $run{$_}{TAGS}{WRITE} == 1; my $enc = ''; $enc = $run{$_}{DEFAULT_ENCODER} if defined($run{$_}{DEFAULT_ENCODER}); my $dec = ''; $dec = $run{$_}{DEFAULT_DECODER} if defined($run{$_}{DEFAULT_DECODER}); printf("%-9s %-3s %-3s %-15s %-18s %-10s %s\n", $_, $e, $d, $enc, $dec, $r, $w); ++$enc_count if $enc ne ''; ++$dec_count if $dec ne ''; } say "\n$lang{enc_fmts} $enc_count --- $lang{dec_fmts} $dec_count\n"; } # show encoders for output format sub show_encoders { say "\n$name - $version\n\n$lang{show_encoders}: $my_encoder\n"; foreach (sort(keys %{$run{$my_encoder}{ENCODER}})) { print "$_ -> "; print "installed" if `which $_ 2>/dev/null`; print "not found" if not `which $_ 2>/dev/null`; print " (default)" if $_ eq $run{$my_encoder}{DEFAULT_ENCODER}; say ''; } say ''; } # show decoders for input format sub show_decoders { say "\n$name - $version\n\n$lang{show_decoders}: $my_decoder\n"; foreach (sort(keys %{$run{$my_decoder}{DECODER}})) { print "$_ -> "; print "installed" if `which $_ 2>/dev/null`; print " (default)" if $_ eq $run{$my_decoder}{DEFAULT_DECODER}; say ''; } say ''; } ################# # cd ripping... # ################# # get total number of tracks from cdparanoia query sub get_total_tracks { open(CDINFO, "cdparanoia -Q 2>&1 |") or die "can't fork: $!\n"; my @cdquery = ; close(CDINFO); my $fmt_tracks = $cdquery[-3]; $fmt_tracks =~ s/\s//g; my @ttracks = split(/\./, $fmt_tracks); return "$ttracks[0]"; } my (%cd, %ripconfig, @cdtrack, $track_total); # setup the cddb config sub get_cddb_config { $config{USE_CDDB} = 0 && return if $nocddb; $config{CDDB_INPUT} = 0 if $noinput; $ripconfig{CDDB_HOST} = $config{CDDB_HOST}; $ripconfig{CDDB_PORT} = $config{CDDB_PORT}; $ripconfig{CDDB_MODE} = $config{CDDB_MODE}; $ripconfig{DEVICE} = $device; $ripconfig{CDDB_INPUT} = $config{CDDB_INPUT}; print $ripconfig{CDDB_HOST}; %cd = get_cddb(\%ripconfig); if (not $cd{title}) { pnotice("no_cddb","",2); $config{USE_CDDB} = 0; } else { @cdtrack = @{$cd{track}}; $track_total = $cd{tno}; } } # check to see if a disc is present sub query_disc { system("cdparanoia -q -d $device -Q > /dev/null 2>&1"); perror("no_disc","$device") if $? > 0; } # set tag info from cddb sub tag_track { my $tno = shift; $tag_name{artist} = $cd{artist} if $cd{artist}; $tag_name{title} = $cdtrack[$tno-1] if $cdtrack[$tno-1]; $tag_name{genre} = $cd{cat} if $cd{cat}; $tag_name{track} = $tno; $tag_name{album} = $cd{title} if $cd{title}; $tag_name{year} = $cd{year} if $cd{year}; $tag_name{comment} = ''; } # process and convert ripped track sub rip_cd { my ($on,$tno) = @_; $outdir = $ENV{HOME}; $to =~ tr/A-Z/a-z/; get_visual_opts($to,$out_dir) if $gui and not defined($first_run); $first_run = 1; pnotice("ripping_track","$tno",2); $on =~ s/\//_/g; say "\ncdparanoia -d $device $tno $on.wav\n" if $dryrun; system("cdparanoia -d $device $tno \"$on.wav\" >/dev/null 2>&1") if not $dryrun; if ($to !~ /wav/i) { push(@file, "$on.wav"); tag_track($tno); proc_input(); clear_tag_hash(); undef(@file); unlink("$on.wav") if not $dryrun; pnotice("removed_tmp","$on.wav",2) if $verbose; } } # rip selected tracks or all from disc sub proc_cd { perror("no_app","cdparanoia") if not `which cdparanoia 2>/dev/null`; query_disc(); get_cddb_config(); my $total_tracks = get_total_tracks(); if ($rip eq "all") { if ($config{USE_CDDB} ne 1) { for(my $i=1;$i<=$total_tracks;$i++) { rip_cd($i, $i); } } elsif ($config{USE_CDDB} eq 1) { my $n = 1; foreach my $i (@cdtrack) { my $out_string = $nscheme; chomp($cdtrack[$n-1]); $out_string =~ s/%ar/$cd{artist}/; $out_string =~ s/%ti/$cdtrack[$n-1]/; $out_string =~ s/%tr/$n/; $out_string =~ s/%ab/$cd{title}/; $out_string =~ s/%yr/$cd{year}/; rip_cd($out_string, $n); ++$n; } } } else { my @tracks = split(/,/, $rip); foreach my $i (@tracks) { next if $i > $total_tracks or $i < 1; my $out_string = $nscheme; $out_string =~ s/%ar/$cd{artist}/; $out_string =~ s/%ti/$cdtrack[$i-1]/; $out_string =~ s/%tr/$i/; $out_string =~ s/%ab/$cd{title}/; $out_string =~ s/%yr/$cd{year}/; rip_cd($out_string, $i) if $config{USE_CDDB} == 1; rip_cd($i, $i) if $config{USE_CDDB} == 0; } } } # get/print cddb information from disc sub cdinfo { query_disc(); get_cddb_config(); say "$name - $version\n"; say "Artist = $cd{artist}"; say "Album = $cd{title}"; say "Genre = $cd{genre}"; say "Tracks = $cd{tno}"; say "Year = $cd{year}\n"; my $n = 1; foreach (@cdtrack) { say "Track $n: $_"; ++$n; } exit(0); } # version / license information sub version { say " $name - $version Copyright (C) 2005-2018 Philip Lyons This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. "; } # help & longhelp menu sub help_menu { say "\n$name - $version"; say " -t, --to $lang{to} -r, --recursive $lang{recursive} -p, --preserve $lang{preserve} -f, --formats $lang{formats} -o, --only $lang{only} -k, --keep $lang{keep} -j, --jobs $lang{jobs} -h, --help $lang{help} -l, --longhelp $lang{longhelp} -v, --verbose $lang{verbose} "; say "$lang{user_opts} --defopts $lang{defopts} --eopts $lang{eopts} --dopts $lang{dopts} --nopts $lang{nopts} --outfile $lang{outfile} --outdir $lang{outdir} --dryrun $lang{dryrun} --overwrite $lang{overwrited} --normalize $lang{normalize} --delete $lang{delete} --encoder $lang{encoder} --decoder $lang{decoder} --version $lang{version} $lang{enc_opts} --bitrate $lang{bitrate} --freq $lang{freq} --channels $lang{channels} --effect $lang{effect} --fcomp $lang{fcomp} --acomp $lang{acomp} --oggqual $lang{oggqual} --spxqual $lang{spxqual} --aacqual $lang{aacqual} --mpcqual $lang{mpcqual} --ofmode $lang{ofmode} --ofopt $lang{ofopt} --bratio $lang{bratio} --bquanl $lang{bquanl} --bpsize $lang{bpsize} $lang{tag_opts} --artist $lang{artist} --title $lang{title} --track $lang{track} --year $lang{year} --album $lang{album} --genre $lang{genre} --comment $lang{comment} --taginfo $lang{taginfo} $lang{tag_usage} $lang{rip_opts} --rip $lang{rip} --nocddb $lang{nocddb} --noinput $lang{noinput} --nscheme $lang{nscheme} --cdinfo $lang{cdinfo} --device $lang{device} $lang{rip_usage}" if $longhelp; say "\n$lang{usage}\n"; } sub load_module { my ($file) = @_; my $return; unless($return = do $file) { perror("opening_file","$file: $@ $!") if $@ or !defined($return) or not !$return; } } sub import_module { my ($format_ref) = @_; my $format_name=$format_ref->{NAME}; $run{$format_name} = $format_ref; } # load all user modules sub load_user_modules { my @imported_mods; opendir(DIR, "$mod_dir") or perror("opening_dir","$mod_dir: $!"); foreach (readdir(DIR)) { load_module("$mod_dir/$_") if $_ !~ /^\./; push(@imported_mods, $_) if $_ !~ /^\./; } closedir(DIR); say "$lang{imported} @imported_mods"; } # place files/directories in their respective arrays if (@ARGV) { foreach (@ARGV) { if (-f $_) { push(@file,$_); print "$lang{debug} adding $_ to \@file\n" if $debug == 1; } elsif (-d $_) { push(@dir, $_); print "$lang{debug} adding $_ to \@dir\n" if $debug == 1; } else { perror("no_infile","$_"); } } } load_user_modules() if $config{IMPORTM} == 1; if ($to and @ARGV and not $rip) { proc_input(); } elsif ($to and $rip) { proc_cd(); } elsif ($my_encoder and not $to) { show_encoders(); } elsif ($my_decoder and not $to) { show_decoders(); } elsif ($verinfo) { version(); } elsif ($longhelp) { help_menu(); } elsif ($formats) { show_formats(); } elsif ($cdinfo) { cdinfo(); } elsif ($taginfo and not $to) { show_taginfo(); } elsif ($title or $track or $artist or $album or $comment or $year or $genre) { write_user_tags(); } else { help_menu(); } __END__ =head1 NAME pacpl - Perl Audio Converter, a multi purpose converter/ripper/tagger =head1 SYNOPSIS pacpl --to [file(s)/directory(s)] =head1 DESCRIPTION Perl Audio Converter A Linux CLI tool for converting multiple audio types from one format to another. It supports the following audio formats: ======================================== 3G2, 3GP, 8SVX, AAC, AC3, ADTS, AIFF, AL, AMB, AMR, APE, AU, AVR, BONK, CAF, CDR, CVU, DAT, DTS, DVMS, F32, F64, FAP, FLA, FLAC, FSSD, GSRT, HCOM, IMA, IRCAM, LA, MAT, MAUD, MAT4, MAT5, M4A, MP2, MP3, MP4, MPC, MPP, NIST, OFF, OFR, OFS, OPUS, OGA, OGG, PAF, PRC, PVF, RA, RAM, RAW, RF64, SD2, SF, SHN, SMP, SND, SOU, SPX, SRN, TAK, TTA, TXW, VOC, VMS, VQF, W64, WAV, WMA, and WV. It can also extract audio from the following video extensions: ============================================================== RM, RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGM, OGV, QT, VCD, SVCD, M4V, NSV, NUV, PSP, SMK, VOB, FLV, WEBM and WMV. Parallel Processing, a CD ripping function with CDDB support, batch conversion, tag preservation for most supported formats, independent tag reading & writing, service menus for KDE Dolphin/Konqueror, GNOME Nautilus script, and action scripts for Nemo/Thunar are also provided. =head1 OPTIONS B<-t, --to> I set encode format for the input file(s) or directory(ies). you can see a complete list of supported encode formats by using the B<--formats> option. B<-r, --recursive> recursively scan and convert input folder(s) to destination format. B<-p, --preserve> when recursively converting a directory, preserve the input folders directory structure in the specified output directory. such as: pacpl --to ogg -r -p /home/mp3s --outdir /home/oggs in the example above, let's assume the directory structure was: =over 21 =item /home/mp3s/Alternative =item /home/mp3s/Alternative/New =item /home/mp3s/Rap =item /home/mp3s/Country =item /home/mp3s/Techno/ =back the output directory will now contain: =over 4 =item /home/oggs/Alternative =item /home/oggs/Alternative/New =item /home/oggs/Rap =item /home/oggs/Country =item /home/oggs/Techno =back with all files in each sub-folder converted to ogg. B<-o, --only> I only convert files matching extension. this option is useful when you have a directory or batch of files with mixed audio types and only need to convert one specific type. B<-k, --keep> do not re-encode files with extensions matching the destination extension. instead...copy them to the output folder, or skip to the next file. B<-j, --jobs> number of simultanious jobs to run at once. the default limit is set to 4 in pacpl.conf. You can modify this value on the fly using --jobs= or set it perminately in the configuration file =over 4 =item B<-f, --formats> show a list of supported encode/decode formats. =item B<-h, --help> show the short help menu. =item B<-l, --longhelp> display the complete list of options. =item B<--version> show version and licensing information. =back =head1 USER OPTIONS B<--defopts> I<1/0> to turn off default encoder options use --defopts 0. this option gives you more control when using the --eopts command. defopts is set to 1 by default. you can also toggle this option in /etc/pacpl/pacpl.conf. B<--eopts> I this option allows you to use encoder options not implemented by pacpl. an example would be: pacpl --to mp4 --eopts="-c 44100 -I 1,2" YourFile.mp3 B<--dopts> I this option allows you to use decoder options not implemented by pacpl. an example would be: pacpl --to mpc --dopts="--start 60" YourFile.ogg B<--outfile> I set the output file name to I. B<--outdir> I place all encoded files in I. B<--dryrun> show what would be done without actually converting anything. this is a good way to trouble shoot, or to see what would be done without actually touching your files. B<--overwrite> replace the output file if it already exists. B<--normalize> adjusts volume levels of audio files. B<--nopts> I this allows you to specify normalize options not implemented by pacpl B<--delete> remove source/input file after the conversion process has finished. B<--encoder> I specify an alternate encoder for the selected output file(s) you can see a list of supported encoders by using the following: pacpl --encoder I B<--decoder> I specify an alternate decoder for the selected input file(s) you can see a list of supported decoders by using the following: pacpl --decoder I B<-v, --verbose> show detailed information about the encoding process and what's actually being done. =head1 ENCODER OPTIONS B<--bitrate> I set the bitrate to I. default is 128. this option does not apply to all formats. B<--freq> I set the frequency to I. default is 44100. this option does not apply to all formats. B<--channels> I set the number of audio channels in the output file to I. this option does not apply to all formats. B<--effect> I see B(1). this option only applies to the following: AIFF, AU, SND, RAW, VOC, SMP, AVR, and CDR B<--fcomp> I set flac compression level to I. fastest -0, highest -8, default -2 =over 4 =item 1 = fast =item 2 = simple =item 3 = medium (default) =item 4 = high =item 5 = extra high, =back B<--acomp> I set ape compression level to I. =over 4 =item 1000 = fast =item 2000 = normal =item 3000 = high (default) =item 4000 = extra high =item 5000 = insane =back B<--oggqual> I set ogg quality level to I. -1, very low and 10 very high, default 3 B<--spxqual> I set speex quality level to I. 0-10, default 8 (use --bitrate when using ffmpeg/avconv as encoder) B<--aacqual> I set aac, mp4, m4a, or m4b quality level to I. default 300 B<--mpcqual> I set mpc/mpp quality level to I. =over 4 =item thumb low quality/internet, (typ. 58... 86 kbps) =item radio medium (MP3) quality, (typ. 112...152 kbps - default) =item standard high quality (dflt), (typ. 142...184 kbps) =item xtreme extreme high quality, (typ. 168...212 kbps) =back B<--ofmode> I set off/ofr/ofs compression mode to I. normal, extra, and extranew modes are recommended for general use. available options are: =over 4 =item fast =item normal (default) =item high =item extra =item best =item highnew =item extranew =item bestnew =back B<--ofopt> I set off/ofr/ofs optimization level to I. specify the optimization level in the engine. In order to achieve optimal compression at all sample types, sample rates, and audio content, the core compression engine has the possibility to find the optimal values for its parameters, at the cost of slightly increased compression time only. The default recommended value is fast. do not use normal (or even high or best) for this parameter unless encoding time does not matter and you want to obtain the smallest possible file for a given compression mode. The difference between the optimize levels fast and best (which is up to three times slower than fast) is very small, generally under 0.05%, but may be also larger in some rare cases. Note that the none optimize level is forced by the encoder to fast optimize level for the extra, best, highnew, extranew, and bestnew modes. available options are: =over 4 =item none =item fast (default) =item normal =item high =item best =back B<--bratio> I set bonk down sampling ratio. default 2 B<--bquanl> I set bonk quantanization level. default 1.0 B<--bpsize> I set bonk predictor size. default 128 =head1 TAGGING OPTIONS B tagging outside of the encoding process can only be performed on the following audio types: =over 4 =item MP3 =item OGG =item FLA =item FLAC =back B<--artist> I set artist information to I. B<--title> I set title information to I. B<--track> I set track information to I. B<--year> I set year/date information to I. B<--album> I set album information to I. B<--genre> I set genre information to I. B<--comment> I set comment information to I. B<--taginfo> I show tagging information for I. multiple files can be specified at once. =head1 RIPPING OPTIONS B<--rip> I rip selected tracks separated by comma or all from current disc. =over 4 =item pacpl --rip all --to flac =item pacpl --rip 1,3,9,15 --to flac =back B<--nocddb> disable cddb. use this option if you do not want tagging based on cddb. B<--noinput> disable cddb interactivity. this is enabled by default. B<--nscheme> I set naming scheme to I. default is %ar - %ti available options are: =over 4 =item %ar = artist =item %ti = song title =item %tr = track =item %yr = year =item %ab = album =back B --nscheme="(%tr)-%ti" B<--device> I set device to I. default is /dev/dvd B<--cdinfo> show cddb information for current disc. =head1 SEE ALSO =over 4 =item B(1) B(1) B(1) B(1) B(1) =item B(1) B(1) B(1) B(1) B(1) =item B(1) B(1) B(1) B(1) =item B(1) B(1) B(1) =item B(1) B(1) B(1) B(1) =item B(1) B(1) =back =head1 BUGS Report all bugs to Philip Lyons (vorzox@gmail.com) =head1 LICENSING This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . =head1 AUTHOR Copyright (C) 2005-2018 Philip Lyons (vorzox@gmail.com) pacpl-6.1.0/COPYING0000644000175000017500000010451313275724626011474 0ustar pipi GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . pacpl-6.1.0/missing0000755000175000017500000002415213275724626012040 0ustar pipi#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: pacpl-6.1.0/plugins/0000755000175000017500000000000013275724626012116 5ustar pipipacpl-6.1.0/plugins/gnome/0000755000175000017500000000000013275724626013223 5ustar pipipacpl-6.1.0/plugins/gnome/nemo/0000755000175000017500000000000013275724626014161 5ustar pipipacpl-6.1.0/plugins/gnome/nemo/PACPL-Convert0000755000175000017500000000534513275724626016373 0ustar pipi#!/usr/bin/perl # # Copywrite (C) Philip Lyons 2013-2018 (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use File::Spec::Functions qw(rel2abs); my $debug = 0; my $input = ''; my $name = "Perl Audio Converter"; my $formats = "FALSE 3G2 FALSE 3GP FALSE 8SVX FALSE AAC FALSE AC3 FALSE ADTS FALSE AIF FALSE AIFF FALSE AL FALSE AMB FALSE AMR FALSE APE FALSE AU FALSE AVR FALSE BONK FALSE CAF FALSE CDR FALSE CVU FALSE DAT FALSE DTS FALSE DVMS FALSE F32 FALSE F64 FALSE FAP FALSE FLA FALSE FLAC FALSE FSSD FALSE GSRT FALSE HCOM FALSE IMA FALSE IRCAM FALSE LA FALSE M4A FALSE MAT FALSE MAT4 FALSE MAT5 FALSE MAUD FALSE MMF FALSE MP2 FALSE MP3 FALSE MP3HD FALSE MP4 FALSE MPC FALSE MPP FALSE NIST FALSE OFF FALSE OFR FALSE OFS FALSE OGA FALSE OGG FALSE OPUS FALSE PAF FALSE PRC FALSE PVF FALSE RA FALSE RAW FALSE RF64 FALSE RM FALSE SD2 FALSE SF FALSE SHN FALSE SMP FALSE SND FALSE SOU FALSE SPX FALSE TTA FALSE TXW FALSE VMS FALSE VOC FALSE W64 FALSE WAV FALSE WMA FALSE WV"; # main sub sub process_files { # sort through input files and discard those with unsupported formats (excluding directories) foreach (@ARGV) { chomp($_); $_ = rel2abs($_); my $input_ext = `echo \"$_\" | awk -F"." '{print \$NF}'`; print "\"$_\" has the ext $input_ext\n" if $debug == 1; if (-f $_ and not `pacpl --formats | grep $input_ext`) { print "$_ has unrecognized extension, skipping...\n" if $debug == 1; `notify-send \"$name\" \"Unable to convert $_ (unsupported format)\"`; next; } else { $input = "$input \"$_\""; } } # invoke pacpl and start conversion process if ($input) { my $out_format = `zenity --title \"$name\" --width 250 --height 300 --list --radiolist --column 'Select' --column 'Output Format' $formats`; chomp($out_format); print "pacpl --to $out_format $input --gui --gnome\n" if $debug == 1; system("pacpl --to $out_format $input --gui --gnome"); } } # start main process_files(); pacpl-6.1.0/plugins/gnome/nemo/pacpl.nemo_action0000644000175000017500000000057613275724626017505 0ustar pipi[Nemo Action] Name=Perl Audio Converter Comment=Perl Audio Converter Exec=/usr/share/nemo/actions/PACPL-Convert %F Icon-Name=pacpl Selection=Any Extensions=dir;3G2;3GP;AAC;AC3;ADTS;AIF;AIFF;AMR;APE;AU;AVR;BONK;CAF;CDR;DTS;FAP;FLA;FLAC;IRCAM;LA;M4A;MAT;MAT4;MAT5;MMF;MP2;MP3;MP3HD;MP4;MPC;MPP;NIST;OFF;OFR;OFS;OGG;OPUS;PAF;PVF;RA;RAW;RM;SD2;SF;SHN;SMP;SND;SPX;TTA;VOC;W64;WAV;WMA;WV pacpl-6.1.0/plugins/gnome/nemo/pacpl.png0000644000175000017500000001243613275724626015774 0ustar pipiPNG  IHDR00WIDATxZ{tյ9'C^$$  X"iŢV]PRo*ڋ꽮Zv-v)!U(! $@H&: [ΚYə!C(dp M^n݌MSJ'BŽBN+rڶ_W>YfMGII`MMܚ !8! |^w܉֥/@ pEyyH$@ P(`0G6А8~wl]bF!BA)\\!@޽{nݺvttFg̘bD"0 I À(DQhJ4L裏|>oܹ=so <0sPJi*⭭;۝VϚ5 DSJiTUU( ( @Q0i 1R)عs'_{?sw <RN+W^ooKjkkQQQ!(RJM!1UU*Ebt]렔 EQD2---hnnSL_|r! (xٶ]wucǎ窫L2  4M Mc >󞪪 u] J)CG<ϣ &8Bh*կ޼}&O<֥*s*2 2 !,N{7x▖gBmJ8l-BUUR:|>B^, cp]ę3g H(b8~ӟff ?NAu]-Ruw+&OǡHmC4\sqQlٲ#J19(*b18aH| {u֭XhTU?p?Al۶mϗUTVVz`0|>x<}{?>lRjjj0sLyxu%{[۶QSSX,L&qDZ|r444`ppBB!ZSS㕗߼lٲ|A)mo@!죏>w0.4ig@ l6p8UVK_٬<pR ,c !\b6c0sLCuA8ݻw/NR\Q&9x۷o[aD&!+WDmm-2 ƇQ&q 9c a@UU?y3 r9u}H(y˗㢋.pQrIǵW_}޶6S!87@x/~x"પq7ccc^u] qx%,8J)TUEOO8Ey q!p5`ttPUZMlZfՌ1^4g RqymT\\Md022ӧcɒ%r/H$QRGAUU^ErH&(..ƪU8# Ç|7A>m(..^I1'L 4M#Li+ rYA4Myq8l6{!%1L&9ڰo>[OLìYdP(Dwƍ1NB@!\b1A|8s N>S#c BTUU! ²,?q<Q{СC @UUf~$1L8QFuݹU<ضm쒒B!!gCGG,FFFև(  $C:طo?:(~l+XC]q-h1p,9}T*uNٴiPWWvڵ ,ۜsr9`um-ke,CEQ`vmD`jD&ĵlRċiW4 e!#̙3>5˿A~^PJIBRYvA 9rc!^qL%rΑd~r- <$F(>BB%# jBqbEQDkq/RO? `ܹaYl׮]2dI>*" Q#\E((>K Ѩ/.Dj&BߏH$˲`L8ccc(N:Շd`&<σii``D4C L\ŤI؈T*|!BH&0 \N6p]i5$cŊ~Ht: EQ`oe !HUUJKK?-P?mhoo Fq% ,!|8 @:(gQj(ػw/ad6mM  # J)K&ޏ~K/KKKK( FFFpq_}՘={]} !`۶5uݍAB)E0_{@94ݍ'Nz  cBӦMPey?(uwy'088P(T*UU*k?9Ji1u]XjJy0}]}:EA6+AJYtR<b8z( @ 9 )R Bix7q!躎2166&,MRTUU'R(nO#ɠ/F:F:?rmg1u]}˲|j*ݻ`R)>| .|!8?#2n&q߷ySNٳgK{/T*B8D` !k~c&N8+WOXp!"ɲ웷vۦ *hg|ZX<,^x٤I>3nMAQ^^.L"qL&Bd2SORQYY)DEE())DB2QTT$EII,4Me˖;ӛ1cz]wEƟn[,{MMMJ,"v:c(**Bmm-,X'Ob۶mB4KҩK]3o<{PUK.EuucvjM6lhe/8\%ݻwg3fXw}q~Qyftuu!HRqA?-%dC1)cԩhjjcmiiQZ[[W^ 6l,i%gH/}Xv]lݺu !܌>(++?fy9"͂sH$磱Q;v{V^/6l{Z~}q(߽L M zmmmXv===VSSs%KH}}=b/~H&]QB" )>44ߏ'M}O% 8Csx^9bn[lhiyy?Ϩ@MM 9-G__zzzi+VؿtRYs<3\.,Kp)(qΕ3˲F9::Z `( x<W% ^\>LӃ9?iZ:<7oW U~;z+ 0n܌&@ Bؘ BK(.sMιQ, )LA!Zp(s"8hٿo"KxEssq^'RZ+pΙ^8*FQ}!B^0 !\!Dp(yjgR9<Cᎌ8?O8=?J)˲ˉeY ߈qaXނ=UU]qopUUc _~g~gIENDB`pacpl-6.1.0/plugins/gnome/nemo/install.sh0000755000175000017500000000034513275724626016170 0ustar pipi#!/usr/bin/bash echo echo "Installing Nemo Action Script......" echo sleep 2 cp -v PACPL-Convert /usr/share/nemo/actions cp -v pacpl.nemo_action /usr/share/nemo/actions cp -v pacpl.png /usr/share/icons echo sleep 2 echo "Done.."pacpl-6.1.0/plugins/gnome/nautilus/0000755000175000017500000000000013275724626015067 5ustar pipipacpl-6.1.0/plugins/gnome/nautilus/PACPL-Convert0000755000175000017500000000534513275724626017301 0ustar pipi#!/usr/bin/perl # # Copywrite (C) Philip Lyons 2013-2018 (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use File::Spec::Functions qw(rel2abs); my $debug = 0; my $input = ''; my $name = "Perl Audio Converter"; my $formats = "FALSE 3G2 FALSE 3GP FALSE 8SVX FALSE AAC FALSE AC3 FALSE ADTS FALSE AIF FALSE AIFF FALSE AL FALSE AMB FALSE AMR FALSE APE FALSE AU FALSE AVR FALSE BONK FALSE CAF FALSE CDR FALSE CVU FALSE DAT FALSE DTS FALSE DVMS FALSE F32 FALSE F64 FALSE FAP FALSE FLA FALSE FLAC FALSE FSSD FALSE GSRT FALSE HCOM FALSE IMA FALSE IRCAM FALSE LA FALSE M4A FALSE MAT FALSE MAT4 FALSE MAT5 FALSE MAUD FALSE MMF FALSE MP2 FALSE MP3 FALSE MP3HD FALSE MP4 FALSE MPC FALSE MPP FALSE NIST FALSE OFF FALSE OFR FALSE OFS FALSE OGA FALSE OGG FALSE OPUS FALSE PAF FALSE PRC FALSE PVF FALSE RA FALSE RAW FALSE RF64 FALSE RM FALSE SD2 FALSE SF FALSE SHN FALSE SMP FALSE SND FALSE SOU FALSE SPX FALSE TTA FALSE TXW FALSE VMS FALSE VOC FALSE W64 FALSE WAV FALSE WMA FALSE WV"; # main sub sub process_files { # sort through input files and discard those with unsupported formats (excluding directories) foreach (@ARGV) { chomp($_); $_ = rel2abs($_); my $input_ext = `echo \"$_\" | awk -F"." '{print \$NF}'`; print "\"$_\" has the ext $input_ext\n" if $debug == 1; if (-f $_ and not `pacpl --formats | grep $input_ext`) { print "$_ has unrecognized extension, skipping...\n" if $debug == 1; `notify-send \"$name\" \"Unable to convert $_ (unsupported format)\"`; next; } else { $input = "$input \"$_\""; } } # invoke pacpl and start conversion process if ($input) { my $out_format = `zenity --title \"$name\" --width 250 --height 300 --list --radiolist --column 'Select' --column 'Output Format' $formats`; chomp($out_format); print "pacpl --to $out_format $input --gui --gnome\n" if $debug == 1; system("pacpl --to $out_format $input --gui --gnome"); } } # start main process_files(); pacpl-6.1.0/plugins/gnome/nautilus/install.sh0000755000175000017500000000023413275724626017073 0ustar pipi#!/usr/bin/bash echo echo "Installing Nautilus Action Script......" echo cp -v PACPL-Convert $HOME/.local/share/nautilus/scripts echo sleep 1 echo "Done.."pacpl-6.1.0/plugins/gnome/thunar/0000755000175000017500000000000013275724626014524 5ustar pipipacpl-6.1.0/plugins/gnome/thunar/install-kde.sh0000755000175000017500000000106713275724626017276 0ustar pipi#!/bin/bash # # Thunar Perl Audio Converter Context Menu Script CONFIG=${HOME}/.config/Thunar/uca.xml cp -v PACPL-Konvert /usr/bin/ # Insert lines at end of Thunars $CONFIG sed -i 's/<\/actions>//' $CONFIG sed -i '/^$/d' $CONFIG echo " /etc/pacpl/pacpl.png Perl Audio Converter /usr/bin/PACPL-Konvert %F Linux Audio Converter / Tagger/ Ripper * " >> $CONFIG sed -i '/^$/d' $CONFIG pacpl-6.1.0/plugins/gnome/thunar/PACPL-Convert0000755000175000017500000000534513275724626016736 0ustar pipi#!/usr/bin/perl # # Copywrite (C) Philip Lyons 2013-2018 (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use File::Spec::Functions qw(rel2abs); my $debug = 0; my $input = ''; my $name = "Perl Audio Converter"; my $formats = "FALSE 3G2 FALSE 3GP FALSE 8SVX FALSE AAC FALSE AC3 FALSE ADTS FALSE AIF FALSE AIFF FALSE AL FALSE AMB FALSE AMR FALSE APE FALSE AU FALSE AVR FALSE BONK FALSE CAF FALSE CDR FALSE CVU FALSE DAT FALSE DTS FALSE DVMS FALSE F32 FALSE F64 FALSE FAP FALSE FLA FALSE FLAC FALSE FSSD FALSE GSRT FALSE HCOM FALSE IMA FALSE IRCAM FALSE LA FALSE M4A FALSE MAT FALSE MAT4 FALSE MAT5 FALSE MAUD FALSE MMF FALSE MP2 FALSE MP3 FALSE MP3HD FALSE MP4 FALSE MPC FALSE MPP FALSE NIST FALSE OFF FALSE OFR FALSE OFS FALSE OGA FALSE OGG FALSE OPUS FALSE PAF FALSE PRC FALSE PVF FALSE RA FALSE RAW FALSE RF64 FALSE RM FALSE SD2 FALSE SF FALSE SHN FALSE SMP FALSE SND FALSE SOU FALSE SPX FALSE TTA FALSE TXW FALSE VMS FALSE VOC FALSE W64 FALSE WAV FALSE WMA FALSE WV"; # main sub sub process_files { # sort through input files and discard those with unsupported formats (excluding directories) foreach (@ARGV) { chomp($_); $_ = rel2abs($_); my $input_ext = `echo \"$_\" | awk -F"." '{print \$NF}'`; print "\"$_\" has the ext $input_ext\n" if $debug == 1; if (-f $_ and not `pacpl --formats | grep $input_ext`) { print "$_ has unrecognized extension, skipping...\n" if $debug == 1; `notify-send \"$name\" \"Unable to convert $_ (unsupported format)\"`; next; } else { $input = "$input \"$_\""; } } # invoke pacpl and start conversion process if ($input) { my $out_format = `zenity --title \"$name\" --width 250 --height 300 --list --radiolist --column 'Select' --column 'Output Format' $formats`; chomp($out_format); print "pacpl --to $out_format $input --gui --gnome\n" if $debug == 1; system("pacpl --to $out_format $input --gui --gnome"); } } # start main process_files(); pacpl-6.1.0/plugins/gnome/thunar/install-gnome.sh0000755000175000017500000000106713275724626017640 0ustar pipi#!/bin/bash # # Thunar Perl Audio Converter Context Menu Script CONFIG=${HOME}/.config/Thunar/uca.xml cp -v PACPL-Convert /usr/bin/ # Insert lines at end of Thunars $CONFIG sed -i 's/<\/actions>//' $CONFIG sed -i '/^$/d' $CONFIG echo " /etc/pacpl/pacpl.png Perl Audio Converter /usr/bin/PACPL-Convert %F Linux Audio Converter / Tagger/ Ripper * " >> $CONFIG sed -i '/^$/d' $CONFIG pacpl-6.1.0/plugins/gnome/thunar/pacpl.png0000644000175000017500000001243613275724626016337 0ustar pipiPNG  IHDR00WIDATxZ{tյ9'C^$$  X"iŢV]PRo*ڋ꽮Zv-v)!U(! $@H&: [ΚYə!C(dp M^n݌MSJ'BŽBN+rڶ_W>YfMGII`MMܚ !8! |^w܉֥/@ pEyyH$@ P(`0G6А8~wl]bF!BA)\\!@޽{nݺvttFg̘bD"0 I À(DQhJ4L裏|>oܹ=so <0sPJi*⭭;۝VϚ5 DSJiTUU( ( @Q0i 1R)عs'_{?sw <RN+W^ooKjkkQQQ!(RJM!1UU*Ebt]렔 EQD2---hnnSL_|r! (xٶ]wucǎ窫L2  4M Mc >󞪪 u] J)CG<ϣ &8Bh*կ޼}&O<֥*s*2 2 !,N{7x▖gBmJ8l-BUUR:|>B^, cp]ę3g H(b8~ӟff ?NAu]-Ruw+&OǡHmC4\sqQlٲ#J19(*b18aH| {u֭XhTU?p?Al۶mϗUTVVz`0|>x<}{?>lRjjj0sLyxu%{[۶QSSX,L&qDZ|r444`ppBB!ZSS㕗߼lٲ|A)mo@!죏>w0.4ig@ l6p8UVK_٬<pR ,c !\b6c0sLCuA8ݻw/NR\Q&9x۷o[aD&!+WDmm-2 ƇQ&q 9c a@UU?y3 r9u}H(y˗㢋.pQrIǵW_}޶6S!87@x/~x"પq7ccc^u] qx%,8J)TUEOO8Ey q!p5`ttPUZMlZfՌ1^4g RqymT\\Md022ӧcɒ%r/H$QRGAUU^ErH&(..ƪU8# Ç|7A>m(..^I1'L 4M#Li+ rYA4Myq8l6{!%1L&9ڰo>[OLìYdP(Dwƍ1NB@!\b1A|8s N>S#c BTUU! ²,?q<Q{СC @UUf~$1L8QFuݹU<ضm쒒B!!gCGG,FFFև(  $C:طo?:(~l+XC]q-h1p,9}T*uNٴiPWWvڵ ,ۜsr9`um-ke,CEQ`vmD`jD&ĵlRċiW4 e!#̙3>5˿A~^PJIBRYvA 9rc!^qL%rΑd~r- <$F(>BB%# jBqbEQDkq/RO? `ܹaYl׮]2dI>*" Q#\E((>K Ѩ/.Dj&BߏH$˲`L8ccc(N:Շd`&<σii``D4C L\ŤI؈T*|!BH&0 \N6p]i5$cŊ~Ht: EQ`oe !HUUJKK?-P?mhoo Fq% ,!|8 @:(gQj(ػw/ad6mM  # J)K&ޏ~K/KKKK( FFFpq_}՘={]} !`۶5uݍAB)E0_{@94ݍ'Nz  cBӦMPey?(uwy'088P(T*UU*k?9Ji1u]XjJy0}]}:EA6+AJYtR<b8z( @ 9 )R Bix7q!躎2166&,MRTUU'R(nO#ɠ/F:F:?rmg1u]}˲|j*ݻ`R)>| .|!8?#2n&q߷ySNٳgK{/T*B8D` !k~c&N8+WOXp!"ɲ웷vۦ *hg|ZX<,^x٤I>3nMAQ^^.L"qL&Bd2SORQYY)DEE())DB2QTT$EII,4Me˖;ӛ1cz]wEƟn[,{MMMJ,"v:c(**Bmm-,X'Ob۶mB4KҩK]3o<{PUK.EuucvjM6lhe/8\%ݻwg3fXw}q~Qyftuu!HRqA?-%dC1)cԩhjjcmiiQZ[[W^ 6l,i%gH/}Xv]lݺu !܌>(++?fy9"͂sH$磱Q;v{V^/6l{Z~}q(߽L M zmmmXv===VSSs%KH}}=b/~H&]QB" )>44ߏ'M}O% 8Csx^9bn[lhiyy?Ϩ@MM 9-G__zzzi+VؿtRYs<3\.,Kp)(qΕ3˲F9::Z `( x<W% ^\>LӃ9?iZ:<7oW U~;z+ 0n܌&@ Bؘ BK(.sMιQ, )LA!Zp(s"8hٿo"KxEssq^'RZ+pΙ^8*FQ}!B^0 !\!Dp(yjgR9<Cᎌ8?O8=?J)˲ˉeY ߈qaXނ=UU]qopUUc _~g~gIENDB`pacpl-6.1.0/plugins/gnome/thunar/PACPL-Konvert0000755000175000017500000000465213275724626016746 0ustar pipi#!/usr/bin/perl # # Copywrite (C) Philip Lyons 2013-2018 (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use File::Spec::Functions qw(rel2abs); my $debug = 0; my $input = ''; my $name = "Perl Audio Converter"; my $formats = "3G2 3GP 8SVX AAC AC3 ADTS AIF AIFF AL AMB AMR APE AU AVR BONK CAF CDR CVU DAT DTS DVMS F32 F64 FAP FLA FLAC FSSD GSRT HCOM IMA IRCAM LA M4A MAT MAT4 MAT5 MAUD MMF MP2 MP3 MP3HD MP4 MPC MPP NIST OFF OFR OFS OGA OGG OPUS PAF PRC PVF RA RAW RF64 RM SD2 SF SHN SMP SND SOU SPX TTA TXW VMS VOC W64 WAV WMA WV"; # main sub sub process_files { system("kdialog --title 'Ooops...' --error 'Perl Audio Converter Not Installed. Exiting...'") if not `which pacpl`; exit 1 if not `which pacpl`; # sort through input files and discard those with unsupported formats (excluding directories) foreach (@ARGV) { chomp($_); $_ = rel2abs($_); my $input_ext = `echo \"$_\" | awk -F"." '{print \$NF}'`; print "$_ has the ext $input_ext\n" if $debug == 1; if (-f $_ and not `pacpl --formats | grep $input_ext`) { print "$_ has unrecognized extension, skipping...\n" if $debug == 1; system("kdialog --passivepopup '$name' Unable to convert '$_' (unsupported format)"); next; } else { $input = "$input \"$_\""; } } # invoke pacpl and start conversion process if ($input) { my $out_format = `kdialog --title \"$name\" --combobox 'Output Format' $formats`; chomp($out_format); print "pacpl --to $out_format $input --gui --kde\n" if $debug == 1; system("pacpl --to $out_format $input --gui --kde"); } } # start main process_files(); pacpl-6.1.0/plugins/gnome/thunar/INSTALL0000644000175000017500000000122413275724626015554 0ustar pipiYou will have to install the plugin manually using the following: 1) sudo ./install-gnome.sh This will modify ${HOME}/.config/Thunar/uca.xml and copy the supporting application/icon to their respective locations. 2) You will also need to edit /etc/pacpl/pacpl.conf and change ZEN_DIR & ZEN_OPTS to 1 and make sure KDE_DIR & KDE_OPTS = 0 Note: this version can be used with the kde plugin on any system that supports multiple desktop choices (Slackware for example) if need be. You will just need to run the install-kde.sh script instead and do the exact opposite of the step 2) above. Restart Thunar (if already open) to see the changes take effect. pacpl-6.1.0/plugins/kde/0000755000175000017500000000000013275724626012661 5ustar pipipacpl-6.1.0/plugins/kde/pacpl.desktop0000644000175000017500000000052713275724626015357 0ustar pipi[Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=audio/*;video/*;application/x-flash-video;inode/directory Icon=/etc/pacpl/icon.png Actions=PACPL-Convert X-KDE-StartupNotify=false X-KDE-Priority=TopLevel [Desktop Action PACPL-Convert] Name=Perl Audio Converter Icon=/etc/pacpl/pacpl.png Exec=/usr/bin/PACPL-Konvert %F pacpl-6.1.0/plugins/kde/install.sh0000755000175000017500000000027313275724626014670 0ustar pipi#!/usr/bin/bash echo echo "Installing KDE Konqueror/Dolphin Action Script......" echo cp -v PACPL-Konvert /usr/bin cp -v pacpl.desktop /usr/share/kde4/services echo sleep 1 echo "Done.."pacpl-6.1.0/plugins/kde/PACPL-Konvert0000755000175000017500000000465213275724626015103 0ustar pipi#!/usr/bin/perl # # Copywrite (C) Philip Lyons 2013-2018 (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . use strict; use warnings; use File::Spec::Functions qw(rel2abs); my $debug = 0; my $input = ''; my $name = "Perl Audio Converter"; my $formats = "3G2 3GP 8SVX AAC AC3 ADTS AIF AIFF AL AMB AMR APE AU AVR BONK CAF CDR CVU DAT DTS DVMS F32 F64 FAP FLA FLAC FSSD GSRT HCOM IMA IRCAM LA M4A MAT MAT4 MAT5 MAUD MMF MP2 MP3 MP3HD MP4 MPC MPP NIST OFF OFR OFS OGA OGG OPUS PAF PRC PVF RA RAW RF64 RM SD2 SF SHN SMP SND SOU SPX TTA TXW VMS VOC W64 WAV WMA WV"; # main sub sub process_files { system("kdialog --title 'Ooops...' --error 'Perl Audio Converter Not Installed. Exiting...'") if not `which pacpl`; exit 1 if not `which pacpl`; # sort through input files and discard those with unsupported formats (excluding directories) foreach (@ARGV) { chomp($_); $_ = rel2abs($_); my $input_ext = `echo \"$_\" | awk -F"." '{print \$NF}'`; print "$_ has the ext $input_ext\n" if $debug == 1; if (-f $_ and not `pacpl --formats | grep $input_ext`) { print "$_ has unrecognized extension, skipping...\n" if $debug == 1; system("kdialog --passivepopup '$name' Unable to convert '$_' (unsupported format)"); next; } else { $input = "$input \"$_\""; } } # invoke pacpl and start conversion process if ($input) { my $out_format = `kdialog --title \"$name\" --combobox 'Output Format' $formats`; chomp($out_format); print "pacpl --to $out_format $input --gui --kde\n" if $debug == 1; system("pacpl --to $out_format $input --gui --kde"); } } # start main process_files(); pacpl-6.1.0/aclocal.m40000644000175000017500000006730113275724626012304 0ustar pipi# generated automatically by aclocal 1.16.1 -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2018 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR pacpl-6.1.0/patches/0000755000175000017500000000000013275724626012064 5ustar pipipacpl-6.1.0/patches/0002-Fix-hardwired-installation-paths-in-pacpl.patch0000644000175000017500000120434013275724626023502 0ustar pipiFrom c497331621c0a6c128169945f67b552e81ab539f Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 22 Jan 2018 13:21:55 +0000 Subject: [PATCH 2/2] Fix hardwired installation paths in pacpl --- Makefile.am | 10 + configure | 16 +- configure.ac | 2 +- pacpl | 4034 ---------------------------------------------------------- pacpl.in | 4034 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 4059 insertions(+), 4037 deletions(-) delete mode 100755 pacpl create mode 100755 pacpl.in diff --git a/Makefile.am b/Makefile.am index d3506f1..ee5503b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -74,8 +74,18 @@ DOC_DIR = $(DESTDIR)$(docdir) MAN_DIR = $(DESTDIR)$(mandir)/man1 EXTRA_DIR = $(CONF_DIR)/extra +edit = sed \ + -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ + -e 's|@sysconfdir[@]|$(sysconfdir)|g' + all : pacpl.1.gz +pacpl: pacpl.in Makefile + rm -f $@ $@.tmp + $(edit) '$@.in' >$@.tmp + mv $@.tmp $@ + chmod +x $@ + pacpl.1.gz : pacpl $(POD2MAN) $< | $(GZIP) -9 > $@ touch $@ diff --git a/configure b/configure index 49a871d..0423607 100755 --- a/configure +++ b/configure @@ -582,7 +582,7 @@ PACKAGE_BUGREPORT='' PACKAGE_URL='' ac_default_prefix=/usr -ac_unique_file="pacpl" +ac_unique_file="pacpl.in" ac_subst_vars='LTLIBOBJS LIBOBJS DESTDIR @@ -687,6 +687,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -758,6 +759,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1010,6 +1012,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1147,7 +1158,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1300,6 +1311,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] diff --git a/configure.ac b/configure.ac index 281f31f..887f580 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ AC_SUBST(KDEDIR) AC_PREFIX_DEFAULT(/usr) AC_PREFIX_PROGRAM(pacpl) -AC_CONFIG_SRCDIR(pacpl) +AC_CONFIG_SRCDIR(pacpl.in) AC_PROG_INSTALL diff --git a/pacpl b/pacpl deleted file mode 100755 index 2ad3b74..0000000 --- a/pacpl +++ /dev/null @@ -1,4034 +0,0 @@ -#!/usr/bin/perl -# -# Perl Audio Converter -# -# Copyright (C) 2005-2017 Philip Lyons (vorzox@gmail.com) -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -use strict; -use warnings; -use Getopt::Long; -use File::Basename; -use File::Find; -use File::Spec::Functions qw(rel2abs); -use Parallel::ForkManager; - -use feature qw(switch say); - -no if $] >= 5.018, warnings => "experimental::smartmatch"; - -# Tagging modules -use MP3::Tag; -use Audio::FLAC::Header; -use Audio::Scan; - -# CDDB module -use CDDB_get qw(get_cddb); - -# non-encoder/decoder related options -my -( - $to, - $recursive, - $preserve, - $rip, - $help, - $longhelp, - $verbose, - $verinfo, - $dryrun, - $delete, - $keep, - $overwrite, - $formats, - $topdir, - $only, - $first_run, - - @file, - @dir, - - %run, - %lang, -); - -my $silent = "> /dev/null 2>&1"; - -# tagging options -my -( - $title, - $track, - $artist, - $album, - $comment, - $year, - $genre, - $taginfo, -); - -# name, version & icon information -my $name = "Perl Audio Converter"; -my $version = "5.1.0"; -my $icon_path = "/etc/pacpl/pacpl.png"; - -# If these options are toggled, messages/errors will be displayed -# via kdialog or zenity/notify-send (depending on environment) -my ($gui, $kde, $gnome); - -# Debugging (for developer use only) -my $debug = 0; - -# default configuration. -my %config = ( - - IMPORTM => 0, - JOBS => 4, - - DEFOPTS => 1, - EOPTS => '', - DOPTS => '', - NOPTS => '', - - BITRATE => 128, - FREQ => 44100, - CHANNELS => 2, - EFFECT => '', - FCOMP => 2, - PCOMP => 3, - ACOMP => 3000, - OGGQUAL => 3, - SPXQUAL => 8, - AACQUAL => 100, - MPCQUAL => 'radio', - OFMODE => 'normal', - OFOPT => 'fast', - BRATIO => 2, - BQUANL => 1.0, - BPSIZE => 128, - - USE_CDDB => 1, - CDDB_HOST => 'freedb.freedb.org', - CDDB_PORT => 8880, - CDDB_MODE => 'cddb', - CDDB_INPUT => 1, - DEVICE => '/dev/dvd', - NSCHEME => '%ar - %ti', - - ZEN_DIR => 1, - ZEN_OPTS => 1, - KDE_DIR => 1, - KDE_OPTS => 1, - - ); - -# location of configuration file -my $conf_path = "/etc/pacpl"; -my $po_dir = "/usr/share/pacpl/locale"; -my $mod_dir = "$conf_path/modules"; - -my $conf_file; - -# load the appropriate locale file -load_lang(); - -# try to load configuration file in this order... -my @conf_locations = ( - "$ENV{HOME}/.pacplrc", # Local - "$conf_path/pacpl.conf", # Global - "$ENV{PWD}/pacpl.conf", # Current Directory - ); - -# try to load conf file from one of the above locations -foreach my $i (@conf_locations) { - if (not $conf_file and -e $i) { - $conf_file = $i; - say "$lang{debug} $lang{loaded_config} $conf_file" if $debug == 1; - } -} - -say "$lang{no_config}" if not $conf_file; - -# open config file. -if ($conf_file and -e $conf_file) { - - open(CONF, "$conf_file") or die "$lang{opening_file} $conf_file - $!\n"; - - my @conf_opts = ; - @conf_opts = grep(!/^#|^$/, @conf_opts); - - close(CONF); - - # now read config file options and change default values accordingly. - foreach (@conf_opts) { - chomp; - my ($k, $v) = split(/\s*=\s*/); - $config{$k} = $v if exists($config{$k}) and $v; - say "$lang{debug} $k = $v" if $debug == 1 and exists($config{$k}); - } -} - -my $codecs_conf = "$conf_path/codecs.conf"; - -# set default encoders/decoders -sub load_codecs { - - open(CODECS, "$codecs_conf") or die "$lang{opening_file} $codecs_conf - $!\n"; - - my @codecs = ; - @codecs = grep(!/^$|^#/, @codecs); - @codecs = grep(s/^\s*|\s*$//, @codecs); - - close(CODECS); - - foreach (@codecs) { - - chomp; - my ($k, $v) = split(/\s*=\s*/); - my ($e, $d) = split(/,/, $v); - - $k =~ tr/A-Z/a-z/; - - $run{$k}{DEFAULT_ENCODER} = $e if (exists($run{$k}{DEFAULT_ENCODER})); - $run{$k}{DEFAULT_DECODER} = $d if (exists($run{$k}{DEFAULT_DECODER})); - } -} - -# load po file and store in %lang hash -sub load_lang { - - my $po = "$po_dir/$ENV{LANG}.po"; - $po =~ s/\.UTF-8//i if $po =~ /UTF-8/i; - $po =~ s/\.utf8//i if $po =~ /utf8/i; - $po =~ s/_\w+// if not -e $po; - $po = "$po_dir/en_US.po" if not -e $po; - - open(LANG, "< $po") or die "error: could not open - $po\n$!\n"; - - my @data = ; - @data = grep(!/^#|^$/, @data); - - close(LANG); - - foreach (@data) { - chomp; - s/=/__EQ__/; - my ($k, $v) = split(/\s*__EQ__\s*/, $_); - $lang{$k} = $v; - } - -} - -my $banner = 1; - -# print error messages -sub perror { - my ($key, $msg) = @_; - say "$name - $version\n"; - say "$lang{error}: $lang{$key} $msg" . "\n"; - system("kdialog --title \"$name\" --error \"$lang{error}: $lang{$key} $msg\" &") if $gui and $kde; - system("zenity --title \"$name\" --error \"$lang{error}: $lang{$key} $msg\" &") if $gui and $gnome; - die "$lang{seek_help}\n"; -} - -# print notices/warnings -sub pnotice { - - my ($key, $msg, $nm) = @_; - - say "$name - $version\n" if $banner == 1; - print "$lang{$key} $msg"; - say '' if $nm == 1; - say "\n" if $nm == 2; - - $banner = 0; -} - -# defaults for user variables. -my $outfile; -my $outdir; -my $defopts = $config{DEFOPTS}; -my $eopts = $config{EOPTS}; -my $dopts = $config{DOPTS}; -my $nopts = $config{NOPTS}; -my $normalize = $config{NOPTS}; -my $bitrate = $config{BITRATE}; -my $freq = $config{FREQ}; -my $channels = $config{CHANNELS}; -my $effect = $config{EFFECT}; -my $fcomp = $config{FCOMP}; -my $acomp = $config{ACOMP}; -my $oggqual = $config{OGGQUAL}; -my $spxqual = $config{SPXQUAL}; -my $aacqual = $config{AACQUAL}; -my $mpcqual = $config{MPCQUAL}; -my $ofmode = $config{OFMODE}; -my $ofopt = $config{OFOPT}; -my $bratio = $config{BRATIO}; -my $bquanl = $config{BQUANL}; -my $bpsize = $config{BPSIZE}; - -my $cdinfo; -my $nocddb; -my $noinput; -my $device = $config{DEVICE}; -my $nscheme = $config{NSCHEME}; -my $my_encoder; -my $my_decoder; -my $encoder; -my $decoder; - -my $jobs = $config{JOBS}; - -# command line options -GetOptions -( - 't|to=s' => \$to, - 'r|recursive' => \$recursive, - 'p|preserve' => \$preserve, - 'h|help' => \$help, - 'l|longhelp' => \$longhelp, - 'v|verbose' => \$verbose, - 'f|formats' => \$formats, - 'o|only=s' => \$only, - 'k|keep' => \$keep, - 'j|jobs=n' => \$jobs, - - 'taginfo' => \$taginfo, - - 'version' => \$verinfo, - 'dryrun' => \$dryrun, - 'delete' => \$delete, - 'overwrite' => \$overwrite, - 'normalize' => \$normalize, - 'encoder=s' => \$my_encoder, - 'decoder=s' => \$my_decoder, - - 'title=s' => \$title, - 'track=n' => \$track, - 'artist=s' => \$artist, - 'album=s' => \$album, - 'comment=s' => \$comment, - 'year=n' => \$year, - 'genre=s' => \$genre, - - 'gui' => \$gui, - 'kde' => \$kde, - 'gnome' => \$gnome, - - 'eopts=s' => \$eopts, - 'dopts=s' => \$dopts, - 'defopts=n' => \$defopts, - 'nopts=s' => \$nopts, - 'outfile=s' => \$outfile, - 'outdir=s' => \$outdir, - - 'bitrate=n' => \$bitrate, - 'freq=n' => \$freq, - 'channels=n' => \$channels, - 'effect=s' => \$effect, - 'fcomp=n' => \$fcomp, - 'acomp=n' => \$acomp, - 'oggqual=n' => \$oggqual, - 'spxqual=n' => \$spxqual, - 'aacqual=n' => \$aacqual, - 'mpcqual=s' => \$mpcqual, - 'ofmode=s' => \$ofmode, - 'ofopt=s' => \$ofopt, - 'bratio=n' => \$bratio, - 'bquanl=n' => \$bquanl, - 'bpsize=n' => \$bpsize, - - 'rip=s' => \$rip, - 'nocddb' => \$nocddb, - 'noinput' => \$noinput, - 'device=s' => \$device, - 'nscheme=s' => \$nscheme, - 'cdinfo' => \$cdinfo, -); - -if (defined($preserve) && !defined($outdir)) { - die "You must specify --outdir when you use --preserve option. See man page.\n"; -} - -$silent = '' if $verbose; - -my $opts; -my $total_converted = 0; -my $total_failed = 0; - -# Initialize the fork manager with a count set through pacpl.conf or via the command line -my $pm = Parallel::ForkManager->new($jobs); - -# conversion options. when adding a new format, -# wild card %i = input file and %o = output file -%run = ( - - '3g2' => { - - DEFAULT_ENCODER => 'ffmpeg', - DEFAULT_DECODER => 'ffmpeg', - - ENCODER => { - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "-ar 8000 -ac 1" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { NONE => 0, }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ar 8000 -ac 1" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { NONE => 0, }, - }, - - }, - - DECODER => { - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "-y -i %o $dopts %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "-y -i %o %dopts %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - - }, - - '3gp' => { - - DEFAULT_ENCODER => 'ffmpeg', - DEFAULT_DECODER => 'ffmpeg', - - ENCODER => { - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "-ar 8000 -ac 1" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { NONE => 0, }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ar 8000 -ac 1" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { NONE => 0, }, - }, - - }, - - DECODER => { - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "-y -i %o $dopts %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "-y -i %o %dopts %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - - }, - - aac => { - - DEFAULT_ENCODER => "faac", - DEFAULT_DECODER => "faad", - - ENCODER => { - faac => { - NAME => "faac", - ESTR => sub { - $opts = "-q $aacqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i -o %o" - }, - PROMPT => { AACQUAL => 1 }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 1, - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - faad => { - NAME => "faad", - DSTR => sub { "$dopts -o %i %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - ac3 => { - - DEFAULT_ENCODER => "ffmpeg", - DEFAULT_DECODER => "ffmpeg", - - ENCODER => { - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => "avconv", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - aften => { - NAME => "aften", - ESTR => sub { - $opts = "-v 1 -q $bitrate -2" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - - PROMPT => { - BITRATE => 1, - }, - }, - - }, - - DECODER => { - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => "avconv", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - adts => { - - DEFAULT_ENCODER => 'ffmpeg', - DEFAULT_DECODER => 'ffmpeg', - - ENCODER => { - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libfaac" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $opts $eopts -strict -2 %o" - }, - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libfaac" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $opts $eopts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - ffmpeg => { - NAME => 'ffmpeg', - DSTR => "$dopts -y -i %i %o", - }, - - avconv => { - NAME => 'avconv', - DSTR => "$dopts -y -i %i %o", - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - ape => { - - DEFAULT_ENCODER => "mac", - DEFAULT_DECODER => "mac", - - ENCODER => { - mac => { - NAME => "mac", - ESTR => sub { - $opts = "-c$acomp" if $defopts == 1; - $opts = '' if $defopts == 0; - "%i %o $opts $eopts" - }, - - PROMPT => { ACOMP => 1 }, - }, - }, - - DECODER => { - mac => { - NAME => "mac", - DSTR => sub { "%i %o -d $dopts" }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "-y -i %i %dopts %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "-y -i %i $dopts %o" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 0, - MODULE => "Audio::Scan", - }, - }, - - amr => { - - DEFAULT_ENCODER => "ffmpeg", - DEFAULT_DECODER => "ffmpeg", - - ENCODER => { - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ar 8000 -ac 1" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { NONE => 0, }, - }, - - avconv => { - NAME => "avconv", - ESTR => sub { - $opts = "-ar 8000 -ac 1" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { NONE => 0, }, - }, - - }, - - DECODER => { - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "-y -i %i $dopts %o" }, - }, - - avconv => { - NAME => 'ffmpeg', - DSTR => sub { "-y -i %i %dopts %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - - }, - - bonk => { - - DEFAULT_ENCODER => "bonk", - DEFAULT_DECODER => "bonk", - - ENCODER => { - bonk => { - NAME => "bonk", - ESTR => sub { - $opts = "-q $bquanl -b $bratio -s $bpsize" if $defopts == 1; - $opts = '' if $defopts == 0; - "encode $eopts $opts %i -o %o" - }, - - PROMPT => { - BQUANL => 1, - BRATIO => 1, - BPSIZE => 1, - }, - }, - }, - - DECODER => { - bonk => { - NAME => "bonk", - DSTR => sub { "decode %i -o %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - dts => { - - DEFAULT_ENCODER => 'ffmpeg', - DEFAULT_DECODER => 'ffmpeg', - - ENCODER => { - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = '' if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $opts $eopts -strict -2 -codec:a libfaac %o" - }, - - PROMPT => { NONE => 0, }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = '' if $defopts == 1 or $defopts == 0; - "-y -i %i $opts $eopts -codec:a libfaac %o", - }, - PROMPT => { NONE => 0, }, - }, - - dcaenc => { - NAME => 'dcaenc', - ESTR => sub { - $opts = "$bitrate" if $defopts == 0; - $opts = '' if $defopts == 1; - "%i %o $opts" - }, - - PROMPT => { NONE => 0, }, - }, - }, - - DECODER => { - ffmpeg => { - NAME => 'ffmpeg', - DSTR => "$dopts -y -i %i %o", - }, - - avconv => { - NAME => 'avconv', - DSTR => "$dopts -y -i %i %o", - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - flac => { - - DEFAULT_ENCODER => "flac", - DEFAULT_DECODER => "flac", - - ENCODER => { - flac => { - NAME => "flac", - ESTR => sub { - $opts = "-$fcomp" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts -f $opts %i -o %o" - }, - PROMPT => { FCOMP => 1 }, - }, - - flake => { - NAME => "flake", - ESTR => sub { - $opts = "-$fcomp" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i -o %o" - }, - PROMPT => { FCOMP => 1 }, - }, - - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 1; - "-y -i %i $eopts $opts %o" - }, - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - flac => { - NAME => "flac", - DSTR => sub { "$dopts -f -d %i -o %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::FLAC::Header", - }, - }, - - fla => { - - DEFAULT_ENCODER => "flac", - DEFAULT_DECODER => "flac", - - ENCODER => { - flac => { - NAME => "flac", - ESTR => sub { - $opts = "-$fcomp" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts -f $opts %i -o %o" - }, - PROMPT => { FCOMP => 1 }, - }, - }, - - DECODER => { - flac => { - NAME => "flac", - DSTR => sub { "$dopts -f -d %i -o %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::FLAC::Header", - }, - }, - - la => { - - DEFAULT_ENCODER => "la", - DEFAULT_DECODER => "la", - - ENCODER => { - la => { - NAME => "la", - ESTR => sub { "-overwrite $eopts %i %o" }, - PROMPT => { NONE => 0, }, - }, - }, - - DECODER => { - la => { - NAME => "la", - ESTR => sub { "-console $dopts %i > %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - mp2 => { - - DEFAULT_ENCODER => "ffmpeg", - DEFAULT_DECODER => "ffmpeg", - - ENCODER => { - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - toolame => { - NAME => 'toolame', - ESTR => sub { - $opts = "-b $bitrate" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - - PROMPT => { - BITRATE => 1, - }, - }, - - twolame => { - NAME => 'twolame', - ESTR => sub { - $opts = "-b $bitrate -s $freq" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - }, - }, - - sox => { - NAME => 'sox', - ESTR => sub { - $opts = "-c $channels -r $bitrate" if $defopts == 1; - $opts = '' if $defopts == 0; - "%i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => "$dopts -y -i %i %o", - }, - - avconv => { - NAME => 'avconv', - DSTR => "%dopts -y -i %i %o", - }, - - mplayer => { - NAME => 'mplayer', - DSTR => "-vc null -vo null -ao pcm:file=%o %i", - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - mp3 => { - - DEFAULT_ENCODER => "lame", - DEFAULT_DECODER => "lame", - - ENCODER => { - lame => { - NAME => "lame", - ESTR => sub { - $opts = "--resample $freq -b $bitrate -h" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - }, - }, - - bladeenc => { - NAME => "bladeenc", - ESTR => sub { - $opts = "-br $bitrate" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - PROMPT => { BITRATE => 1 }, - }, - - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts -y -i %i $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - sox => { - NAME => "sox", - ESTR => sub { - $opts = "-r $freq -c $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "%i $eopts $opts %o" - }, - - PROMPT => { - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - lame => { - NAME => "lame", - DSTR => sub { "$dopts --decode %i %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %O" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - - sox => { - NAME => "sox", - DSTR => sub { "%i $dopts %o" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "MP3::Tag", - }, - }, - - mp3hd => { - - DEFAULT_ENCODER => "mp3hdEncoder", - DEFAULT_DECODER => "mp3hdDecoder", - - ENCODER => { - mp3hdEncoder => { - NAME => "mp3hdEncoder", - ESTR => sub { - $opts = "-br $bitrate" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts -if %i -of %o" - }, - PROMPT => { BITRATE => 1 }, - }, - }, - - DECODER => { - mp3hdDecoder => { - NAME => "mp3hdDecoder", - DSTR => sub { "$dopts -if %i -of %o" }, - }, - }, - - TAGS => { - WRITE => 1, - READ => 1, - MODULE => "MP3::Tag", - }, - }, - - mp4 => { - - DEFAULT_ENCODER => "faac", - DEFAULT_DECODER => "faad", - - ENCODER => { - - faac => { - NAME => "faac", - ESTR => sub { - $opts = "-q $aacqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts -w $opts %i -o %o" - }, - PROMPT => { AACQUAL => 1 }, - }, - - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PRIMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - - faad => { - NAME => "faad", - DSTR => sub { "$dopts -o %o %i" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::Scan", - }, - }, - - m4a => { - - DEFAULT_ENCODER => "faac", - DEFAULT_DECODER => "faad", - - ENCODER => { - - faac => { - NAME => "faac", - ESTR => sub { - $opts = "-q $aacqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts -w $opts %i -o %o" - }, - PROMPT => { AACQUAL => 1 }, - }, - - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts -y -i %i $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - - faad => { - NAME => "faad", - DSTR => sub { "$dopts -o %o %i" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - - }, - - ESTR => sub { "$eopts -w -q $aacqual %i -o %o" }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::Scan", - }, - }, - - m4b => { - - DEFAULT_ENCODER => undef, - DEFAULT_DECODER => "faad", - - DECODER => { - faad => { - NAME => "faad", - DSTR => sub { "$dopts -o %o %i" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "$dopts -vc null -vo null -ao pcm:file=%o %i" }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 1, - MODULE => undef, - }, - }, - - mpc => { - - DEFAULT_ENCODER => "mpcenc", - DEFAULT_DECODER => "mpcdec", - - ENCODER => { - - mpcenc => { - NAME => "mpcenc", - ESTR => sub { - $opts = "--$mpcqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts --overwrite $opts %i %o" - }, - PROMPT => { MPCQUAL => 1 }, - }, - }, - - DECODER => { - - mpcdec => { - NAME => "mpcdec", - DSTR => sub { "$dopts %i %o" }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::Scan", - }, - - PROMPT => { - MPCQUAL => 1, - }, - }, - - mpp => { - - DEFAULT_ENCODER => "mpcenc", - DEFAULT_DECODER => "mpcdec", - - ENCODER => { - - mpcenc => { - NAME => "mpcenc", - ESTR => sub { - $opts = "--$mpcqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts --overwrite $opts %i %o" - }, - PROMPT => { MPCQUAL => 1 }, - }, - }, - - DECODER => { - - mpcdec => { - NAME => "mpcdec", - DSTR => sub { "$dopts %i %o" }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::Scan", - }, - }, - - off => { - DEFAULT_ENCODER => 'off', - DEFAULT_DECODER => 'off', - - ENCODER => { - off => { - NAME => 'off', - ESTR => sub { - $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts --overwrite $opts %i --output %o" - }, - - PROMPT => { - OFMODE => 1, - OFOPT => 1, - }, - }, - }, - - DECODER => { - off => { - NAME => 'off', - DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - ofr => { - - DEFAULT_ENCODER => "ofr", - DEFAULT_DECODER => "ofr", - - ENCODER => { - ofr => { - NAME => "ofr", - ESTR => sub { - $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts --overwrite $opts %i --output %o" - }, - - PROMPT => { - OFMODE => 1, - OFOPT => 1, - }, - }, - }, - - DECODER => { - ofr => { - NAME => "ofr", - DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - ofs => { - - DEFAULT_ENCODER => "ofs", - DEFAULT_DECODER => "ofs", - - ENCODER => { - ofs => { - NAME => "ofs", - ESTR => sub { - $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts --overwrite $opts %i --output %o" - }, - - PROMPT => { - OFMODE => 1, - OFOPT => 1, - }, - }, - }, - - DECODER => { - ofs => { - NAME => "ofs", - DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - - oga => { - DEFAULT_ENCODER => 'oggenc', - DEFAULT_DECODER => 'oggdec', - - ENCODER => { - oggenc => { - NAME => 'oggenc', - ESTR => sub { - $opts = "--resample $freq -q $oggqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - PROMPT => { - FREQ => 1, - OGGQUAL => 1, - }, - }, - - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - sox => { - NAME => "sox", - ESTR => sub { - $opts = "-r $freq -c $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "%i $eopts $opts %o" - }, - - PROMPT => { - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - oggdec => { - NAME => "oggdec", - DSTR => sub { "$dopts %i --output %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - - sox => { - NAME => "sox", - DSTR => sub { "%i $dopts %o" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "vorbiscomment", - }, - }, - - ogg => { - - DEFAULT_ENCODER => "oggenc", - DEFAULT_DECODER => "oggdec", - - ENCODER => { - oggenc => { - NAME => "oggenc", - ESTR => sub { - $opts = "--resample $freq -q $oggqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i -o %o" - }, - - PROMPT => { - FREQ => 1, - OGGQUAL => 1, - }, - }, - - ffmpeg => { - NAME => "ffmpeg", - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - FREQ => 1, - CHANNELS => 1, - }, - }, - - sox => { - NAME => "sox", - ESTR => sub { - $opts = "-r $freq -c $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "%i $eopts $opts %o" - }, - - PROMPT => { - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - oggdec => { - NAME => "oggdec", - DSTR => sub { "$dopts %i --output %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - - sox => { - NAME => "sox", - DSTR => sub { "%i $dopts %o" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "vorbiscomment", - }, - }, - - opus => { - - DEFAULT_ENCODER => "opusenc", - DEFAULT_DECODER => "opusdec", - - ENCODER => { - opusenc => { - NAME => 'opusenc', - ESTR => sub { - $opts = "--bitrate $bitrate" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - PROMTP => { - BITRATE => 1, - }, - }, - }, - - DECODER => { - opusdec => { - NAME => 'opusdec', - DSTR => sub { "--force-wav %i %o" }, - PROMPT => { NONE => 0 }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - raw => { - - DEFAULT_ENCODER => "sox", - DEFAULT_DECODER => "sox", - - ENCODER => { - sox => { - NAME => 'sox', - ESTR => sub { - $opts = "-r $freq -c $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "%i $opts $eopts %o $effect" - }, - - PROMPT => { - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - sox => { - NAME => 'sox', - DSTR => sub { "-w -s -r $freq -c $channels $dopts %i %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - rm => { - - DEFAULT_ENCODER => 'ffmpeg', - DEFAULT_DECODER => 'ffmpeg', - - ENCODER => { - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "-ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - FREQ => 1, - CHANNELS => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "-ar $freq -ac $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - FREQ => 1, - CHANNELS => 1, - }, - }, - }, - - DECODER => { - mplayer => { - NAME => 'mplayer', - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - shn => { - - DEFAULT_ENCODER => "shorten", - DEFAULT_DECODER => "shorten", - - ENCODER => { - shorten => { - NAME => "shorten", - ESTR => sub { - $opts = "-c $channels" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - PROMPT => { CHANNELS => 1 }, - }, - }, - - DECODER => { - shorten => { - NAME => "shorten", - DSTR => sub { "-x %i %o" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - spx => { - - DEFAULT_ENCODER => "speexenc", - DEFAULT_DECODER => "speexdec", - - ENCODER => { - speexenc => { - NAME => "speexenc", - ESTR => sub { - $opts = "--quality $spxqual" if $defopts == 1; - $opts = '' if $defopts == 0; - "$eopts $opts %i %o" - }, - PROMPT => { SPXQUAL => 1 }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { - $opts = "--bitrate $bitrate.k" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i %i $eopts $opts %o" - }, - - PROMPT => { - BITRATE => 1, - }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { - $opts = "--bitrate $bitrate.k" if $defopts == 1; - $opts = '' if $defopts == 0; - "-y -i $eopts $opts %o" - }, - PROMPT => { - BITRATE => 1, - }, - }, - }, - - DECODER => { - speexdec => { - NAME => "speexdec", - DSTR => sub { "$dopts %i %o" }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => undef, - }, - }, - - tta => { - - DEFAULT_ENCODER => "ttaenc", - DEFAULT_DECODER => "ttaenc", - - ENCODER => { - ttaenc => { - NAME => "ttaenc", - ESTR => sub { "$eopts -e %i -o %o" }, - PROMPT => { NONE => 0, }, - }, - }, - - DECODER => { - ttaenc => { - NAME => "ttaenc", - DSTR => sub { "$dopts -d %i -o %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - wav => { - - DEFAULT_ENCODER => "mv", - DEFAULT_DECODER => "cp", - - ENCODER => { - mv => { - NAME => "mv", - ESTR => sub { "%i %o" }, - PROMPT => { NONE => 0, }, - }, - }, - - DECODER => { - cp => { - NAME => "cp", - DSTR => sub { "%i %o" }, - } - }, - - TAGS => { - READ => 0, - WRITE => 0, - MODULE => undef, - }, - }, - - wv => { - - DEFAULT_ENCODER => "wavpack", - DEFAULT_DECODER => "wvunpack", - - ENCODER => { - wavpack => { - NAME => "wavpack", - ESTR => sub { "$eopts -h -y %i -o %o" }, - PROMPT => { NONE => 0, }, - }, - - ffmpeg => { - NAME => 'ffmpeg', - ESTR => sub { "-y -i %i $eopts %o" }, - PROMPT => { NONE => 0, }, - }, - - avconv => { - NAME => 'avconv', - ESTR => sub { "-y -i %i $eopts %o" }, - PROMPT => { NONE => 0, }, - }, - }, - - DECODER => { - wvunpack => { - NAME => "wvunpack", - DSTR => sub { "$dopts -y %i -o %o" }, - }, - - ffmpeg => { - NAME => "ffmpeg", - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - avconv => { - NAME => 'avconv', - DSTR => sub { "$dopts -y -i %i %o" }, - }, - - mplayer => { - NAME => "mplayer", - DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, - }, - }, - - TAGS => { - READ => 1, - WRITE => 1, - MODULE => "Audio::Scan", - }, - }, -); - -# supported ffmpeg/avconv formats (decode only) -my @ffmpeg_codecs = ( "mmf", "ra", "wma" ); -my @ffmpeg_forks = ( "avconv", "ffmpeg" ); - -foreach my $fork (@ffmpeg_forks) { - - foreach my $codec (@ffmpeg_codecs) { - - $run{$codec}{DEFAULT_ENCODER} = $fork; - $run{$codec}{DEFAULT_DECODER} = $fork; - $run{$codec}{ENCODER}{$fork}{NAME} = $fork; - $run{$codec}{DECODER}{$fork}{NAME} = $fork; - $run{$codec}{DECODER}{$fork}{DSTR} = sub {"-y %i $dopts %o"}; - $run{$codec}{ENCODER}{$fork}{ESTR} = sub {"-y -i %i $eopts -ab $bitrate.k -ar $freq -ac $channels %o"}; - $run{$codec}{TAGS}{READ} = 0; - $run{$codec}{TAGS}{WRITE} = 0; - $run{$codec}{TAGS}{MODULE} = undef; - } - -} - -# support reading of WMA tags via Audio::Scan -$run{wma}{TAGS}{READ} = 1; -$run{wma}{TAGS}{MODULE} = "Audio::Scan"; - -# supported video to audio types -my @movie_codecs = ( - "rv", "asf", "avi", "divx", - "mkv", "mpg", "mpeg", "mov", - "ogm", "qt", "vcd", "vob", - "wmv", "flv", "svcd", "m4v", - "nsv", "nuv", "psp", "smk", - "ogv", "webm", - - # decode only audio formats - "vqf", "tak", - ); - -foreach (@movie_codecs) { - $run{$_}{DEFAULT_ENCODER} = undef; - $run{$_}{DEFAULT_DECODER} = "ffmpeg"; - $run{$_}{DECODER}{mplayer}{NAME} = "mplayer"; - $run{$_}{DECODER}{ffmpeg}{NAME} = "ffmpeg"; - $run{$_}{DECODER}{mplayer}{DSTR} = sub { "$dopts -vc null -vo null -ao pcm:file=%o %i" }; - $run{$_}{DECODER}{ffmpeg}{DSTR} = sub { "$dopts -i %i %o"; }; - $run{$_}{TAGS}{READ} = 0; - $run{$_}{TAGS}{WRITE} = 0; - $run{$_}{TAGS}{MODULE} = undef; -} - -# supported sndfile-convert formats -my @sndfile = ( - "pvf", "caf", "sf", "paf", "fap", "sd2", - "mat4", "mat5", "mat", "ircam", "w64", "nist", - "rf64", - ); - -foreach (@sndfile) { - - $run{$_}{DEFAULT_ENCODER} = "sndfile-convert"; - $run{$_}{DEFAULT_DECODER} = "sndfile-convert"; - $run{$_}{ENCODER}{"sndfile-convert"}{NAME} = "sndfile-convert"; - $run{$_}{DECODER}{"sndfile-convert"}{NAME} = "sndfile-convert"; - $run{$_}{ENCODER}{"sndfile-convert"}{ESTR} = sub { "$eopts %i %o" }; - $run{$_}{DECODER}{"sndfile-convert"}{DSTR} = sub { "$dopts %i %o" }; - $run{$_}{TAGS}{READ} = 0; - $run{$_}{TAGS}{WRITE} = 0; - $run{$_}{TAGS}{MODULE} = undef; -} - -# supported sox formats -my @sox_codecs = ( - "aiff", "aif", "au", "snd", "voc", - "smp", "avr", "cdr", "8svx", "amb", - "dat", "dvms", "f32", "f64", "fssd", - "gsrt", "hcom", "txw", "vms", "al", - "sou", "ima", "prc", "cvu", - "maud", - ); - -foreach (@sox_codecs) { - - $run{$_}{DEFAULT_ENCODER} = "sox"; - $run{$_}{DEFAULT_DECODER} = "sox"; - $run{$_}{ENCODER}{sox}{NAME} = "sox"; - $run{$_}{DECODER}{sox}{NAME} = "sox"; - $run{$_}{ENCODER}{sox}{ESTR} = sub { "%i -r $freq -c $channels $eopts %o $effect" }; - $run{$_}{DECODER}{sox}{DSTR} = sub { "%i $dopts %o" }; - $run{$_}{TAGS}{READ} = 0; - $run{$_}{TAGS}{WRITE} = 0; - $run{$_}{TAGS}{MODULE} = undef; - - $run{$_}{ENCODER}{sox}{PROMPT}{FREQ} = 1; - $run{$_}{ENCODER}{sox}{PROMPT}{CHANNELS} = 1; - -} - -# load codecs.conf file -load_codecs() if -e $codecs_conf; - -my $out_name = $outfile; -my $out_dir = $outdir; -my $first_message = 1; -my %files; -my $number = 0; - -# process all files and directories -sub proc_input { - - $to =~ tr/A-Z/a-z/; - - perror("bad_input","") unless(exists($run{$to})); - - proc_preserve_dir($dir[0]) if @dir and $preserve; # process recursive directory preservation (sends to proc_files - proc_dirs() if @dir and not $preserve; # process directories including recursively (sends to proc_files) - proc_files() if @file; # process all files - fork_files(); # start the conversion process. -} - -# process all files (all roads lead to rome) -sub proc_files { - - if (@file) { - - foreach my $i (sort(@file)) { - - my ($file, $dir, $ext) = fileparse("$i", qr/\.[^.]*/); - - $ext =~ s/^\.//; - $dir = rel2abs($dir); - $outdir = $dir if not defined($out_dir) and not $preserve; - $outdir = $out_dir if $preserve; - - my $if = $ext; - $if =~ tr/A-Z/a-z/; - - $only =~ tr/A-Z/a-z/ if $only; - - next if $only and $if ne $only; - - $encoder = $my_encoder if defined($my_encoder); - $decoder = $my_decoder if defined($my_decoder); - - $encoder = $run{$to}{DEFAULT_ENCODER} if not $my_encoder; - $decoder = $run{$if}{DEFAULT_DECODER} if not $my_decoder; - - if (-e "$file.$to" and not $overwrite) { - pnotice("overwrite","$file.$to",1); - $total_failed++; - next; - } - - if (check_input($file,$dir,$if) == 0) { - - pnotice("unk_encoder","$file.$ext",1), next unless(exists($run{$to}{ENCODER}{$encoder})); - pnotice("unk_decoder","$file.$ext",1), next unless(exists($run{$if}{DECODER}{$decoder})); - - get_visual_opts($to,$outdir) if $gui and not defined($first_run); - - $first_run = 1; - - perror("multi_out","") if (defined($out_name) and $#file gt 0 or defined($out_name) and @dir); - perror("no_outdir","") if (not -e $outdir and not -d $outdir); - - $outfile = "$file" if not $out_name; - - if ($keep and $if eq $to) { - system("cp -v \"$dir/$file.$ext\" \"$outdir/$outfile.$ext\"") if $outdir ne $dir and not -e "$outdir/$outfile.$ext"; - next if $outdir eq $dir; - } - - else { - $files{"FILE$number"}{FILE} = "$dir/$file"; - $files{"FILE$number"}{OUTF} = "$outdir/$outfile"; - $files{"FILE$number"}{EXT} = "$ext"; - $files{"FILE$number"}{NAME} = "$file"; - $files{"FILE$number"}{OUTD} = "$outfile"; - $files{"FILE$number"}{DECODER} = "$decoder"; - - $number++; - } - - } - } - } - undef(@file); -} - -# process directories and push all to @file arrary -sub proc_dirs { - - if (@dir) { - - my @tmp_dir = @dir; - undef(@dir); - $topdir = $tmp_dir[0]; - - if (not $recursive) { - - undef(@file); - - foreach my $d (@tmp_dir) { - - opendir(DIR, "$d") or perror("opening_dir","$d: $!"); - my @dir_files = readdir(DIR); - closedir(DIR); - perror("empty_dir","$d") if $#dir_files <= 1; - - foreach my $f (@dir_files) { - - if (not -d $f and not -d "$d/$f") { - push(@file, "$d/$f"); - undef($out_name); - } - } - } - - proc_files(); - return 0; - - } - - elsif ($recursive) { - - if (not $preserve) { - - undef(@file); - - foreach my $r (@tmp_dir) { - - $r = rel2abs($r); - - find ( sub { - my $rfile = $File::Find::name; - push(@file, $rfile) if not -d $rfile; - }, $r - ); - } - - proc_files(); - return 0; - - } - } - - } -} - -# preserve directory structuer (revised 10-7-2013) -my $out_dir_original = rel2abs($outdir) if $outdir and -d $outdir; - -sub proc_preserve_dir { - -$topdir = rel2abs($dir[0]); - -perror("no_outdir","") if not defined($out_dir_original); -perror("no_outdir","") if not -d $out_dir_original; - -undef(@file); # clear the array before we begin. - -find ( sub { - my $val = $File::Find::name; - $val =~ s/(\$)/\\\$/g; - - if ($val ne $topdir) { - - $val =~ s/$topdir\///; - - # create mirrored directories in output directory - if (not -f fileparse("$topdir/$val") and not -d "$out_dir_original/$val") { - say "creating directory $out_dir_original/$val" if not -f "$topdir/$val" and $verbose; - mkdir("$out_dir_original/$val", 0755) if not -f "$topdir/$val"; - } - - # this will list all files in their original directories - if (-f "$topdir/$val") { - say "$lang{debug} pushing to \@file: $topdir/$val" if $debug == 1; - push(@file, "$topdir/$val"); - } - - # set $out_dir to the - $out_dir = "$out_dir_original/" . dirname($val) if -f "$topdir/$val"; - - # send file, and output dir to proc_files(); - proc_files(); - } - - }, $topdir - ); -} - -# convert input to destination format -sub convert { - - my ($inf, $outf, $infmt, $iname, $oname, $dec) = @_; - - my $if = $infmt; - $if =~ tr/A-Z/a-z/; - - clear_tag_hash() if not $rip; - - # catch ^C. will have to be pressed repeatedly to exit the process. - $SIG{INT} = sub { - unlink("$outf.$$.wav"); - kill 9, $$; - }; - - # check to see if encoder/decoder exists. if not, see if we have one - # that supports the desired input/output formats. - $decoder = $dec; - check_encoder(); - check_decoder($infmt); - - my $decode_string = $run{$if}{DECODER}{$decoder}{DSTR}->(); - $decode_string =~ s/%i/\"$inf.$infmt\"/; - $decode_string =~ s/%o/\"$outf.$$.wav\"/; - $decode_string =~ s/(\$|\\)/\\$1/g; - - pnotice("debug","\n$run{$if}{DECODER}{$decoder}{NAME} $decode_string", 2) if $dryrun; - - # decode input file to temporary wav - system("$run{$if}{DECODER}{$decoder}{NAME} $decode_string $silent") if not $dryrun; - - # remove temporary wav file and die if decode fails - if ($? > 0) { - unlink("$outf.$$.wav") if -e "$outf.$$.wav"; - say ""; - $banner = 0; - pnotice("decode_failed","$inf.$infmt: try with --verbose",1); - return 1; - } - - # normalize wav file before encoding to output format - perror("no_app","normalize") if $normalize and not `which normalize 2>/dev/null`; - system("normalize $nopts \"$outf.$$.wav\"") if $normalize; - - # copy meta-data from input file to %tag_name - read_tags("$inf.$infmt", "$if") if $run{$if}{TAGS}{READ} == 1 and not $dryrun; - - my $tag_opts = format_tags($to); # tag options for mp4/m4a/m4b/mpc/mpp/bonk/spx/wv - - my $encode_string = $run{$to}{ENCODER}{$encoder}{ESTR}->(); - $encode_string =~ s/%i/$tag_opts \"$outf.$$.wav\"/ if $to =~ /mpc|mpp|mp4|m4a/ and $encoder eq "faac" or $encoder eq "mpcenc"; - $encode_string =~ s/%i/\"$outf.$$.wav\" $tag_opts/ if $to =~ /mpc|mpp|mp4|m4a/ and $encoder eq "ffmpeg" or $encoder eq "avconv"; - $encode_string =~ s/%i/\"$outf.$$.wav\"/ if $to !~ /mpc|mpp|mp4|m4a/; - $encode_string =~ s/%o/$tag_opts \"$outf.$to\"/ if $tag_opts ne " " and $to !~ /mpc|mpp|mp4|m4a/; - $encode_string =~ s/%o/\"$outf.$to\"/ if $tag_opts eq " " or $to =~ /mpc|mpp|mp4|m4a/; - $encode_string =~ s/(\$|\\)/\\$1/g; - - # read tag options from command line if present - get_user_tags(); - - pnotice("debug","\n$run{$to}{ENCODER}{$encoder}{NAME} $encode_string", 2) if $dryrun; - - # encode temporary WAV to desired output format. - system("$run{$to}{ENCODER}{$encoder}{NAME} $encode_string $silent") if not $dryrun; - - # remove partially encoded output file and temporary wav if encoding fails - if ($? > 0) { - unlink("$outf.$to") if -e "$outf.$to"; - unlink("$outf.$$.wav") if -e "$outf.$$.wav"; - say ""; - $banner = 0; - pnotice("encode_failed","$outf.$to: $?",1); - return 1; - } - - # write meta-data to output file from %tag_name hash - write_tags("$outf.$to", "$to") if $run{$to}{TAGS}{WRITE} == 1 and $tag_opts eq " " and not $dryrun; - - unlink("$outf.$$.wav") if not $dryrun; - unlink("$inf.$infmt") if $delete and not $dryrun; - - pnotice("removed_tmp","$outf.$$.wav","2") if $verbose; - pnotice("removed_src","$inf.$infmt", "2") if $delete and $verbose; -} - -$pm->run_on_finish -( sub { - my $pid = shift; - my $exit_code = shift; - my $ident = shift; - - if (-e "$ident.$to") { - $total_converted++; - } - say "$lang{debug} PID: $pid EXIT_CODE: $exit_code IDENTITY: \"$ident.$to\"" if $debug == 1; - } -); - -# convert all files that have been placed in the %files hash through various procs* -sub fork_files { - - say "\n$name - $version\n" if not $gui and $banner == 1; - - foreach (sort(keys(%files))) - { - $pm->start($files{$_}{OUTF}) and next; - my $msg = "$lang{converting}" . " " . basename($files{$_}{FILE}) . ".$files{$_}{EXT} -> $to"; - say "$msg" if not $gui; - system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$msg\" 10 &") if $gui and $kde; - system("notify-send \"$name\" \"$msg\" -t 35 -i $icon_path &") if $gui and $gnome; - convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}","$files{$_}{DECODER}"); - $pm->finish; - } - - $pm->wait_all_children; - $total_failed = $number - $total_converted if $total_converted < $number; - - my $finished_msg = "\n$lang{total_converted} $total_converted, $lang{failed} $total_failed\n"; - - say "$finished_msg" if not $gui; - system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$finished_msg\" 10 &") if $gui and $kde; - system("notify-send \"$name\" \"$finished_msg\" -t 35 -i $icon_path &") if $gui and $gnome; - -} - -# if the default encoder does not exist, cycle through the supported -# encoders until we find one that does. -sub check_encoder { - - if (not `which $encoder 2>/dev/null`) { - my $first_encoder = $encoder; - foreach (keys %{$run{$to}{ENCODER}}) { $encoder = $_ and return if `which $_ 2>/dev/null`; } - perror("no_encode_app","$to") if $encoder eq $first_encoder; - } - - else { return 0; } -} - -# if the default decoder does not exist, cycle through the supported -# decoders until we find one that does. -sub check_decoder { - - my $from = shift; - - if (not `which $decoder 2>/dev/null`) { - my $first_decoder = $decoder; - foreach (keys %{$run{$from}{DECODER}}) { $decoder = $_ and return if `which $_ 2>/dev/null`; } - perror("no_decode_app","$from") if $decoder eq $first_decoder; - } - - else { return 0; } -} - -# make sure encoding/decoding is supported. -sub check_input { - - my $file = shift; - my $dir = shift; - my $ext = shift; - - perror("no_encoder","$to") unless(defined($run{$to}{ENCODER})); - - unless(defined($run{$ext}{DECODER})) { - pnotice("no_decoder","$ext",2) if $verbose or not $only; - $total_failed++; - return 1; - } - - return 0; -} - -######################################## -# GUI options for KDE & Gnome Plugins # -######################################## - -my $kdialog = "kdialog --title \"$name\""; -my $zenity = "zenity --title \"$name\" --list --radiolist --width 100 --height 300 --column '' --column "; - -sub get_visual_opts { - - my ($to_fmt,$od) = @_; - - # escape illegal characters in output directory name - $od =~ s/('|\(|\)|"|\\)/\\$1/g; - - $outdir = `kdialog --getexistingdirectory $od` if $config{KDE_DIR} == 1 and $kde; - $outdir = `zenity --title \"$lang{gui_outdir}\" --file-selection --directory --filename=\`pwd\`` if $config{ZEN_DIR} == 1 and $gnome; - - chomp($outdir); - $out_dir = $outdir; - exit(1) if not $outdir; - - if ($config{KDE_OPTS} == 1 or $config{ZEN_OPTS} == 1) { - foreach (keys %{$run{$to_fmt}{ENCODER}{$encoder}{PROMPT}}) { - prompt_user($_); - } - } -} - -sub prompt_user { - - my $opt = shift; - - given ($opt) { - - when (/^BITRATE/) { - $bitrate = `$kdialog --default $bitrate --combobox \"$lang{gui_bitrate}\" 56 112 128 160 192 256 320` if $kde; - $bitrate = `$zenity \"$lang{gui_bitrate}\" FALSE 56 FALSE 112 FALSE 128 FALSE 160 TRUE 192 FALSE 256 FALSE 320` if $gnome; - chomp($bitrate); - exit(1) if not $bitrate; - } - - when (/^FREQ/) { - $freq = `$kdialog --default $freq --combobox \"$lang{gui_freq}\" 32000 44100 48000` if $kde; - $freq = `$zenity \"$lang{gui_freq}\" FALSE 32000 TRUE 44100 FALSE 48000` if $gnome; - chomp($freq); - exit(1) if not $freq; - } - - when (/^CHANNELS/) { - $channels = `$kdialog --default $channels --combobox \"$lang{gui_chans}\" 1 2` if $kde; - $channels = `$zenity \"$lang{gui_chans}\" FALSE 1 TRUE 2` if $gnome; - chomp($channels); - exit(1) if not $channels; - } - - when (/^FCOMP/) { - $fcomp = `$kdialog --default $fcomp --combobox \"$lang{gui_fcomp}\" 0 1 2 3 4 5 6 7 8` if $kde; - $fcomp = `$zenity \"$lang{gui_fcomp}\" FALSE 0 FALSE 1 TRUE 2 FALSE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 FALSE 8` if $gnome; - chomp($fcomp); - exit(1) if not $fcomp; - } - - when (/^ACOMP/) { - $acomp = `$kdialog --default $acomp --combobox \"$lang{gui_acomp}\" 1000 2000 3000 4000 5000` if $kde; - $acomp = `$zenity \"$lang{gui_acomp}\" FALSE 1000 FALSE 2000 TRUE 3000 FALSE 4000 FALSE 5000` if $gnome; - chomp($acomp); - exit(1) if not $acomp; - } - - when (/^OGGQUAL/) { - $oggqual = `$kdialog --default $oggqual --combobox \"$lang{gui_oggqual}\" 0 1 2 3 4 5 6 7 8 9 10` if $kde; - $oggqual = `$zenity \"$lang{gui_oggqual}\" FALSE 0 FALSE 1 FALSE 2 TRUE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 FALSE 8 FALSE 9 FALSE 10` if $gnome; - chomp($oggqual); - exit(1) if not $oggqual; - } - - when (/^SPXQUAL/) { - $spxqual = `$kdialog --default $spxqual --combobox \"$lang{gui_spxqual}\" 0 1 2 3 4 5 6 7 8 9 10` if $kde; - $spxqual = `$zenity \"$lang{gui_spxqual}\" FALSE 0 FALSE 1 FALSE 2 FALSE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 TRUE 8 FALSE 9 FALSE 10` if $gnome; - chomp($spxqual); - exit(1) if not $spxqual; - } - - when (/^AACQUAL/) { - $aacqual = `$kdialog --default $aacqual --combobox \"$lang{gui_aacqual}\" 100 200 300 400 500` if $kde; - $aacqual = `$zenity \"$lang{gui_aacqual}\" TRUE 100 FALSE 200 FALSE 300 FALSE 400 FALSE 500` if $gnome; - chomp($aacqual); - exit(1) if not $aacqual; - } - - when (/^MPCQUAL/) { - $mpcqual = `$kdialog --default $mpcqual --combobox \"$lang{gui_mpcqual}\" thumb radio standard xtreme insane braindead` if $kde; - $mpcqual = `$zenity \"$lang{gui_mpcqual}\" FALSE thumb TRUE radio FALSE standard FALSE xtreme FALSE insane FALSE braindead` if $gnome; - chomp($mpcqual); - exit(1) if not $mpcqual; - } - - when (/^OFMODE/ ) { - $ofmode = `$kdialog --default $ofmode --combobox \"$lang{gui_ofmode}\" fast normal high extra best highnew extranew bestnew` if $kde; - $ofmode = `$zenity \"$lang{gui_ofmode}\" FALSE fast TRUE normal FALSE high FALSE extra FALSE best FALSE highnew FALSE extranew FALSE bestnew` if $gnome; - chomp($ofmode); - exit(1) if not $ofmode; - } - - when (/^OFOPT/) { - $ofopt = `$kdialog --default $ofopt --combobox \"$lang{gui_ofopt}\" none fast normal high best` if $kde; - $ofopt = `$zenity \"$lang{gui_ofopt}\" FALSE none TRUE fast FALSE normal FALSE high FALSE best` if $gnome; - chomp($ofopt); - exit(1) if not $ofopt; - } - - when (/^BRATIO/) { - $bratio = `$kdialog --default $bratio --combobox \"$lang{gui_bratio}\" 1 2 3 4 5` if $kde; - $bratio = `$zenity \"$lang{gui_bratio}\" FALSE 1 TRUE 2 FALSE 3 FALSE 4 FALSE 5` if $gnome; - chomp($bratio); - exit(1) if not $bratio; - } - - when (/^BQUANL/) { - $bquanl = `$kdialog --default $bquanl --combobox \"$lang{gui_bquanl}\" 1.00 1.25 1.50 1.75 2.00` if $kde; - $bquanl = `$zenity \"$lang{gui_bquanl}\" TRUE 1.00 FALSE 1.25 FALSE 1.50 FALSE 1.75 FALSE 2.00` if $gnome; - chomp($bquanl); - exit(1) if not $bquanl; - } - - when (/^BPSIZE/) { - $bpsize = `$kdialog --default $bpsize --combobox \"$lang{gui_bpsize}\" 10 128` if $kde; - $bpsize = `$zenity \"$lang{gui_bpsize}\" FALSE 10 TRUE 128` if $gnome; - chomp($bpsize); - exit(1) if not $bpsize; - } - - default { return 0; } - } - -} - -# all copied tags will be stored here for furture use -my %tag_name = -( - title => undef, - track => undef, - artist => undef, - album => undef, - comment => undef, - year => undef, - genre => undef, -); - -# override tags read from input file if any of the tagging -# options are specified by the user during conversion. -sub get_user_tags -{ - $tag_name{title} = $title if $title; - $tag_name{track} = $track if $track; - $tag_name{artist} = $artist if $artist; - $tag_name{album} = $album if $album; - $tag_name{comment} = $comment if $comment; - $tag_name{year} = $year if $year; - $tag_name{genre} = $genre if $genre; -} - -# the formats MP4/M4A/M4B/MPC/MPP/WV/BONK have no tag writing module. -# tags therefore have to be written during encode via various -# command line args. -sub format_tags { - - my $type = shift; - - given ($type) { - - when (/^mp4$|^m4a$|^m4b$/) { - - if ($run{$to}{ENCODER}{$encoder}{NAME} eq "ffmpeg" or $run{$to}{ENCODER}{$encoder}{NAME} eq "avconv") { - - $tag_name{track} = 0 if not $tag_name{track}; - $tag_name{year} = 0 if not $tag_name{year}; - - return "-metadata TITLE=\"$tag_name{title}\" -metadata TRACK=\"$tag_name{track}\" -metadata ARTIST=\"$tag_name{artist}\" -metadata ALBUM=\"$tag_name{album}\" -metadata COMMENT=\"$tag_name{comment}\" -metadata YEAR=\"$tag_name{year}\" -metadata GENRE=\"$tag_name{genre}\""; - - } else { - - return "--title \"$tag_name{title}\" --track \"$tag_name{track}\" --artist \"$tag_name{artist}\" --album \"$tag_name{album}\" --comment \"$tag_name{comment}\" --year \"$tag_name{year}\" --genre \"$tag_name{genre}\""; - - } - } - - when (/^mpc$|^mpp$/) { return "--artist \"$tag_name{artist}\" --title \"$tag_name{title}\" --album \"$tag_name{album}\" --track \"$tag_name{track}\" --genre \"$tag_name{genre}\" --year \"$tag_name{year}\" --comment \"$tag_name{comment}\""; } - when (/^wv$/) { return "-w \"Title=$tag_name{title}\" -w \"Track=$tag_name{track}\" -w \"Artist=$tag_name{artist}\" -w \"Album=$tag_name{album}\" -w \"Comment=$tag_name{comment}\" -w \"Year=$tag_name{year}\" -w \"Genre=$tag_name{genre}\""; } - when (/^bonk$/) { return "-t \"$tag_name{title}\" -a \"$tag_name{artist}\" -c \"$tag_name{comment}\""; } - when (/^spx$/) { return "--author \"$tag_name{artist}\" --title \"$tag_name{title}\" --comment \"year=$tag_name{year}\" --comment \"tracknumber=$tag_name{track}\" --comment \"album=$tag_name{album}\" --comment \"genre=$tag_name{genre}\" --comment \"comment=$tag_name{comment}\""; } - - default { return " "; } - } -} - -# meta-data is read based on input file extension. -# all tags which are present will be copied to -# the %tag_name hash. -sub read_tags { - - my $in_file = shift; - my $in_format = shift; - - my $tag_module = $run{$in_format}{TAGS}{MODULE}; - - given ($in_format) { - - when (/^mp3$|^mp3hd$/) { - my $mp3tag = $tag_module->new($in_file); - my @tags = $mp3tag->autoinfo(); - - $tag_name{title} = "$tags[0]" if $tags[0]; - $tag_name{track} = "$tags[1]" if $tags[1]; - $tag_name{artist} = "$tags[2]" if $tags[2]; - $tag_name{album} = "$tags[3]" if $tags[3]; - $tag_name{comment} = "$tags[4]" if $tags[4]; - $tag_name{year} = "$tags[5]" if $tags[5]; - $tag_name{genre} = "$tags[6]" if $tags[6]; - - return 0; - } - - when (/^ogg$|^oga$/) { - my $ogg_tag = Audio::Scan->scan_tags($in_file)->{tags}; - - $tag_name{title} = $ogg_tag->{TITLE} if $ogg_tag->{TITLE}; - $tag_name{track} = $ogg_tag->{TRACKNUMBER} if $ogg_tag->{TRACKNUMBER}; - $tag_name{artist} = $ogg_tag->{ARTIST} if $ogg_tag->{ARTIST}; - $tag_name{album} = $ogg_tag->{ALBUM} if $ogg_tag->{ALBUM}; - $tag_name{comment} = $ogg_tag->{COMMENT} if $ogg_tag->{COMMENT}; - $tag_name{year} = $ogg_tag->{YEAR} if $ogg_tag->{YEAR}; - $tag_name{genre} = $ogg_tag->{GENRE} if $ogg_tag->{GENRE}; - - return 0; - } - - when (/^spx$/) { - my $pid = open(SPX, "speexdec \"$in_file\" tmp1-$$.wav 2>&1 |") or perror("opening_file","$in_file"); - my @data = ; - @data = grep(!/^$|^#/, @data); - - close(SPX); - - foreach (@data) { - - next unless /=/; - chomp; - - my ($k, $v) = split /=/; - $k =~ tr/A-Z/a-z/; - $tag_name{$k} = $v if exists($tag_name{$k}); - $tag_name{artist} = $v if $k =~ /^author/i; - $tag_name{track} = $v if $k =~ /^tracknumber/i; - } - - unlink("tmp-$$.wav"); - return 0; - } - - when (/^flac$|^fla$/) { - my $flac_tag = Audio::Scan->scan_tags($in_file)->{tags}; - - $tag_name{title} = $flac_tag->{TITLE} if $flac_tag->{TITLE}; - $tag_name{track} = $flac_tag->{TRACKNUMBER} if $flac_tag->{TRACKNUMBER}; - $tag_name{artist} = $flac_tag->{ARTIST} if $flac_tag->{ARTIST}; - $tag_name{album} = $flac_tag->{ALBUM} if $flac_tag->{ALBUM}; - $tag_name{comment} = $flac_tag->{COMMENT} if $flac_tag->{COMMENT}; - $tag_name{year} = $flac_tag->{DATE} if $flac_tag->{DATE}; - $tag_name{genre} = $flac_tag->{GENRE} if $flac_tag->{GENRE}; - - return 0; - } - - when (/^mp4$|^m4a$|^m4b$/) { - my $mp4_tag = $tag_module->scan_tags($in_file)->{tags}; - - $tag_name{title} = $mp4_tag->{NAM} if $mp4_tag->{NAM}; - $tag_name{track} = $mp4_tag->{TRKN} if $mp4_tag->{TRKN}; - $tag_name{artist} = $mp4_tag->{ART} if $mp4_tag->{ART}; - $tag_name{album} = $mp4_tag->{ALB} if $mp4_tag->{ALB}; - $tag_name{comment} = $mp4_tag->{CMT} if $mp4_tag->{CMT}; - $tag_name{year} = $mp4_tag->{DAY} if $mp4_tag->{DAY}; - $tag_name{genre} = $mp4_tag->{GNRE} if $mp4_tag->{GNRE}; - - return 0; - } - -when (/^ape$|^mpc$|^mpp$|^wv$/) { - my $audio_tag = $tag_module->scan_tags($in_file)->{tags}; - - $tag_name{title} = $audio_tag->{TITLE} if $audio_tag->{TITLE}; - $tag_name{track} = $audio_tag->{TRACK} if $audio_tag->{TRACK}; - $tag_name{artist} = $audio_tag->{ARTIST} if $audio_tag->{ARTIST}; - $tag_name{album} = $audio_tag->{ALBUM} if $audio_tag->{ALBUM}; - $tag_name{comment} = $audio_tag->{COMMENT} if $audio_tag->{COMMENT}; - $tag_name{year} = $audio_tag->{YEAR} if $audio_tag->{YEAR}; - $tag_name{genre} = $audio_tag->{GENRE} if $audio_tag->{GENRE}; - - return 0; - } - - when (/^wma$/) { - my $wma_tag = $tag_module->scan_tags($in_file)->{tags}; - - $tag_name{title} = $wma_tag->{TITLE} if $wma_tag->{TITLE}; - $tag_name{track} = $wma_tag->{TRACKNUMBER} if $wma_tag->{TRACKNUMBER}; - $tag_name{artist} = $wma_tag->{AUTHOR} if $wma_tag->{AUTHOR}; - $tag_name{album} = $wma_tag->{ALBUMTITLE} if $wma_tag->{ALBUMTITLE}; - $tag_name{comment} = $wma_tag->{DESCRIPTION} if $wma_tag->{DESCRIPTION}; - $tag_name{year} = $wma_tag->{YEAR} if $wma_tag->{YEAR}; - $tag_name{genre} = $wma_tag->{GENRE} if $wma_tag->{GENRE}; - - return 0; - } - - default { return 1; } - } -} - -# write meta-data stored in %tag_name to output file. -sub write_tags { - - my $out_file = shift; - my $out_format = shift; - - my $tag_m; - - given ($out_format) { - - when (/^mp3$|^mp3hd$/) { - $tag_m = MP3::Tag->config(write_v24 => 'YES'); - $tag_m = MP3::Tag->new("$out_file"); - - # ID3v2 Tags - unless(exists($tag_m->{ID3v2})) { $tag_m->new_tag("ID3v2"); } - - $tag_m->{ID3v2}->add_frame("TIT2", "$tag_name{title}") if defined($tag_name{title}); - $tag_m->{ID3v2}->add_frame("TRCK", "$tag_name{track}") if defined($tag_name{track}); - $tag_m->{ID3v2}->add_frame("TPE1", "$tag_name{artist}") if defined($tag_name{artist}); - $tag_m->{ID3v2}->add_frame("TALB", "$tag_name{album}") if defined($tag_name{album}); - $tag_m->{ID3v2}->comment("$tag_name{comment}") if defined($tag_name{comment}); - $tag_m->{ID3v2}->add_frame("TYER", "$tag_name{year}") if defined($tag_name{year}); - $tag_m->{ID3v2}->add_frame("TCON", "$tag_name{genre}") if defined($tag_name{genre}); - - $tag_m->{ID3v2}->write_tag; - - # ID3v1 Tags - unless(exists($tag_m->{ID3v1})) { $tag_m->new_tag("ID3v1"); } - - $tag_m->{ID3v1}->title("$tag_name{title}") if defined($tag_name{title}); - $tag_m->{ID3v1}->track("$tag_name{track}") if defined($tag_name{track}); - $tag_m->{ID3v1}->artist("$tag_name{artist}") if defined($tag_name{artist}); - $tag_m->{ID3v1}->album("$tag_name{album}") if defined($tag_name{album}); - $tag_m->{ID3v1}->comment("$tag_name{comment}") if defined($tag_name{comment}); - $tag_m->{ID3v1}->year("$tag_name{year}") if defined($tag_name{year}); - $tag_m->{ID3v1}->genre("$tag_name{genre}") if defined($tag_name{genre}); - - $tag_m->{ID3v1}->write_tag; - - return 0; - - } - - when (/^ogg$|^oga$/) { - $tag_m = ''; - - $tag_m = "$tag_m -t \"TITLE=$tag_name{title}\"" if $tag_name{title}; - $tag_m = "$tag_m -t \"TRACKNUMBER=$tag_name{track}\"" if $tag_name{track}; - $tag_m = "$tag_m -t \"ARTIST=$tag_name{artist}\"" if $tag_name{artist}; - $tag_m = "$tag_m -t \"ALBUM=$tag_name{album}\"" if $tag_name{album}; - $tag_m = "$tag_m -t \"COMMENT=$tag_name{comment}\"" if $tag_name{comment}; - $tag_m = "$tag_m -t \"YEAR=$tag_name{year}\"" if $tag_name{year}; - $tag_m = "$tag_m -t \"GENRE=$tag_name{genre}\"" if $tag_name{genre}; - - system("vorbiscomment -w $tag_m \"$out_file\"") if $tag_m ne ''; - - return 0; - } - - when (/^fla$|^flac$/) { - $tag_m = Audio::FLAC::Header->new("$out_file"); - my $tag_i = $tag_m->tags(); - - $tag_i->{TITLE} = "$tag_name{title}" if $tag_name{title}; - $tag_i->{TRACKNUMBER} = "$tag_name{track}" if $tag_name{track}; - $tag_i->{ARTIST} = "$tag_name{artist}" if $tag_name{artist}; - $tag_i->{ALBUM} = "$tag_name{album}" if $tag_name{album}; - $tag_i->{COMMENT} = "$tag_name{comment}" if $tag_name{comment}; - $tag_i->{DATE} = "$tag_name{year}" if $tag_name{year}; - $tag_i->{GENRE} = "$tag_name{genre}" if $tag_name{genre}; - - $tag_m->write(); - - return 0; - } - - default { perror("no_write_tag","$out_file"); } - } - -} - -# this is necessary when converting multiple files. -# it prevents old tags from the previous file being -# copied over to the next file in line. -sub clear_tag_hash { - foreach (keys(%tag_name)) { - $tag_name{$_} = ''; - } -} - -# display meta-data for selected file(s) -sub show_taginfo { - - perror("no_input","") if $#file < 0; - - foreach my $i (@file) { - - my ($file, $dir, $ext) = fileparse("$i", qr/\.[^.]*/); - - $ext =~ s/^\.//; - - my $from = $ext; - $from =~ tr/A-Z/a-z/; - - if ($run{$from}{TAGS}{READ} == 1) { - - clear_tag_hash(); - read_tags("$dir/$file.$ext","$from"); - - say ''; - - pnotice("tag_info","$file.$ext",2); - - say " Artist: $tag_name{artist}"; - say " Title: $tag_name{title}"; - say " Album: $tag_name{album}"; - say " Track: $tag_name{track}"; - say "Comment: $tag_name{comment}"; - say " Year: $tag_name{year}"; - say " Genre: $tag_name{genre}"; - - say ''; - - } else { pnotice("no_read_tag","$file.$ext",2); } - } -} - -# write tags to file supplied by the user -sub write_user_tags { - - perror("no_input","") if $#file < 0; - - say ''; - say "$name - $version\n"; - - foreach (@file) { - - my ($file, $dir, $ext) = fileparse("$_", qr/\.[^.]*/); - - $ext =~ s/^\.//; - my $from = $ext; - $from =~ tr/A-Z/a-z/; - - if ($run{$from}{TAGS}{WRITE} == 1) { - - clear_tag_hash(); - read_tags("$dir/$file.$ext","$from"); - - $tag_name{title} = $title if $title; - $tag_name{track} = $track if $track; - $tag_name{artist} = $artist if $artist; - $tag_name{album} = $album if $album; - $tag_name{comment} = $comment if $comment; - $tag_name{year} = $year if $year; - $tag_name{genre} = $genre if $genre; - - write_tags("$dir/$file.$ext","$from"); - say "$lang{write_tag_i} $file.$ext"; - - } else { perror("no_write_tag","$file.$ext"); } - } - say ''; -} - -# print out list of supported encode & decode formats -sub show_formats { - -say "\n$name - $version\n"; -say "EXT E D ENCODER DECODER TAG-READ TAG-WRITE"; -say "----------------------------------------------------------------------"; - -my $enc_count = 0; -my $dec_count = 0; - - foreach (sort(keys(%run))) { - - my $e = "N"; $e = "Y" if defined($run{$_}{DEFAULT_ENCODER}); - my $d = "N"; $d = "Y" if defined($run{$_}{DEFAULT_DECODER}); - my $r = "N"; $r = "Y" if $run{$_}{TAGS}{READ} == 1; - my $w = "N"; $w = "Y" if $run{$_}{TAGS}{WRITE} == 1; - - my $enc = ''; $enc = $run{$_}{DEFAULT_ENCODER} if defined($run{$_}{DEFAULT_ENCODER}); - my $dec = ''; $dec = $run{$_}{DEFAULT_DECODER} if defined($run{$_}{DEFAULT_DECODER}); - - printf("%-9s %-3s %-3s %-15s %-18s %-10s %s\n", $_, $e, $d, $enc, $dec, $r, $w); - - ++$enc_count if $enc ne ''; - ++$dec_count if $dec ne ''; - - } - - say "\n$lang{enc_fmts} $enc_count --- $lang{dec_fmts} $dec_count\n"; - -} - -# show encoders for output format -sub show_encoders { - say "\n$name - $version\n\n$lang{show_encoders}: $my_encoder\n"; - foreach (sort(keys %{$run{$my_encoder}{ENCODER}})) { - print "$_ -> "; - print "installed" if `which $_ 2>/dev/null`; - print "not found" if not `which $_ 2>/dev/null`; - print " (default)" if $_ eq $run{$my_encoder}{DEFAULT_ENCODER}; - say ''; - } - say ''; -} - -# show decoders for input format -sub show_decoders { - say "\n$name - $version\n\n$lang{show_decoders}: $my_decoder\n"; - foreach (sort(keys %{$run{$my_decoder}{DECODER}})) { - print "$_ -> "; - print "installed" if `which $_ 2>/dev/null`; - print " (default)" if $_ eq $run{$my_decoder}{DEFAULT_DECODER}; - say ''; - } - say ''; -} - -################# -# cd ripping... # -################# - -# get total number of tracks from cdparanoia query -sub get_total_tracks { - - open(CDINFO, "cdparanoia -Q 2>&1 |") or die "can't fork: $!\n"; - my @cdquery = ; - close(CDINFO); - - my $fmt_tracks = $cdquery[-3]; - $fmt_tracks =~ s/\s//g; - - my @ttracks = split(/\./, $fmt_tracks); - - return "$ttracks[0]"; - -} - -my (%cd, %ripconfig, @cdtrack, $track_total); - -# setup the cddb config -sub get_cddb_config { - - $config{USE_CDDB} = 0 && return if $nocddb; - - $config{CDDB_INPUT} = 0 if $noinput; - - $ripconfig{CDDB_HOST} = $config{CDDB_HOST}; - $ripconfig{CDDB_PORT} = $config{CDDB_PORT}; - $ripconfig{CDDB_MODE} = $config{CDDB_MODE}; - $ripconfig{DEVICE} = $device; - $ripconfig{CDDB_INPUT} = $config{CDDB_INPUT}; - - print $ripconfig{CDDB_HOST}; - - %cd = get_cddb(\%ripconfig); - - if (not $cd{title}) { - pnotice("no_cddb","",2); - $config{USE_CDDB} = 0; - } - else { - @cdtrack = @{$cd{track}}; - $track_total = $cd{tno}; - } - -} - -# check to see if a disc is present -sub query_disc { - system("cdparanoia -q -d $device -Q > /dev/null 2>&1"); - perror("no_disc","$device") if $? > 0; -} - -# set tag info from cddb -sub tag_track { - - my $tno = shift; - - $tag_name{artist} = $cd{artist} if $cd{artist}; - $tag_name{title} = $cdtrack[$tno-1] if $cdtrack[$tno-1]; - $tag_name{genre} = $cd{cat} if $cd{cat}; - $tag_name{track} = $tno; - $tag_name{album} = $cd{title} if $cd{title}; - $tag_name{year} = $cd{year} if $cd{year}; - $tag_name{comment} = ''; - -} - -# process and convert ripped track -sub rip_cd { - - my ($on,$tno) = @_; - - $outdir = $ENV{HOME}; - $to =~ tr/A-Z/a-z/; - - get_visual_opts($to,$out_dir) if $gui and not defined($first_run); - $first_run = 1; - pnotice("ripping_track","$tno",2); - - $on =~ s/\//_/g; - - say "\ncdparanoia -d $device $tno $on.wav\n" if $dryrun; - system("cdparanoia -d $device $tno \"$on.wav\" >/dev/null 2>&1") if not $dryrun; - - if ($to !~ /wav/i) { - - push(@file, "$on.wav"); - tag_track($tno); - proc_input(); - clear_tag_hash(); - undef(@file); - unlink("$on.wav") if not $dryrun; - pnotice("removed_tmp","$on.wav",2) if $verbose; - - } -} - -# rip selected tracks or all from disc -sub proc_cd { - - perror("no_app","cdparanoia") if not `which cdparanoia 2>/dev/null`; - - query_disc(); - get_cddb_config(); - - my $total_tracks = get_total_tracks(); - - if ($rip eq "all") { - - if ($config{USE_CDDB} ne 1) { - - for(my $i=1;$i<=$total_tracks;$i++) { - rip_cd($i, $i); - } - - } elsif ($config{USE_CDDB} eq 1) { - - my $n = 1; - - foreach my $i (@cdtrack) { - - my $out_string = $nscheme; - - chomp($cdtrack[$n-1]); - - $out_string =~ s/%ar/$cd{artist}/; - $out_string =~ s/%ti/$cdtrack[$n-1]/; - $out_string =~ s/%tr/$n/; - $out_string =~ s/%ab/$cd{title}/; - $out_string =~ s/%yr/$cd{year}/; - - rip_cd($out_string, $n); - - ++$n; - } - } - - } else { - - my @tracks = split(/,/, $rip); - - foreach my $i (@tracks) { - - next if $i > $total_tracks or $i < 1; - - my $out_string = $nscheme; - - $out_string =~ s/%ar/$cd{artist}/; - $out_string =~ s/%ti/$cdtrack[$i-1]/; - $out_string =~ s/%tr/$i/; - $out_string =~ s/%ab/$cd{title}/; - $out_string =~ s/%yr/$cd{year}/; - - rip_cd($out_string, $i) if $config{USE_CDDB} == 1; - rip_cd($i, $i) if $config{USE_CDDB} == 0; - } - } -} - -# get/print cddb information from disc -sub cdinfo { - - query_disc(); - get_cddb_config(); - - say "$name - $version\n"; - - say "Artist = $cd{artist}"; - say "Album = $cd{title}"; - say "Genre = $cd{genre}"; - say "Tracks = $cd{tno}"; - say "Year = $cd{year}\n"; - - my $n = 1; - - foreach (@cdtrack) { - say "Track $n: $_"; - ++$n; - } - - exit(0); -} - -# version / license information -sub version { - -say " -$name - $version - -Copyright (C) 2005-2017 Philip Lyons - -This is free software. You may redistribute copies of it under the terms of -the GNU General Public License . -There is NO WARRANTY, to the extent permitted by law. -"; - -} - -# help & longhelp menu -sub help_menu { - -say "\n$name - $version"; - -say " --t, --to $lang{to} --r, --recursive $lang{recursive} --p, --preserve $lang{preserve} --f, --formats $lang{formats} --o, --only $lang{only} --k, --keep $lang{keep} --j, --jobs $lang{jobs} --h, --help $lang{help} --l, --longhelp $lang{longhelp} --v, --verbose $lang{verbose} -"; - -say "$lang{user_opts} - ---defopts $lang{defopts} ---eopts $lang{eopts} ---dopts $lang{dopts} ---nopts $lang{nopts} ---outfile $lang{outfile} ---outdir $lang{outdir} ---dryrun $lang{dryrun} ---overwrite $lang{overwrited} ---normalize $lang{normalize} ---delete $lang{delete} ---encoder $lang{encoder} ---decoder $lang{decoder} ---version $lang{version} - -$lang{enc_opts} - ---bitrate $lang{bitrate} ---freq $lang{freq} ---channels $lang{channels} ---effect $lang{effect} ---fcomp $lang{fcomp} ---acomp $lang{acomp} ---oggqual $lang{oggqual} ---spxqual $lang{spxqual} ---aacqual $lang{aacqual} ---mpcqual $lang{mpcqual} ---ofmode $lang{ofmode} ---ofopt $lang{ofopt} ---bratio $lang{bratio} ---bquanl $lang{bquanl} ---bpsize $lang{bpsize} - -$lang{tag_opts} - ---artist $lang{artist} ---title $lang{title} ---track $lang{track} ---year $lang{year} ---album $lang{album} ---genre $lang{genre} ---comment $lang{comment} ---taginfo $lang{taginfo} - -$lang{tag_usage} - -$lang{rip_opts} - ---rip $lang{rip} ---nocddb $lang{nocddb} ---noinput $lang{noinput} ---nscheme $lang{nscheme} ---cdinfo $lang{cdinfo} ---device $lang{device} - -$lang{rip_usage}" if $longhelp; - -say "\n$lang{usage}\n"; - -} - -sub load_module { - my ($file) = @_; - my $return; - unless($return = do $file) { - perror("opening_file","$file: $@ $!") if $@ or !defined($return) or not !$return; - } -} - -sub import_module { - my ($format_ref) = @_; - my $format_name=$format_ref->{NAME}; - $run{$format_name} = $format_ref; -} - -# load all user modules -sub load_user_modules { - my @imported_mods; - opendir(DIR, "$mod_dir") or perror("opening_dir","$mod_dir: $!"); - foreach (readdir(DIR)) { - load_module("$mod_dir/$_") if $_ !~ /^\./; - push(@imported_mods, $_) if $_ !~ /^\./; - } - closedir(DIR); - say "$lang{imported} @imported_mods"; -} - -# place files/directories in their respective arrays -if (@ARGV) { - foreach (@ARGV) { - if (-f $_) { push(@file,$_); print "$lang{debug} adding $_ to \@file\n" if $debug == 1; } - elsif (-d $_) { push(@dir, $_); print "$lang{debug} adding $_ to \@dir\n" if $debug == 1; } - else { perror("no_infile","$_"); } - } -} - -load_user_modules() if $config{IMPORTM} == 1; - -if ($to and @ARGV and not $rip) { proc_input(); } - -elsif ($to and $rip) { proc_cd(); } -elsif ($my_encoder and not $to) { show_encoders(); } -elsif ($my_decoder and not $to) { show_decoders(); } -elsif ($verinfo) { version(); } -elsif ($longhelp) { help_menu(); } -elsif ($formats) { show_formats(); } -elsif ($cdinfo) { cdinfo(); } -elsif ($taginfo and not $to) { show_taginfo(); } -elsif ($title or $track or $artist or $album or $comment or $year or $genre) { write_user_tags(); } - -else { help_menu(); } - -__END__ - -=head1 NAME - -pacpl - Perl Audio Converter, a multi purpose converter/ripper/tagger - -=head1 SYNOPSIS - -pacpl --to [file(s)/directory(s)] - -=head1 DESCRIPTION - -Perl Audio Converter - -A Linux CLI tool for converting multiple audio types from one format to another. - -It supports the following audio formats: - -======================================== - -3G2, 3GP, 8SVX, AAC, AC3, ADTS, AIFF, AL, AMB, AMR, APE, AU, -AVR, BONK, CAF, CDR, CVU, DAT, DTS, DVMS, F32, F64, FAP, FLA, -FLAC, FSSD, GSRT, HCOM, IMA, IRCAM, LA, MAT, MAUD, MAT4, MAT5, -M4A, MP2, MP3, MP4, MPC, MPP, NIST, OFF, OFR, OFS, OPUS, OGA, -OGG, PAF, PRC, PVF, RA, RAM, RAW, RF64, SD2, SF, SHN, SMP, SND, -SOU, SPX, SRN, TAK, TTA, TXW, VOC, VMS, VQF, W64, WAV, WMA, -and WV. - -It can also extract audio from the following video extensions: - -============================================================== - -RM, RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGM, OGV, QT, VCD, -SVCD, M4V, NSV, NUV, PSP, SMK, VOB, FLV, WEBM and WMV. - -Parallel Processing, a CD ripping function with CDDB support, batch conversion, -tag preservation for most supported formats, independent tag reading & writing, -service menus for KDE Dolphin/Konqueror, GNOME Nautilus script, and action -scripts for Nemo/Thunar are also provided. - -=head1 OPTIONS - -B<-t, --to> I - -set encode format for the input file(s) or directory(ies). you can see a -complete list of supported encode formats by using the B<--formats> option. - -B<-r, --recursive> - -recursively scan and convert input folder(s) to destination format. - -B<-p, --preserve> - -when recursively converting a directory, preserve the input folders directory -structure in the specified output directory. such as: - -pacpl --to ogg -r -p /home/mp3s --outdir /home/oggs - -in the example above, let's assume the directory structure was: - -=over 21 - -=item /home/mp3s/Alternative - -=item /home/mp3s/Alternative/New - -=item /home/mp3s/Rap - -=item /home/mp3s/Country - -=item /home/mp3s/Techno/ - -=back - -the output directory will now contain: - -=over 4 - -=item /home/oggs/Alternative - -=item /home/oggs/Alternative/New - -=item /home/oggs/Rap - -=item /home/oggs/Country - -=item /home/oggs/Techno - -=back - -with all files in each sub-folder converted to ogg. - -B<-o, --only> I - -only convert files matching extension. this option is useful when you have -a directory or batch of files with mixed audio types and only need to -convert one specific type. - -B<-k, --keep> - -do not re-encode files with extensions matching the destination extension. -instead...copy them to the output folder, or skip to the next file. - -B<-j, --jobs> - -number of simultanious jobs to run at once. the default limit -is set to 4 in pacpl.conf. You can modify this value on the fly -using --jobs= or set it perminately in the configuration file - -=over 4 - -=item B<-f, --formats> show a list of supported encode/decode formats. - -=item B<-h, --help> show the short help menu. - -=item B<-l, --longhelp> display the complete list of options. - -=item B<--version> show version and licensing information. - -=back - -=head1 USER OPTIONS - -B<--defopts> I<1/0> - -to turn off default encoder options use --defopts 0. this option gives you -more control when using the --eopts command. - -defopts is set to 1 by default. you can also toggle this option in -/etc/pacpl/pacpl.conf. - -B<--eopts> I - -this option allows you to use encoder options not implemented by pacpl. -an example would be: - -pacpl --to mp4 --eopts="-c 44100 -I 1,2" YourFile.mp3 - -B<--dopts> I - -this option allows you to use decoder options not implemented by pacpl. -an example would be: - -pacpl --to mpc --dopts="--start 60" YourFile.ogg - -B<--outfile> I - -set the output file name to I. - -B<--outdir> I - -place all encoded files in I. - -B<--dryrun> - -show what would be done without actually converting anything. this is a -good way to trouble shoot, or to see what would be done without actually -touching your files. - -B<--overwrite> - -replace the output file if it already exists. - -B<--normalize> - -adjusts volume levels of audio files. - -B<--nopts> I - -this allows you to specify normalize options not implemented by pacpl - -B<--delete> - -remove source/input file after the conversion process has finished. - -B<--encoder> I - -specify an alternate encoder for the selected output file(s) - -you can see a list of supported encoders by using the following: - -pacpl --encoder I - -B<--decoder> I - -specify an alternate decoder for the selected input file(s) - -you can see a list of supported decoders by using the following: - -pacpl --decoder I - -B<-v, --verbose> - -show detailed information about the encoding process and what's actually -being done. - -=head1 ENCODER OPTIONS - -B<--bitrate> I - -set the bitrate to I. default is 128. this option does not apply -to all formats. - -B<--freq> I - -set the frequency to I. default is 44100. this option does not apply -to all formats. - -B<--channels> I - -set the number of audio channels in the output file to I. this option -does not apply to all formats. - -B<--effect> I - -see B(1). this option only applies to the following: - -AIFF, AU, SND, RAW, VOC, SMP, AVR, and CDR - -B<--fcomp> I - -set flac compression level to I. fastest -0, highest -8, default -2 - -=over 4 - -=item 1 = fast - -=item 2 = simple - -=item 3 = medium (default) - -=item 4 = high - -=item 5 = extra high, - -=back - -B<--acomp> I - -set ape compression level to I. - -=over 4 - -=item 1000 = fast - -=item 2000 = normal - -=item 3000 = high (default) - -=item 4000 = extra high - -=item 5000 = insane - -=back - -B<--oggqual> I - -set ogg quality level to I. -1, very low and 10 very high, default 3 - -B<--spxqual> I - -set speex quality level to I. 0-10, default 8 (use --bitrate when using ffmpeg/avconv as encoder) - -B<--aacqual> I - -set aac, mp4, m4a, or m4b quality level to I. default 300 - -B<--mpcqual> I - -set mpc/mpp quality level to I. - -=over 4 - -=item thumb low quality/internet, (typ. 58... 86 kbps) - -=item radio medium (MP3) quality, (typ. 112...152 kbps - default) - -=item standard high quality (dflt), (typ. 142...184 kbps) - -=item xtreme extreme high quality, (typ. 168...212 kbps) - -=back - -B<--ofmode> I - -set off/ofr/ofs compression mode to I. normal, extra, and extranew modes -are recommended for general use. available options are: - -=over 4 - -=item fast - -=item normal (default) - -=item high - -=item extra - -=item best - -=item highnew - -=item extranew - -=item bestnew - -=back - -B<--ofopt> I - -set off/ofr/ofs optimization level to I. - -specify the optimization level in the engine. In order to achieve -optimal compression at all sample types, sample rates, and audio -content, the core compression engine has the possibility to find the -optimal values for its parameters, at the cost of slightly increased -compression time only. The default recommended value is fast. -do not use normal (or even high or best) for this parameter unless -encoding time does not matter and you want to obtain the smallest -possible file for a given compression mode. The difference between -the optimize levels fast and best (which is up to three times slower -than fast) is very small, generally under 0.05%, but may be also -larger in some rare cases. Note that the none optimize level is -forced by the encoder to fast optimize level for the extra, best, -highnew, extranew, and bestnew modes. - -available options are: - -=over 4 - -=item none - -=item fast (default) - -=item normal - -=item high - -=item best - -=back - -B<--bratio> I - -set bonk down sampling ratio. default 2 - -B<--bquanl> I - -set bonk quantanization level. default 1.0 - -B<--bpsize> I - -set bonk predictor size. default 128 - -=head1 TAGGING OPTIONS - -B - -tagging outside of the encoding process can only be performed on the -following audio types: - -=over 4 - -=item MP3 - -=item OGG - -=item FLA - -=item FLAC - -=back - -B<--artist> I - -set artist information to I. - -B<--title> I - -set title information to I. - -B<--track> I - -set track information to I. - -B<--year> I - -set year/date information to I. - -B<--album> I - -set album information to I. - -B<--genre> I - -set genre information to I. - -B<--comment> I - -set comment information to I. - -B<--taginfo> I - -show tagging information for I. multiple files can be specified -at once. - -=head1 RIPPING OPTIONS - -B<--rip> I - -rip selected tracks separated by comma or all from current disc. - -=over 4 - -=item pacpl --rip all --to flac - -=item pacpl --rip 1,3,9,15 --to flac - -=back - -B<--nocddb> - -disable cddb. use this option if you do not want tagging based on cddb. - -B<--noinput> - -disable cddb interactivity. this is enabled by default. - -B<--nscheme> I - -set naming scheme to I. default is %ar - %ti - -available options are: - -=over 4 - -=item %ar = artist - -=item %ti = song title - -=item %tr = track - -=item %yr = year - -=item %ab = album - -=back - -B --nscheme="(%tr)-%ti" - -B<--device> I - -set device to I. default is /dev/dvd - -B<--cdinfo> - -show cddb information for current disc. - -=head1 SEE ALSO - -=over 4 - -=item B(1) B(1) B(1) B(1) B(1) - -=item B(1) B(1) B(1) B(1) B(1) - -=item B(1) B(1) B(1) B(1) - -=item B(1) B(1) B(1) - -=item B(1) B(1) B(1) B(1) - -=item B(1) B(1) - -=back - -=head1 BUGS - -Report all bugs to Philip Lyons (vorzox@gmail.com) - -=head1 LICENSING - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - -=head1 AUTHOR - -Copyright (C) 2005-2017 Philip Lyons (vorzox@gmail.com) diff --git a/pacpl.in b/pacpl.in new file mode 100755 index 0000000..3690069 --- /dev/null +++ b/pacpl.in @@ -0,0 +1,4034 @@ +#!/usr/bin/perl +# +# Perl Audio Converter +# +# Copyright (C) 2005-2017 Philip Lyons (vorzox@gmail.com) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +use strict; +use warnings; +use Getopt::Long; +use File::Basename; +use File::Find; +use File::Spec::Functions qw(rel2abs); +use Parallel::ForkManager; + +use feature qw(switch say); + +no if $] >= 5.018, warnings => "experimental::smartmatch"; + +# Tagging modules +use MP3::Tag; +use Audio::FLAC::Header; +use Audio::Scan; + +# CDDB module +use CDDB_get qw(get_cddb); + +# non-encoder/decoder related options +my +( + $to, + $recursive, + $preserve, + $rip, + $help, + $longhelp, + $verbose, + $verinfo, + $dryrun, + $delete, + $keep, + $overwrite, + $formats, + $topdir, + $only, + $first_run, + + @file, + @dir, + + %run, + %lang, +); + +my $silent = "> /dev/null 2>&1"; + +# tagging options +my +( + $title, + $track, + $artist, + $album, + $comment, + $year, + $genre, + $taginfo, +); + +# name, version & icon information +my $name = "Perl Audio Converter"; +my $version = "5.1.0"; +my $icon_path = "/etc/pacpl/pacpl.png"; + +# If these options are toggled, messages/errors will be displayed +# via kdialog or zenity/notify-send (depending on environment) +my ($gui, $kde, $gnome); + +# Debugging (for developer use only) +my $debug = 0; + +# default configuration. +my %config = ( + + IMPORTM => 0, + JOBS => 4, + + DEFOPTS => 1, + EOPTS => '', + DOPTS => '', + NOPTS => '', + + BITRATE => 128, + FREQ => 44100, + CHANNELS => 2, + EFFECT => '', + FCOMP => 2, + PCOMP => 3, + ACOMP => 3000, + OGGQUAL => 3, + SPXQUAL => 8, + AACQUAL => 100, + MPCQUAL => 'radio', + OFMODE => 'normal', + OFOPT => 'fast', + BRATIO => 2, + BQUANL => 1.0, + BPSIZE => 128, + + USE_CDDB => 1, + CDDB_HOST => 'freedb.freedb.org', + CDDB_PORT => 8880, + CDDB_MODE => 'cddb', + CDDB_INPUT => 1, + DEVICE => '/dev/dvd', + NSCHEME => '%ar - %ti', + + ZEN_DIR => 1, + ZEN_OPTS => 1, + KDE_DIR => 1, + KDE_OPTS => 1, + + ); + +# location of configuration file +my $conf_path = "@sysconfdir@/pacpl"; +my $po_dir = "@pkgdatadir@/locale"; +my $mod_dir = "$conf_path/modules"; + +my $conf_file; + +# load the appropriate locale file +load_lang(); + +# try to load configuration file in this order... +my @conf_locations = ( + "$ENV{HOME}/.pacplrc", # Local + "$conf_path/pacpl.conf", # Global + "$ENV{PWD}/pacpl.conf", # Current Directory + ); + +# try to load conf file from one of the above locations +foreach my $i (@conf_locations) { + if (not $conf_file and -e $i) { + $conf_file = $i; + say "$lang{debug} $lang{loaded_config} $conf_file" if $debug == 1; + } +} + +say "$lang{no_config}" if not $conf_file; + +# open config file. +if ($conf_file and -e $conf_file) { + + open(CONF, "$conf_file") or die "$lang{opening_file} $conf_file - $!\n"; + + my @conf_opts = ; + @conf_opts = grep(!/^#|^$/, @conf_opts); + + close(CONF); + + # now read config file options and change default values accordingly. + foreach (@conf_opts) { + chomp; + my ($k, $v) = split(/\s*=\s*/); + $config{$k} = $v if exists($config{$k}) and $v; + say "$lang{debug} $k = $v" if $debug == 1 and exists($config{$k}); + } +} + +my $codecs_conf = "$conf_path/codecs.conf"; + +# set default encoders/decoders +sub load_codecs { + + open(CODECS, "$codecs_conf") or die "$lang{opening_file} $codecs_conf - $!\n"; + + my @codecs = ; + @codecs = grep(!/^$|^#/, @codecs); + @codecs = grep(s/^\s*|\s*$//, @codecs); + + close(CODECS); + + foreach (@codecs) { + + chomp; + my ($k, $v) = split(/\s*=\s*/); + my ($e, $d) = split(/,/, $v); + + $k =~ tr/A-Z/a-z/; + + $run{$k}{DEFAULT_ENCODER} = $e if (exists($run{$k}{DEFAULT_ENCODER})); + $run{$k}{DEFAULT_DECODER} = $d if (exists($run{$k}{DEFAULT_DECODER})); + } +} + +# load po file and store in %lang hash +sub load_lang { + + my $po = "$po_dir/$ENV{LANG}.po"; + $po =~ s/\.UTF-8//i if $po =~ /UTF-8/i; + $po =~ s/\.utf8//i if $po =~ /utf8/i; + $po =~ s/_\w+// if not -e $po; + $po = "$po_dir/en_US.po" if not -e $po; + + open(LANG, "< $po") or die "error: could not open - $po\n$!\n"; + + my @data = ; + @data = grep(!/^#|^$/, @data); + + close(LANG); + + foreach (@data) { + chomp; + s/=/__EQ__/; + my ($k, $v) = split(/\s*__EQ__\s*/, $_); + $lang{$k} = $v; + } + +} + +my $banner = 1; + +# print error messages +sub perror { + my ($key, $msg) = @_; + say "$name - $version\n"; + say "$lang{error}: $lang{$key} $msg" . "\n"; + system("kdialog --title \"$name\" --error \"$lang{error}: $lang{$key} $msg\" &") if $gui and $kde; + system("zenity --title \"$name\" --error \"$lang{error}: $lang{$key} $msg\" &") if $gui and $gnome; + die "$lang{seek_help}\n"; +} + +# print notices/warnings +sub pnotice { + + my ($key, $msg, $nm) = @_; + + say "$name - $version\n" if $banner == 1; + print "$lang{$key} $msg"; + say '' if $nm == 1; + say "\n" if $nm == 2; + + $banner = 0; +} + +# defaults for user variables. +my $outfile; +my $outdir; +my $defopts = $config{DEFOPTS}; +my $eopts = $config{EOPTS}; +my $dopts = $config{DOPTS}; +my $nopts = $config{NOPTS}; +my $normalize = $config{NOPTS}; +my $bitrate = $config{BITRATE}; +my $freq = $config{FREQ}; +my $channels = $config{CHANNELS}; +my $effect = $config{EFFECT}; +my $fcomp = $config{FCOMP}; +my $acomp = $config{ACOMP}; +my $oggqual = $config{OGGQUAL}; +my $spxqual = $config{SPXQUAL}; +my $aacqual = $config{AACQUAL}; +my $mpcqual = $config{MPCQUAL}; +my $ofmode = $config{OFMODE}; +my $ofopt = $config{OFOPT}; +my $bratio = $config{BRATIO}; +my $bquanl = $config{BQUANL}; +my $bpsize = $config{BPSIZE}; + +my $cdinfo; +my $nocddb; +my $noinput; +my $device = $config{DEVICE}; +my $nscheme = $config{NSCHEME}; +my $my_encoder; +my $my_decoder; +my $encoder; +my $decoder; + +my $jobs = $config{JOBS}; + +# command line options +GetOptions +( + 't|to=s' => \$to, + 'r|recursive' => \$recursive, + 'p|preserve' => \$preserve, + 'h|help' => \$help, + 'l|longhelp' => \$longhelp, + 'v|verbose' => \$verbose, + 'f|formats' => \$formats, + 'o|only=s' => \$only, + 'k|keep' => \$keep, + 'j|jobs=n' => \$jobs, + + 'taginfo' => \$taginfo, + + 'version' => \$verinfo, + 'dryrun' => \$dryrun, + 'delete' => \$delete, + 'overwrite' => \$overwrite, + 'normalize' => \$normalize, + 'encoder=s' => \$my_encoder, + 'decoder=s' => \$my_decoder, + + 'title=s' => \$title, + 'track=n' => \$track, + 'artist=s' => \$artist, + 'album=s' => \$album, + 'comment=s' => \$comment, + 'year=n' => \$year, + 'genre=s' => \$genre, + + 'gui' => \$gui, + 'kde' => \$kde, + 'gnome' => \$gnome, + + 'eopts=s' => \$eopts, + 'dopts=s' => \$dopts, + 'defopts=n' => \$defopts, + 'nopts=s' => \$nopts, + 'outfile=s' => \$outfile, + 'outdir=s' => \$outdir, + + 'bitrate=n' => \$bitrate, + 'freq=n' => \$freq, + 'channels=n' => \$channels, + 'effect=s' => \$effect, + 'fcomp=n' => \$fcomp, + 'acomp=n' => \$acomp, + 'oggqual=n' => \$oggqual, + 'spxqual=n' => \$spxqual, + 'aacqual=n' => \$aacqual, + 'mpcqual=s' => \$mpcqual, + 'ofmode=s' => \$ofmode, + 'ofopt=s' => \$ofopt, + 'bratio=n' => \$bratio, + 'bquanl=n' => \$bquanl, + 'bpsize=n' => \$bpsize, + + 'rip=s' => \$rip, + 'nocddb' => \$nocddb, + 'noinput' => \$noinput, + 'device=s' => \$device, + 'nscheme=s' => \$nscheme, + 'cdinfo' => \$cdinfo, +); + +if (defined($preserve) && !defined($outdir)) { + die "You must specify --outdir when you use --preserve option. See man page.\n"; +} + +$silent = '' if $verbose; + +my $opts; +my $total_converted = 0; +my $total_failed = 0; + +# Initialize the fork manager with a count set through pacpl.conf or via the command line +my $pm = Parallel::ForkManager->new($jobs); + +# conversion options. when adding a new format, +# wild card %i = input file and %o = output file +%run = ( + + '3g2' => { + + DEFAULT_ENCODER => 'ffmpeg', + DEFAULT_DECODER => 'ffmpeg', + + ENCODER => { + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "-ar 8000 -ac 1" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { NONE => 0, }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ar 8000 -ac 1" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { NONE => 0, }, + }, + + }, + + DECODER => { + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "-y -i %o $dopts %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "-y -i %o %dopts %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + + }, + + '3gp' => { + + DEFAULT_ENCODER => 'ffmpeg', + DEFAULT_DECODER => 'ffmpeg', + + ENCODER => { + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "-ar 8000 -ac 1" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { NONE => 0, }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ar 8000 -ac 1" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { NONE => 0, }, + }, + + }, + + DECODER => { + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "-y -i %o $dopts %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "-y -i %o %dopts %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + + }, + + aac => { + + DEFAULT_ENCODER => "faac", + DEFAULT_DECODER => "faad", + + ENCODER => { + faac => { + NAME => "faac", + ESTR => sub { + $opts = "-q $aacqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i -o %o" + }, + PROMPT => { AACQUAL => 1 }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 1, + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + faad => { + NAME => "faad", + DSTR => sub { "$dopts -o %i %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + ac3 => { + + DEFAULT_ENCODER => "ffmpeg", + DEFAULT_DECODER => "ffmpeg", + + ENCODER => { + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => "avconv", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + aften => { + NAME => "aften", + ESTR => sub { + $opts = "-v 1 -q $bitrate -2" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + + PROMPT => { + BITRATE => 1, + }, + }, + + }, + + DECODER => { + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => "avconv", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + adts => { + + DEFAULT_ENCODER => 'ffmpeg', + DEFAULT_DECODER => 'ffmpeg', + + ENCODER => { + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libfaac" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $opts $eopts -strict -2 %o" + }, + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libfaac" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $opts $eopts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + ffmpeg => { + NAME => 'ffmpeg', + DSTR => "$dopts -y -i %i %o", + }, + + avconv => { + NAME => 'avconv', + DSTR => "$dopts -y -i %i %o", + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + ape => { + + DEFAULT_ENCODER => "mac", + DEFAULT_DECODER => "mac", + + ENCODER => { + mac => { + NAME => "mac", + ESTR => sub { + $opts = "-c$acomp" if $defopts == 1; + $opts = '' if $defopts == 0; + "%i %o $opts $eopts" + }, + + PROMPT => { ACOMP => 1 }, + }, + }, + + DECODER => { + mac => { + NAME => "mac", + DSTR => sub { "%i %o -d $dopts" }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "-y -i %i %dopts %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "-y -i %i $dopts %o" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 0, + MODULE => "Audio::Scan", + }, + }, + + amr => { + + DEFAULT_ENCODER => "ffmpeg", + DEFAULT_DECODER => "ffmpeg", + + ENCODER => { + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ar 8000 -ac 1" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { NONE => 0, }, + }, + + avconv => { + NAME => "avconv", + ESTR => sub { + $opts = "-ar 8000 -ac 1" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { NONE => 0, }, + }, + + }, + + DECODER => { + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "-y -i %i $dopts %o" }, + }, + + avconv => { + NAME => 'ffmpeg', + DSTR => sub { "-y -i %i %dopts %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + + }, + + bonk => { + + DEFAULT_ENCODER => "bonk", + DEFAULT_DECODER => "bonk", + + ENCODER => { + bonk => { + NAME => "bonk", + ESTR => sub { + $opts = "-q $bquanl -b $bratio -s $bpsize" if $defopts == 1; + $opts = '' if $defopts == 0; + "encode $eopts $opts %i -o %o" + }, + + PROMPT => { + BQUANL => 1, + BRATIO => 1, + BPSIZE => 1, + }, + }, + }, + + DECODER => { + bonk => { + NAME => "bonk", + DSTR => sub { "decode %i -o %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + dts => { + + DEFAULT_ENCODER => 'ffmpeg', + DEFAULT_DECODER => 'ffmpeg', + + ENCODER => { + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = '' if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $opts $eopts -strict -2 -codec:a libfaac %o" + }, + + PROMPT => { NONE => 0, }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = '' if $defopts == 1 or $defopts == 0; + "-y -i %i $opts $eopts -codec:a libfaac %o", + }, + PROMPT => { NONE => 0, }, + }, + + dcaenc => { + NAME => 'dcaenc', + ESTR => sub { + $opts = "$bitrate" if $defopts == 0; + $opts = '' if $defopts == 1; + "%i %o $opts" + }, + + PROMPT => { NONE => 0, }, + }, + }, + + DECODER => { + ffmpeg => { + NAME => 'ffmpeg', + DSTR => "$dopts -y -i %i %o", + }, + + avconv => { + NAME => 'avconv', + DSTR => "$dopts -y -i %i %o", + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + flac => { + + DEFAULT_ENCODER => "flac", + DEFAULT_DECODER => "flac", + + ENCODER => { + flac => { + NAME => "flac", + ESTR => sub { + $opts = "-$fcomp" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts -f $opts %i -o %o" + }, + PROMPT => { FCOMP => 1 }, + }, + + flake => { + NAME => "flake", + ESTR => sub { + $opts = "-$fcomp" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i -o %o" + }, + PROMPT => { FCOMP => 1 }, + }, + + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 1; + "-y -i %i $eopts $opts %o" + }, + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + flac => { + NAME => "flac", + DSTR => sub { "$dopts -f -d %i -o %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::FLAC::Header", + }, + }, + + fla => { + + DEFAULT_ENCODER => "flac", + DEFAULT_DECODER => "flac", + + ENCODER => { + flac => { + NAME => "flac", + ESTR => sub { + $opts = "-$fcomp" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts -f $opts %i -o %o" + }, + PROMPT => { FCOMP => 1 }, + }, + }, + + DECODER => { + flac => { + NAME => "flac", + DSTR => sub { "$dopts -f -d %i -o %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::FLAC::Header", + }, + }, + + la => { + + DEFAULT_ENCODER => "la", + DEFAULT_DECODER => "la", + + ENCODER => { + la => { + NAME => "la", + ESTR => sub { "-overwrite $eopts %i %o" }, + PROMPT => { NONE => 0, }, + }, + }, + + DECODER => { + la => { + NAME => "la", + ESTR => sub { "-console $dopts %i > %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + mp2 => { + + DEFAULT_ENCODER => "ffmpeg", + DEFAULT_DECODER => "ffmpeg", + + ENCODER => { + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + toolame => { + NAME => 'toolame', + ESTR => sub { + $opts = "-b $bitrate" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + + PROMPT => { + BITRATE => 1, + }, + }, + + twolame => { + NAME => 'twolame', + ESTR => sub { + $opts = "-b $bitrate -s $freq" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + }, + }, + + sox => { + NAME => 'sox', + ESTR => sub { + $opts = "-c $channels -r $bitrate" if $defopts == 1; + $opts = '' if $defopts == 0; + "%i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => "$dopts -y -i %i %o", + }, + + avconv => { + NAME => 'avconv', + DSTR => "%dopts -y -i %i %o", + }, + + mplayer => { + NAME => 'mplayer', + DSTR => "-vc null -vo null -ao pcm:file=%o %i", + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + mp3 => { + + DEFAULT_ENCODER => "lame", + DEFAULT_DECODER => "lame", + + ENCODER => { + lame => { + NAME => "lame", + ESTR => sub { + $opts = "--resample $freq -b $bitrate -h" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + }, + }, + + bladeenc => { + NAME => "bladeenc", + ESTR => sub { + $opts = "-br $bitrate" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + PROMPT => { BITRATE => 1 }, + }, + + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts -y -i %i $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + sox => { + NAME => "sox", + ESTR => sub { + $opts = "-r $freq -c $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "%i $eopts $opts %o" + }, + + PROMPT => { + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + lame => { + NAME => "lame", + DSTR => sub { "$dopts --decode %i %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %O" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + + sox => { + NAME => "sox", + DSTR => sub { "%i $dopts %o" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "MP3::Tag", + }, + }, + + mp3hd => { + + DEFAULT_ENCODER => "mp3hdEncoder", + DEFAULT_DECODER => "mp3hdDecoder", + + ENCODER => { + mp3hdEncoder => { + NAME => "mp3hdEncoder", + ESTR => sub { + $opts = "-br $bitrate" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts -if %i -of %o" + }, + PROMPT => { BITRATE => 1 }, + }, + }, + + DECODER => { + mp3hdDecoder => { + NAME => "mp3hdDecoder", + DSTR => sub { "$dopts -if %i -of %o" }, + }, + }, + + TAGS => { + WRITE => 1, + READ => 1, + MODULE => "MP3::Tag", + }, + }, + + mp4 => { + + DEFAULT_ENCODER => "faac", + DEFAULT_DECODER => "faad", + + ENCODER => { + + faac => { + NAME => "faac", + ESTR => sub { + $opts = "-q $aacqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts -w $opts %i -o %o" + }, + PROMPT => { AACQUAL => 1 }, + }, + + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PRIMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + + faad => { + NAME => "faad", + DSTR => sub { "$dopts -o %o %i" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::Scan", + }, + }, + + m4a => { + + DEFAULT_ENCODER => "faac", + DEFAULT_DECODER => "faad", + + ENCODER => { + + faac => { + NAME => "faac", + ESTR => sub { + $opts = "-q $aacqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts -w $opts %i -o %o" + }, + PROMPT => { AACQUAL => 1 }, + }, + + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts -y -i %i $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + + faad => { + NAME => "faad", + DSTR => sub { "$dopts -o %o %i" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + + }, + + ESTR => sub { "$eopts -w -q $aacqual %i -o %o" }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::Scan", + }, + }, + + m4b => { + + DEFAULT_ENCODER => undef, + DEFAULT_DECODER => "faad", + + DECODER => { + faad => { + NAME => "faad", + DSTR => sub { "$dopts -o %o %i" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "$dopts -vc null -vo null -ao pcm:file=%o %i" }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 1, + MODULE => undef, + }, + }, + + mpc => { + + DEFAULT_ENCODER => "mpcenc", + DEFAULT_DECODER => "mpcdec", + + ENCODER => { + + mpcenc => { + NAME => "mpcenc", + ESTR => sub { + $opts = "--$mpcqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts --overwrite $opts %i %o" + }, + PROMPT => { MPCQUAL => 1 }, + }, + }, + + DECODER => { + + mpcdec => { + NAME => "mpcdec", + DSTR => sub { "$dopts %i %o" }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::Scan", + }, + + PROMPT => { + MPCQUAL => 1, + }, + }, + + mpp => { + + DEFAULT_ENCODER => "mpcenc", + DEFAULT_DECODER => "mpcdec", + + ENCODER => { + + mpcenc => { + NAME => "mpcenc", + ESTR => sub { + $opts = "--$mpcqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts --overwrite $opts %i %o" + }, + PROMPT => { MPCQUAL => 1 }, + }, + }, + + DECODER => { + + mpcdec => { + NAME => "mpcdec", + DSTR => sub { "$dopts %i %o" }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::Scan", + }, + }, + + off => { + DEFAULT_ENCODER => 'off', + DEFAULT_DECODER => 'off', + + ENCODER => { + off => { + NAME => 'off', + ESTR => sub { + $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts --overwrite $opts %i --output %o" + }, + + PROMPT => { + OFMODE => 1, + OFOPT => 1, + }, + }, + }, + + DECODER => { + off => { + NAME => 'off', + DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + ofr => { + + DEFAULT_ENCODER => "ofr", + DEFAULT_DECODER => "ofr", + + ENCODER => { + ofr => { + NAME => "ofr", + ESTR => sub { + $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts --overwrite $opts %i --output %o" + }, + + PROMPT => { + OFMODE => 1, + OFOPT => 1, + }, + }, + }, + + DECODER => { + ofr => { + NAME => "ofr", + DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + ofs => { + + DEFAULT_ENCODER => "ofs", + DEFAULT_DECODER => "ofs", + + ENCODER => { + ofs => { + NAME => "ofs", + ESTR => sub { + $opts = "--mode $ofmode --optimize $ofopt" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts --overwrite $opts %i --output %o" + }, + + PROMPT => { + OFMODE => 1, + OFOPT => 1, + }, + }, + }, + + DECODER => { + ofs => { + NAME => "ofs", + DSTR => sub { "$dopts --overwrite --decode %i --output %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + + oga => { + DEFAULT_ENCODER => 'oggenc', + DEFAULT_DECODER => 'oggdec', + + ENCODER => { + oggenc => { + NAME => 'oggenc', + ESTR => sub { + $opts = "--resample $freq -q $oggqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + PROMPT => { + FREQ => 1, + OGGQUAL => 1, + }, + }, + + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + sox => { + NAME => "sox", + ESTR => sub { + $opts = "-r $freq -c $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "%i $eopts $opts %o" + }, + + PROMPT => { + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + oggdec => { + NAME => "oggdec", + DSTR => sub { "$dopts %i --output %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + + sox => { + NAME => "sox", + DSTR => sub { "%i $dopts %o" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "vorbiscomment", + }, + }, + + ogg => { + + DEFAULT_ENCODER => "oggenc", + DEFAULT_DECODER => "oggdec", + + ENCODER => { + oggenc => { + NAME => "oggenc", + ESTR => sub { + $opts = "--resample $freq -q $oggqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i -o %o" + }, + + PROMPT => { + FREQ => 1, + OGGQUAL => 1, + }, + }, + + ffmpeg => { + NAME => "ffmpeg", + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ab $bitrate.k -ar $freq -ac $channels -codec:a libvorbis" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + FREQ => 1, + CHANNELS => 1, + }, + }, + + sox => { + NAME => "sox", + ESTR => sub { + $opts = "-r $freq -c $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "%i $eopts $opts %o" + }, + + PROMPT => { + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + oggdec => { + NAME => "oggdec", + DSTR => sub { "$dopts %i --output %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + + sox => { + NAME => "sox", + DSTR => sub { "%i $dopts %o" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "vorbiscomment", + }, + }, + + opus => { + + DEFAULT_ENCODER => "opusenc", + DEFAULT_DECODER => "opusdec", + + ENCODER => { + opusenc => { + NAME => 'opusenc', + ESTR => sub { + $opts = "--bitrate $bitrate" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + PROMTP => { + BITRATE => 1, + }, + }, + }, + + DECODER => { + opusdec => { + NAME => 'opusdec', + DSTR => sub { "--force-wav %i %o" }, + PROMPT => { NONE => 0 }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + raw => { + + DEFAULT_ENCODER => "sox", + DEFAULT_DECODER => "sox", + + ENCODER => { + sox => { + NAME => 'sox', + ESTR => sub { + $opts = "-r $freq -c $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "%i $opts $eopts %o $effect" + }, + + PROMPT => { + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + sox => { + NAME => 'sox', + DSTR => sub { "-w -s -r $freq -c $channels $dopts %i %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + rm => { + + DEFAULT_ENCODER => 'ffmpeg', + DEFAULT_DECODER => 'ffmpeg', + + ENCODER => { + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "-ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + FREQ => 1, + CHANNELS => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "-ar $freq -ac $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + FREQ => 1, + CHANNELS => 1, + }, + }, + }, + + DECODER => { + mplayer => { + NAME => 'mplayer', + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + shn => { + + DEFAULT_ENCODER => "shorten", + DEFAULT_DECODER => "shorten", + + ENCODER => { + shorten => { + NAME => "shorten", + ESTR => sub { + $opts = "-c $channels" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + PROMPT => { CHANNELS => 1 }, + }, + }, + + DECODER => { + shorten => { + NAME => "shorten", + DSTR => sub { "-x %i %o" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + spx => { + + DEFAULT_ENCODER => "speexenc", + DEFAULT_DECODER => "speexdec", + + ENCODER => { + speexenc => { + NAME => "speexenc", + ESTR => sub { + $opts = "--quality $spxqual" if $defopts == 1; + $opts = '' if $defopts == 0; + "$eopts $opts %i %o" + }, + PROMPT => { SPXQUAL => 1 }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { + $opts = "--bitrate $bitrate.k" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i %i $eopts $opts %o" + }, + + PROMPT => { + BITRATE => 1, + }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { + $opts = "--bitrate $bitrate.k" if $defopts == 1; + $opts = '' if $defopts == 0; + "-y -i $eopts $opts %o" + }, + PROMPT => { + BITRATE => 1, + }, + }, + }, + + DECODER => { + speexdec => { + NAME => "speexdec", + DSTR => sub { "$dopts %i %o" }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => undef, + }, + }, + + tta => { + + DEFAULT_ENCODER => "ttaenc", + DEFAULT_DECODER => "ttaenc", + + ENCODER => { + ttaenc => { + NAME => "ttaenc", + ESTR => sub { "$eopts -e %i -o %o" }, + PROMPT => { NONE => 0, }, + }, + }, + + DECODER => { + ttaenc => { + NAME => "ttaenc", + DSTR => sub { "$dopts -d %i -o %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + wav => { + + DEFAULT_ENCODER => "mv", + DEFAULT_DECODER => "cp", + + ENCODER => { + mv => { + NAME => "mv", + ESTR => sub { "%i %o" }, + PROMPT => { NONE => 0, }, + }, + }, + + DECODER => { + cp => { + NAME => "cp", + DSTR => sub { "%i %o" }, + } + }, + + TAGS => { + READ => 0, + WRITE => 0, + MODULE => undef, + }, + }, + + wv => { + + DEFAULT_ENCODER => "wavpack", + DEFAULT_DECODER => "wvunpack", + + ENCODER => { + wavpack => { + NAME => "wavpack", + ESTR => sub { "$eopts -h -y %i -o %o" }, + PROMPT => { NONE => 0, }, + }, + + ffmpeg => { + NAME => 'ffmpeg', + ESTR => sub { "-y -i %i $eopts %o" }, + PROMPT => { NONE => 0, }, + }, + + avconv => { + NAME => 'avconv', + ESTR => sub { "-y -i %i $eopts %o" }, + PROMPT => { NONE => 0, }, + }, + }, + + DECODER => { + wvunpack => { + NAME => "wvunpack", + DSTR => sub { "$dopts -y %i -o %o" }, + }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, + }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::Scan", + }, + }, +); + +# supported ffmpeg/avconv formats (decode only) +my @ffmpeg_codecs = ( "mmf", "ra", "wma" ); +my @ffmpeg_forks = ( "avconv", "ffmpeg" ); + +foreach my $fork (@ffmpeg_forks) { + + foreach my $codec (@ffmpeg_codecs) { + + $run{$codec}{DEFAULT_ENCODER} = $fork; + $run{$codec}{DEFAULT_DECODER} = $fork; + $run{$codec}{ENCODER}{$fork}{NAME} = $fork; + $run{$codec}{DECODER}{$fork}{NAME} = $fork; + $run{$codec}{DECODER}{$fork}{DSTR} = sub {"-y %i $dopts %o"}; + $run{$codec}{ENCODER}{$fork}{ESTR} = sub {"-y -i %i $eopts -ab $bitrate.k -ar $freq -ac $channels %o"}; + $run{$codec}{TAGS}{READ} = 0; + $run{$codec}{TAGS}{WRITE} = 0; + $run{$codec}{TAGS}{MODULE} = undef; + } + +} + +# support reading of WMA tags via Audio::Scan +$run{wma}{TAGS}{READ} = 1; +$run{wma}{TAGS}{MODULE} = "Audio::Scan"; + +# supported video to audio types +my @movie_codecs = ( + "rv", "asf", "avi", "divx", + "mkv", "mpg", "mpeg", "mov", + "ogm", "qt", "vcd", "vob", + "wmv", "flv", "svcd", "m4v", + "nsv", "nuv", "psp", "smk", + "ogv", "webm", + + # decode only audio formats + "vqf", "tak", + ); + +foreach (@movie_codecs) { + $run{$_}{DEFAULT_ENCODER} = undef; + $run{$_}{DEFAULT_DECODER} = "ffmpeg"; + $run{$_}{DECODER}{mplayer}{NAME} = "mplayer"; + $run{$_}{DECODER}{ffmpeg}{NAME} = "ffmpeg"; + $run{$_}{DECODER}{mplayer}{DSTR} = sub { "$dopts -vc null -vo null -ao pcm:file=%o %i" }; + $run{$_}{DECODER}{ffmpeg}{DSTR} = sub { "$dopts -i %i %o"; }; + $run{$_}{TAGS}{READ} = 0; + $run{$_}{TAGS}{WRITE} = 0; + $run{$_}{TAGS}{MODULE} = undef; +} + +# supported sndfile-convert formats +my @sndfile = ( + "pvf", "caf", "sf", "paf", "fap", "sd2", + "mat4", "mat5", "mat", "ircam", "w64", "nist", + "rf64", + ); + +foreach (@sndfile) { + + $run{$_}{DEFAULT_ENCODER} = "sndfile-convert"; + $run{$_}{DEFAULT_DECODER} = "sndfile-convert"; + $run{$_}{ENCODER}{"sndfile-convert"}{NAME} = "sndfile-convert"; + $run{$_}{DECODER}{"sndfile-convert"}{NAME} = "sndfile-convert"; + $run{$_}{ENCODER}{"sndfile-convert"}{ESTR} = sub { "$eopts %i %o" }; + $run{$_}{DECODER}{"sndfile-convert"}{DSTR} = sub { "$dopts %i %o" }; + $run{$_}{TAGS}{READ} = 0; + $run{$_}{TAGS}{WRITE} = 0; + $run{$_}{TAGS}{MODULE} = undef; +} + +# supported sox formats +my @sox_codecs = ( + "aiff", "aif", "au", "snd", "voc", + "smp", "avr", "cdr", "8svx", "amb", + "dat", "dvms", "f32", "f64", "fssd", + "gsrt", "hcom", "txw", "vms", "al", + "sou", "ima", "prc", "cvu", + "maud", + ); + +foreach (@sox_codecs) { + + $run{$_}{DEFAULT_ENCODER} = "sox"; + $run{$_}{DEFAULT_DECODER} = "sox"; + $run{$_}{ENCODER}{sox}{NAME} = "sox"; + $run{$_}{DECODER}{sox}{NAME} = "sox"; + $run{$_}{ENCODER}{sox}{ESTR} = sub { "%i -r $freq -c $channels $eopts %o $effect" }; + $run{$_}{DECODER}{sox}{DSTR} = sub { "%i $dopts %o" }; + $run{$_}{TAGS}{READ} = 0; + $run{$_}{TAGS}{WRITE} = 0; + $run{$_}{TAGS}{MODULE} = undef; + + $run{$_}{ENCODER}{sox}{PROMPT}{FREQ} = 1; + $run{$_}{ENCODER}{sox}{PROMPT}{CHANNELS} = 1; + +} + +# load codecs.conf file +load_codecs() if -e $codecs_conf; + +my $out_name = $outfile; +my $out_dir = $outdir; +my $first_message = 1; +my %files; +my $number = 0; + +# process all files and directories +sub proc_input { + + $to =~ tr/A-Z/a-z/; + + perror("bad_input","") unless(exists($run{$to})); + + proc_preserve_dir($dir[0]) if @dir and $preserve; # process recursive directory preservation (sends to proc_files + proc_dirs() if @dir and not $preserve; # process directories including recursively (sends to proc_files) + proc_files() if @file; # process all files + fork_files(); # start the conversion process. +} + +# process all files (all roads lead to rome) +sub proc_files { + + if (@file) { + + foreach my $i (sort(@file)) { + + my ($file, $dir, $ext) = fileparse("$i", qr/\.[^.]*/); + + $ext =~ s/^\.//; + $dir = rel2abs($dir); + $outdir = $dir if not defined($out_dir) and not $preserve; + $outdir = $out_dir if $preserve; + + my $if = $ext; + $if =~ tr/A-Z/a-z/; + + $only =~ tr/A-Z/a-z/ if $only; + + next if $only and $if ne $only; + + $encoder = $my_encoder if defined($my_encoder); + $decoder = $my_decoder if defined($my_decoder); + + $encoder = $run{$to}{DEFAULT_ENCODER} if not $my_encoder; + $decoder = $run{$if}{DEFAULT_DECODER} if not $my_decoder; + + if (-e "$file.$to" and not $overwrite) { + pnotice("overwrite","$file.$to",1); + $total_failed++; + next; + } + + if (check_input($file,$dir,$if) == 0) { + + pnotice("unk_encoder","$file.$ext",1), next unless(exists($run{$to}{ENCODER}{$encoder})); + pnotice("unk_decoder","$file.$ext",1), next unless(exists($run{$if}{DECODER}{$decoder})); + + get_visual_opts($to,$outdir) if $gui and not defined($first_run); + + $first_run = 1; + + perror("multi_out","") if (defined($out_name) and $#file gt 0 or defined($out_name) and @dir); + perror("no_outdir","") if (not -e $outdir and not -d $outdir); + + $outfile = "$file" if not $out_name; + + if ($keep and $if eq $to) { + system("cp -v \"$dir/$file.$ext\" \"$outdir/$outfile.$ext\"") if $outdir ne $dir and not -e "$outdir/$outfile.$ext"; + next if $outdir eq $dir; + } + + else { + $files{"FILE$number"}{FILE} = "$dir/$file"; + $files{"FILE$number"}{OUTF} = "$outdir/$outfile"; + $files{"FILE$number"}{EXT} = "$ext"; + $files{"FILE$number"}{NAME} = "$file"; + $files{"FILE$number"}{OUTD} = "$outfile"; + $files{"FILE$number"}{DECODER} = "$decoder"; + + $number++; + } + + } + } + } + undef(@file); +} + +# process directories and push all to @file arrary +sub proc_dirs { + + if (@dir) { + + my @tmp_dir = @dir; + undef(@dir); + $topdir = $tmp_dir[0]; + + if (not $recursive) { + + undef(@file); + + foreach my $d (@tmp_dir) { + + opendir(DIR, "$d") or perror("opening_dir","$d: $!"); + my @dir_files = readdir(DIR); + closedir(DIR); + perror("empty_dir","$d") if $#dir_files <= 1; + + foreach my $f (@dir_files) { + + if (not -d $f and not -d "$d/$f") { + push(@file, "$d/$f"); + undef($out_name); + } + } + } + + proc_files(); + return 0; + + } + + elsif ($recursive) { + + if (not $preserve) { + + undef(@file); + + foreach my $r (@tmp_dir) { + + $r = rel2abs($r); + + find ( sub { + my $rfile = $File::Find::name; + push(@file, $rfile) if not -d $rfile; + }, $r + ); + } + + proc_files(); + return 0; + + } + } + + } +} + +# preserve directory structuer (revised 10-7-2013) +my $out_dir_original = rel2abs($outdir) if $outdir and -d $outdir; + +sub proc_preserve_dir { + +$topdir = rel2abs($dir[0]); + +perror("no_outdir","") if not defined($out_dir_original); +perror("no_outdir","") if not -d $out_dir_original; + +undef(@file); # clear the array before we begin. + +find ( sub { + my $val = $File::Find::name; + $val =~ s/(\$)/\\\$/g; + + if ($val ne $topdir) { + + $val =~ s/$topdir\///; + + # create mirrored directories in output directory + if (not -f fileparse("$topdir/$val") and not -d "$out_dir_original/$val") { + say "creating directory $out_dir_original/$val" if not -f "$topdir/$val" and $verbose; + mkdir("$out_dir_original/$val", 0755) if not -f "$topdir/$val"; + } + + # this will list all files in their original directories + if (-f "$topdir/$val") { + say "$lang{debug} pushing to \@file: $topdir/$val" if $debug == 1; + push(@file, "$topdir/$val"); + } + + # set $out_dir to the + $out_dir = "$out_dir_original/" . dirname($val) if -f "$topdir/$val"; + + # send file, and output dir to proc_files(); + proc_files(); + } + + }, $topdir + ); +} + +# convert input to destination format +sub convert { + + my ($inf, $outf, $infmt, $iname, $oname, $dec) = @_; + + my $if = $infmt; + $if =~ tr/A-Z/a-z/; + + clear_tag_hash() if not $rip; + + # catch ^C. will have to be pressed repeatedly to exit the process. + $SIG{INT} = sub { + unlink("$outf.$$.wav"); + kill 9, $$; + }; + + # check to see if encoder/decoder exists. if not, see if we have one + # that supports the desired input/output formats. + $decoder = $dec; + check_encoder(); + check_decoder($infmt); + + my $decode_string = $run{$if}{DECODER}{$decoder}{DSTR}->(); + $decode_string =~ s/%i/\"$inf.$infmt\"/; + $decode_string =~ s/%o/\"$outf.$$.wav\"/; + $decode_string =~ s/(\$|\\)/\\$1/g; + + pnotice("debug","\n$run{$if}{DECODER}{$decoder}{NAME} $decode_string", 2) if $dryrun; + + # decode input file to temporary wav + system("$run{$if}{DECODER}{$decoder}{NAME} $decode_string $silent") if not $dryrun; + + # remove temporary wav file and die if decode fails + if ($? > 0) { + unlink("$outf.$$.wav") if -e "$outf.$$.wav"; + say ""; + $banner = 0; + pnotice("decode_failed","$inf.$infmt: try with --verbose",1); + return 1; + } + + # normalize wav file before encoding to output format + perror("no_app","normalize") if $normalize and not `which normalize 2>/dev/null`; + system("normalize $nopts \"$outf.$$.wav\"") if $normalize; + + # copy meta-data from input file to %tag_name + read_tags("$inf.$infmt", "$if") if $run{$if}{TAGS}{READ} == 1 and not $dryrun; + + my $tag_opts = format_tags($to); # tag options for mp4/m4a/m4b/mpc/mpp/bonk/spx/wv + + my $encode_string = $run{$to}{ENCODER}{$encoder}{ESTR}->(); + $encode_string =~ s/%i/$tag_opts \"$outf.$$.wav\"/ if $to =~ /mpc|mpp|mp4|m4a/ and $encoder eq "faac" or $encoder eq "mpcenc"; + $encode_string =~ s/%i/\"$outf.$$.wav\" $tag_opts/ if $to =~ /mpc|mpp|mp4|m4a/ and $encoder eq "ffmpeg" or $encoder eq "avconv"; + $encode_string =~ s/%i/\"$outf.$$.wav\"/ if $to !~ /mpc|mpp|mp4|m4a/; + $encode_string =~ s/%o/$tag_opts \"$outf.$to\"/ if $tag_opts ne " " and $to !~ /mpc|mpp|mp4|m4a/; + $encode_string =~ s/%o/\"$outf.$to\"/ if $tag_opts eq " " or $to =~ /mpc|mpp|mp4|m4a/; + $encode_string =~ s/(\$|\\)/\\$1/g; + + # read tag options from command line if present + get_user_tags(); + + pnotice("debug","\n$run{$to}{ENCODER}{$encoder}{NAME} $encode_string", 2) if $dryrun; + + # encode temporary WAV to desired output format. + system("$run{$to}{ENCODER}{$encoder}{NAME} $encode_string $silent") if not $dryrun; + + # remove partially encoded output file and temporary wav if encoding fails + if ($? > 0) { + unlink("$outf.$to") if -e "$outf.$to"; + unlink("$outf.$$.wav") if -e "$outf.$$.wav"; + say ""; + $banner = 0; + pnotice("encode_failed","$outf.$to: $?",1); + return 1; + } + + # write meta-data to output file from %tag_name hash + write_tags("$outf.$to", "$to") if $run{$to}{TAGS}{WRITE} == 1 and $tag_opts eq " " and not $dryrun; + + unlink("$outf.$$.wav") if not $dryrun; + unlink("$inf.$infmt") if $delete and not $dryrun; + + pnotice("removed_tmp","$outf.$$.wav","2") if $verbose; + pnotice("removed_src","$inf.$infmt", "2") if $delete and $verbose; +} + +$pm->run_on_finish +( sub { + my $pid = shift; + my $exit_code = shift; + my $ident = shift; + + if (-e "$ident.$to") { + $total_converted++; + } + say "$lang{debug} PID: $pid EXIT_CODE: $exit_code IDENTITY: \"$ident.$to\"" if $debug == 1; + } +); + +# convert all files that have been placed in the %files hash through various procs* +sub fork_files { + + say "\n$name - $version\n" if not $gui and $banner == 1; + + foreach (sort(keys(%files))) + { + $pm->start($files{$_}{OUTF}) and next; + my $msg = "$lang{converting}" . " " . basename($files{$_}{FILE}) . ".$files{$_}{EXT} -> $to"; + say "$msg" if not $gui; + system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$msg\" 10 &") if $gui and $kde; + system("notify-send \"$name\" \"$msg\" -t 35 -i $icon_path &") if $gui and $gnome; + convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}","$files{$_}{DECODER}"); + $pm->finish; + } + + $pm->wait_all_children; + $total_failed = $number - $total_converted if $total_converted < $number; + + my $finished_msg = "\n$lang{total_converted} $total_converted, $lang{failed} $total_failed\n"; + + say "$finished_msg" if not $gui; + system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$finished_msg\" 10 &") if $gui and $kde; + system("notify-send \"$name\" \"$finished_msg\" -t 35 -i $icon_path &") if $gui and $gnome; + +} + +# if the default encoder does not exist, cycle through the supported +# encoders until we find one that does. +sub check_encoder { + + if (not `which $encoder 2>/dev/null`) { + my $first_encoder = $encoder; + foreach (keys %{$run{$to}{ENCODER}}) { $encoder = $_ and return if `which $_ 2>/dev/null`; } + perror("no_encode_app","$to") if $encoder eq $first_encoder; + } + + else { return 0; } +} + +# if the default decoder does not exist, cycle through the supported +# decoders until we find one that does. +sub check_decoder { + + my $from = shift; + + if (not `which $decoder 2>/dev/null`) { + my $first_decoder = $decoder; + foreach (keys %{$run{$from}{DECODER}}) { $decoder = $_ and return if `which $_ 2>/dev/null`; } + perror("no_decode_app","$from") if $decoder eq $first_decoder; + } + + else { return 0; } +} + +# make sure encoding/decoding is supported. +sub check_input { + + my $file = shift; + my $dir = shift; + my $ext = shift; + + perror("no_encoder","$to") unless(defined($run{$to}{ENCODER})); + + unless(defined($run{$ext}{DECODER})) { + pnotice("no_decoder","$ext",2) if $verbose or not $only; + $total_failed++; + return 1; + } + + return 0; +} + +######################################## +# GUI options for KDE & Gnome Plugins # +######################################## + +my $kdialog = "kdialog --title \"$name\""; +my $zenity = "zenity --title \"$name\" --list --radiolist --width 100 --height 300 --column '' --column "; + +sub get_visual_opts { + + my ($to_fmt,$od) = @_; + + # escape illegal characters in output directory name + $od =~ s/('|\(|\)|"|\\)/\\$1/g; + + $outdir = `kdialog --getexistingdirectory $od` if $config{KDE_DIR} == 1 and $kde; + $outdir = `zenity --title \"$lang{gui_outdir}\" --file-selection --directory --filename=\`pwd\`` if $config{ZEN_DIR} == 1 and $gnome; + + chomp($outdir); + $out_dir = $outdir; + exit(1) if not $outdir; + + if ($config{KDE_OPTS} == 1 or $config{ZEN_OPTS} == 1) { + foreach (keys %{$run{$to_fmt}{ENCODER}{$encoder}{PROMPT}}) { + prompt_user($_); + } + } +} + +sub prompt_user { + + my $opt = shift; + + given ($opt) { + + when (/^BITRATE/) { + $bitrate = `$kdialog --default $bitrate --combobox \"$lang{gui_bitrate}\" 56 112 128 160 192 256 320` if $kde; + $bitrate = `$zenity \"$lang{gui_bitrate}\" FALSE 56 FALSE 112 FALSE 128 FALSE 160 TRUE 192 FALSE 256 FALSE 320` if $gnome; + chomp($bitrate); + exit(1) if not $bitrate; + } + + when (/^FREQ/) { + $freq = `$kdialog --default $freq --combobox \"$lang{gui_freq}\" 32000 44100 48000` if $kde; + $freq = `$zenity \"$lang{gui_freq}\" FALSE 32000 TRUE 44100 FALSE 48000` if $gnome; + chomp($freq); + exit(1) if not $freq; + } + + when (/^CHANNELS/) { + $channels = `$kdialog --default $channels --combobox \"$lang{gui_chans}\" 1 2` if $kde; + $channels = `$zenity \"$lang{gui_chans}\" FALSE 1 TRUE 2` if $gnome; + chomp($channels); + exit(1) if not $channels; + } + + when (/^FCOMP/) { + $fcomp = `$kdialog --default $fcomp --combobox \"$lang{gui_fcomp}\" 0 1 2 3 4 5 6 7 8` if $kde; + $fcomp = `$zenity \"$lang{gui_fcomp}\" FALSE 0 FALSE 1 TRUE 2 FALSE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 FALSE 8` if $gnome; + chomp($fcomp); + exit(1) if not $fcomp; + } + + when (/^ACOMP/) { + $acomp = `$kdialog --default $acomp --combobox \"$lang{gui_acomp}\" 1000 2000 3000 4000 5000` if $kde; + $acomp = `$zenity \"$lang{gui_acomp}\" FALSE 1000 FALSE 2000 TRUE 3000 FALSE 4000 FALSE 5000` if $gnome; + chomp($acomp); + exit(1) if not $acomp; + } + + when (/^OGGQUAL/) { + $oggqual = `$kdialog --default $oggqual --combobox \"$lang{gui_oggqual}\" 0 1 2 3 4 5 6 7 8 9 10` if $kde; + $oggqual = `$zenity \"$lang{gui_oggqual}\" FALSE 0 FALSE 1 FALSE 2 TRUE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 FALSE 8 FALSE 9 FALSE 10` if $gnome; + chomp($oggqual); + exit(1) if not $oggqual; + } + + when (/^SPXQUAL/) { + $spxqual = `$kdialog --default $spxqual --combobox \"$lang{gui_spxqual}\" 0 1 2 3 4 5 6 7 8 9 10` if $kde; + $spxqual = `$zenity \"$lang{gui_spxqual}\" FALSE 0 FALSE 1 FALSE 2 FALSE 3 FALSE 4 FALSE 5 FALSE 6 FALSE 7 TRUE 8 FALSE 9 FALSE 10` if $gnome; + chomp($spxqual); + exit(1) if not $spxqual; + } + + when (/^AACQUAL/) { + $aacqual = `$kdialog --default $aacqual --combobox \"$lang{gui_aacqual}\" 100 200 300 400 500` if $kde; + $aacqual = `$zenity \"$lang{gui_aacqual}\" TRUE 100 FALSE 200 FALSE 300 FALSE 400 FALSE 500` if $gnome; + chomp($aacqual); + exit(1) if not $aacqual; + } + + when (/^MPCQUAL/) { + $mpcqual = `$kdialog --default $mpcqual --combobox \"$lang{gui_mpcqual}\" thumb radio standard xtreme insane braindead` if $kde; + $mpcqual = `$zenity \"$lang{gui_mpcqual}\" FALSE thumb TRUE radio FALSE standard FALSE xtreme FALSE insane FALSE braindead` if $gnome; + chomp($mpcqual); + exit(1) if not $mpcqual; + } + + when (/^OFMODE/ ) { + $ofmode = `$kdialog --default $ofmode --combobox \"$lang{gui_ofmode}\" fast normal high extra best highnew extranew bestnew` if $kde; + $ofmode = `$zenity \"$lang{gui_ofmode}\" FALSE fast TRUE normal FALSE high FALSE extra FALSE best FALSE highnew FALSE extranew FALSE bestnew` if $gnome; + chomp($ofmode); + exit(1) if not $ofmode; + } + + when (/^OFOPT/) { + $ofopt = `$kdialog --default $ofopt --combobox \"$lang{gui_ofopt}\" none fast normal high best` if $kde; + $ofopt = `$zenity \"$lang{gui_ofopt}\" FALSE none TRUE fast FALSE normal FALSE high FALSE best` if $gnome; + chomp($ofopt); + exit(1) if not $ofopt; + } + + when (/^BRATIO/) { + $bratio = `$kdialog --default $bratio --combobox \"$lang{gui_bratio}\" 1 2 3 4 5` if $kde; + $bratio = `$zenity \"$lang{gui_bratio}\" FALSE 1 TRUE 2 FALSE 3 FALSE 4 FALSE 5` if $gnome; + chomp($bratio); + exit(1) if not $bratio; + } + + when (/^BQUANL/) { + $bquanl = `$kdialog --default $bquanl --combobox \"$lang{gui_bquanl}\" 1.00 1.25 1.50 1.75 2.00` if $kde; + $bquanl = `$zenity \"$lang{gui_bquanl}\" TRUE 1.00 FALSE 1.25 FALSE 1.50 FALSE 1.75 FALSE 2.00` if $gnome; + chomp($bquanl); + exit(1) if not $bquanl; + } + + when (/^BPSIZE/) { + $bpsize = `$kdialog --default $bpsize --combobox \"$lang{gui_bpsize}\" 10 128` if $kde; + $bpsize = `$zenity \"$lang{gui_bpsize}\" FALSE 10 TRUE 128` if $gnome; + chomp($bpsize); + exit(1) if not $bpsize; + } + + default { return 0; } + } + +} + +# all copied tags will be stored here for furture use +my %tag_name = +( + title => undef, + track => undef, + artist => undef, + album => undef, + comment => undef, + year => undef, + genre => undef, +); + +# override tags read from input file if any of the tagging +# options are specified by the user during conversion. +sub get_user_tags +{ + $tag_name{title} = $title if $title; + $tag_name{track} = $track if $track; + $tag_name{artist} = $artist if $artist; + $tag_name{album} = $album if $album; + $tag_name{comment} = $comment if $comment; + $tag_name{year} = $year if $year; + $tag_name{genre} = $genre if $genre; +} + +# the formats MP4/M4A/M4B/MPC/MPP/WV/BONK have no tag writing module. +# tags therefore have to be written during encode via various +# command line args. +sub format_tags { + + my $type = shift; + + given ($type) { + + when (/^mp4$|^m4a$|^m4b$/) { + + if ($run{$to}{ENCODER}{$encoder}{NAME} eq "ffmpeg" or $run{$to}{ENCODER}{$encoder}{NAME} eq "avconv") { + + $tag_name{track} = 0 if not $tag_name{track}; + $tag_name{year} = 0 if not $tag_name{year}; + + return "-metadata TITLE=\"$tag_name{title}\" -metadata TRACK=\"$tag_name{track}\" -metadata ARTIST=\"$tag_name{artist}\" -metadata ALBUM=\"$tag_name{album}\" -metadata COMMENT=\"$tag_name{comment}\" -metadata YEAR=\"$tag_name{year}\" -metadata GENRE=\"$tag_name{genre}\""; + + } else { + + return "--title \"$tag_name{title}\" --track \"$tag_name{track}\" --artist \"$tag_name{artist}\" --album \"$tag_name{album}\" --comment \"$tag_name{comment}\" --year \"$tag_name{year}\" --genre \"$tag_name{genre}\""; + + } + } + + when (/^mpc$|^mpp$/) { return "--artist \"$tag_name{artist}\" --title \"$tag_name{title}\" --album \"$tag_name{album}\" --track \"$tag_name{track}\" --genre \"$tag_name{genre}\" --year \"$tag_name{year}\" --comment \"$tag_name{comment}\""; } + when (/^wv$/) { return "-w \"Title=$tag_name{title}\" -w \"Track=$tag_name{track}\" -w \"Artist=$tag_name{artist}\" -w \"Album=$tag_name{album}\" -w \"Comment=$tag_name{comment}\" -w \"Year=$tag_name{year}\" -w \"Genre=$tag_name{genre}\""; } + when (/^bonk$/) { return "-t \"$tag_name{title}\" -a \"$tag_name{artist}\" -c \"$tag_name{comment}\""; } + when (/^spx$/) { return "--author \"$tag_name{artist}\" --title \"$tag_name{title}\" --comment \"year=$tag_name{year}\" --comment \"tracknumber=$tag_name{track}\" --comment \"album=$tag_name{album}\" --comment \"genre=$tag_name{genre}\" --comment \"comment=$tag_name{comment}\""; } + + default { return " "; } + } +} + +# meta-data is read based on input file extension. +# all tags which are present will be copied to +# the %tag_name hash. +sub read_tags { + + my $in_file = shift; + my $in_format = shift; + + my $tag_module = $run{$in_format}{TAGS}{MODULE}; + + given ($in_format) { + + when (/^mp3$|^mp3hd$/) { + my $mp3tag = $tag_module->new($in_file); + my @tags = $mp3tag->autoinfo(); + + $tag_name{title} = "$tags[0]" if $tags[0]; + $tag_name{track} = "$tags[1]" if $tags[1]; + $tag_name{artist} = "$tags[2]" if $tags[2]; + $tag_name{album} = "$tags[3]" if $tags[3]; + $tag_name{comment} = "$tags[4]" if $tags[4]; + $tag_name{year} = "$tags[5]" if $tags[5]; + $tag_name{genre} = "$tags[6]" if $tags[6]; + + return 0; + } + + when (/^ogg$|^oga$/) { + my $ogg_tag = Audio::Scan->scan_tags($in_file)->{tags}; + + $tag_name{title} = $ogg_tag->{TITLE} if $ogg_tag->{TITLE}; + $tag_name{track} = $ogg_tag->{TRACKNUMBER} if $ogg_tag->{TRACKNUMBER}; + $tag_name{artist} = $ogg_tag->{ARTIST} if $ogg_tag->{ARTIST}; + $tag_name{album} = $ogg_tag->{ALBUM} if $ogg_tag->{ALBUM}; + $tag_name{comment} = $ogg_tag->{COMMENT} if $ogg_tag->{COMMENT}; + $tag_name{year} = $ogg_tag->{YEAR} if $ogg_tag->{YEAR}; + $tag_name{genre} = $ogg_tag->{GENRE} if $ogg_tag->{GENRE}; + + return 0; + } + + when (/^spx$/) { + my $pid = open(SPX, "speexdec \"$in_file\" tmp1-$$.wav 2>&1 |") or perror("opening_file","$in_file"); + my @data = ; + @data = grep(!/^$|^#/, @data); + + close(SPX); + + foreach (@data) { + + next unless /=/; + chomp; + + my ($k, $v) = split /=/; + $k =~ tr/A-Z/a-z/; + $tag_name{$k} = $v if exists($tag_name{$k}); + $tag_name{artist} = $v if $k =~ /^author/i; + $tag_name{track} = $v if $k =~ /^tracknumber/i; + } + + unlink("tmp-$$.wav"); + return 0; + } + + when (/^flac$|^fla$/) { + my $flac_tag = Audio::Scan->scan_tags($in_file)->{tags}; + + $tag_name{title} = $flac_tag->{TITLE} if $flac_tag->{TITLE}; + $tag_name{track} = $flac_tag->{TRACKNUMBER} if $flac_tag->{TRACKNUMBER}; + $tag_name{artist} = $flac_tag->{ARTIST} if $flac_tag->{ARTIST}; + $tag_name{album} = $flac_tag->{ALBUM} if $flac_tag->{ALBUM}; + $tag_name{comment} = $flac_tag->{COMMENT} if $flac_tag->{COMMENT}; + $tag_name{year} = $flac_tag->{DATE} if $flac_tag->{DATE}; + $tag_name{genre} = $flac_tag->{GENRE} if $flac_tag->{GENRE}; + + return 0; + } + + when (/^mp4$|^m4a$|^m4b$/) { + my $mp4_tag = $tag_module->scan_tags($in_file)->{tags}; + + $tag_name{title} = $mp4_tag->{NAM} if $mp4_tag->{NAM}; + $tag_name{track} = $mp4_tag->{TRKN} if $mp4_tag->{TRKN}; + $tag_name{artist} = $mp4_tag->{ART} if $mp4_tag->{ART}; + $tag_name{album} = $mp4_tag->{ALB} if $mp4_tag->{ALB}; + $tag_name{comment} = $mp4_tag->{CMT} if $mp4_tag->{CMT}; + $tag_name{year} = $mp4_tag->{DAY} if $mp4_tag->{DAY}; + $tag_name{genre} = $mp4_tag->{GNRE} if $mp4_tag->{GNRE}; + + return 0; + } + +when (/^ape$|^mpc$|^mpp$|^wv$/) { + my $audio_tag = $tag_module->scan_tags($in_file)->{tags}; + + $tag_name{title} = $audio_tag->{TITLE} if $audio_tag->{TITLE}; + $tag_name{track} = $audio_tag->{TRACK} if $audio_tag->{TRACK}; + $tag_name{artist} = $audio_tag->{ARTIST} if $audio_tag->{ARTIST}; + $tag_name{album} = $audio_tag->{ALBUM} if $audio_tag->{ALBUM}; + $tag_name{comment} = $audio_tag->{COMMENT} if $audio_tag->{COMMENT}; + $tag_name{year} = $audio_tag->{YEAR} if $audio_tag->{YEAR}; + $tag_name{genre} = $audio_tag->{GENRE} if $audio_tag->{GENRE}; + + return 0; + } + + when (/^wma$/) { + my $wma_tag = $tag_module->scan_tags($in_file)->{tags}; + + $tag_name{title} = $wma_tag->{TITLE} if $wma_tag->{TITLE}; + $tag_name{track} = $wma_tag->{TRACKNUMBER} if $wma_tag->{TRACKNUMBER}; + $tag_name{artist} = $wma_tag->{AUTHOR} if $wma_tag->{AUTHOR}; + $tag_name{album} = $wma_tag->{ALBUMTITLE} if $wma_tag->{ALBUMTITLE}; + $tag_name{comment} = $wma_tag->{DESCRIPTION} if $wma_tag->{DESCRIPTION}; + $tag_name{year} = $wma_tag->{YEAR} if $wma_tag->{YEAR}; + $tag_name{genre} = $wma_tag->{GENRE} if $wma_tag->{GENRE}; + + return 0; + } + + default { return 1; } + } +} + +# write meta-data stored in %tag_name to output file. +sub write_tags { + + my $out_file = shift; + my $out_format = shift; + + my $tag_m; + + given ($out_format) { + + when (/^mp3$|^mp3hd$/) { + $tag_m = MP3::Tag->config(write_v24 => 'YES'); + $tag_m = MP3::Tag->new("$out_file"); + + # ID3v2 Tags + unless(exists($tag_m->{ID3v2})) { $tag_m->new_tag("ID3v2"); } + + $tag_m->{ID3v2}->add_frame("TIT2", "$tag_name{title}") if defined($tag_name{title}); + $tag_m->{ID3v2}->add_frame("TRCK", "$tag_name{track}") if defined($tag_name{track}); + $tag_m->{ID3v2}->add_frame("TPE1", "$tag_name{artist}") if defined($tag_name{artist}); + $tag_m->{ID3v2}->add_frame("TALB", "$tag_name{album}") if defined($tag_name{album}); + $tag_m->{ID3v2}->comment("$tag_name{comment}") if defined($tag_name{comment}); + $tag_m->{ID3v2}->add_frame("TYER", "$tag_name{year}") if defined($tag_name{year}); + $tag_m->{ID3v2}->add_frame("TCON", "$tag_name{genre}") if defined($tag_name{genre}); + + $tag_m->{ID3v2}->write_tag; + + # ID3v1 Tags + unless(exists($tag_m->{ID3v1})) { $tag_m->new_tag("ID3v1"); } + + $tag_m->{ID3v1}->title("$tag_name{title}") if defined($tag_name{title}); + $tag_m->{ID3v1}->track("$tag_name{track}") if defined($tag_name{track}); + $tag_m->{ID3v1}->artist("$tag_name{artist}") if defined($tag_name{artist}); + $tag_m->{ID3v1}->album("$tag_name{album}") if defined($tag_name{album}); + $tag_m->{ID3v1}->comment("$tag_name{comment}") if defined($tag_name{comment}); + $tag_m->{ID3v1}->year("$tag_name{year}") if defined($tag_name{year}); + $tag_m->{ID3v1}->genre("$tag_name{genre}") if defined($tag_name{genre}); + + $tag_m->{ID3v1}->write_tag; + + return 0; + + } + + when (/^ogg$|^oga$/) { + $tag_m = ''; + + $tag_m = "$tag_m -t \"TITLE=$tag_name{title}\"" if $tag_name{title}; + $tag_m = "$tag_m -t \"TRACKNUMBER=$tag_name{track}\"" if $tag_name{track}; + $tag_m = "$tag_m -t \"ARTIST=$tag_name{artist}\"" if $tag_name{artist}; + $tag_m = "$tag_m -t \"ALBUM=$tag_name{album}\"" if $tag_name{album}; + $tag_m = "$tag_m -t \"COMMENT=$tag_name{comment}\"" if $tag_name{comment}; + $tag_m = "$tag_m -t \"YEAR=$tag_name{year}\"" if $tag_name{year}; + $tag_m = "$tag_m -t \"GENRE=$tag_name{genre}\"" if $tag_name{genre}; + + system("vorbiscomment -w $tag_m \"$out_file\"") if $tag_m ne ''; + + return 0; + } + + when (/^fla$|^flac$/) { + $tag_m = Audio::FLAC::Header->new("$out_file"); + my $tag_i = $tag_m->tags(); + + $tag_i->{TITLE} = "$tag_name{title}" if $tag_name{title}; + $tag_i->{TRACKNUMBER} = "$tag_name{track}" if $tag_name{track}; + $tag_i->{ARTIST} = "$tag_name{artist}" if $tag_name{artist}; + $tag_i->{ALBUM} = "$tag_name{album}" if $tag_name{album}; + $tag_i->{COMMENT} = "$tag_name{comment}" if $tag_name{comment}; + $tag_i->{DATE} = "$tag_name{year}" if $tag_name{year}; + $tag_i->{GENRE} = "$tag_name{genre}" if $tag_name{genre}; + + $tag_m->write(); + + return 0; + } + + default { perror("no_write_tag","$out_file"); } + } + +} + +# this is necessary when converting multiple files. +# it prevents old tags from the previous file being +# copied over to the next file in line. +sub clear_tag_hash { + foreach (keys(%tag_name)) { + $tag_name{$_} = ''; + } +} + +# display meta-data for selected file(s) +sub show_taginfo { + + perror("no_input","") if $#file < 0; + + foreach my $i (@file) { + + my ($file, $dir, $ext) = fileparse("$i", qr/\.[^.]*/); + + $ext =~ s/^\.//; + + my $from = $ext; + $from =~ tr/A-Z/a-z/; + + if ($run{$from}{TAGS}{READ} == 1) { + + clear_tag_hash(); + read_tags("$dir/$file.$ext","$from"); + + say ''; + + pnotice("tag_info","$file.$ext",2); + + say " Artist: $tag_name{artist}"; + say " Title: $tag_name{title}"; + say " Album: $tag_name{album}"; + say " Track: $tag_name{track}"; + say "Comment: $tag_name{comment}"; + say " Year: $tag_name{year}"; + say " Genre: $tag_name{genre}"; + + say ''; + + } else { pnotice("no_read_tag","$file.$ext",2); } + } +} + +# write tags to file supplied by the user +sub write_user_tags { + + perror("no_input","") if $#file < 0; + + say ''; + say "$name - $version\n"; + + foreach (@file) { + + my ($file, $dir, $ext) = fileparse("$_", qr/\.[^.]*/); + + $ext =~ s/^\.//; + my $from = $ext; + $from =~ tr/A-Z/a-z/; + + if ($run{$from}{TAGS}{WRITE} == 1) { + + clear_tag_hash(); + read_tags("$dir/$file.$ext","$from"); + + $tag_name{title} = $title if $title; + $tag_name{track} = $track if $track; + $tag_name{artist} = $artist if $artist; + $tag_name{album} = $album if $album; + $tag_name{comment} = $comment if $comment; + $tag_name{year} = $year if $year; + $tag_name{genre} = $genre if $genre; + + write_tags("$dir/$file.$ext","$from"); + say "$lang{write_tag_i} $file.$ext"; + + } else { perror("no_write_tag","$file.$ext"); } + } + say ''; +} + +# print out list of supported encode & decode formats +sub show_formats { + +say "\n$name - $version\n"; +say "EXT E D ENCODER DECODER TAG-READ TAG-WRITE"; +say "----------------------------------------------------------------------"; + +my $enc_count = 0; +my $dec_count = 0; + + foreach (sort(keys(%run))) { + + my $e = "N"; $e = "Y" if defined($run{$_}{DEFAULT_ENCODER}); + my $d = "N"; $d = "Y" if defined($run{$_}{DEFAULT_DECODER}); + my $r = "N"; $r = "Y" if $run{$_}{TAGS}{READ} == 1; + my $w = "N"; $w = "Y" if $run{$_}{TAGS}{WRITE} == 1; + + my $enc = ''; $enc = $run{$_}{DEFAULT_ENCODER} if defined($run{$_}{DEFAULT_ENCODER}); + my $dec = ''; $dec = $run{$_}{DEFAULT_DECODER} if defined($run{$_}{DEFAULT_DECODER}); + + printf("%-9s %-3s %-3s %-15s %-18s %-10s %s\n", $_, $e, $d, $enc, $dec, $r, $w); + + ++$enc_count if $enc ne ''; + ++$dec_count if $dec ne ''; + + } + + say "\n$lang{enc_fmts} $enc_count --- $lang{dec_fmts} $dec_count\n"; + +} + +# show encoders for output format +sub show_encoders { + say "\n$name - $version\n\n$lang{show_encoders}: $my_encoder\n"; + foreach (sort(keys %{$run{$my_encoder}{ENCODER}})) { + print "$_ -> "; + print "installed" if `which $_ 2>/dev/null`; + print "not found" if not `which $_ 2>/dev/null`; + print " (default)" if $_ eq $run{$my_encoder}{DEFAULT_ENCODER}; + say ''; + } + say ''; +} + +# show decoders for input format +sub show_decoders { + say "\n$name - $version\n\n$lang{show_decoders}: $my_decoder\n"; + foreach (sort(keys %{$run{$my_decoder}{DECODER}})) { + print "$_ -> "; + print "installed" if `which $_ 2>/dev/null`; + print " (default)" if $_ eq $run{$my_decoder}{DEFAULT_DECODER}; + say ''; + } + say ''; +} + +################# +# cd ripping... # +################# + +# get total number of tracks from cdparanoia query +sub get_total_tracks { + + open(CDINFO, "cdparanoia -Q 2>&1 |") or die "can't fork: $!\n"; + my @cdquery = ; + close(CDINFO); + + my $fmt_tracks = $cdquery[-3]; + $fmt_tracks =~ s/\s//g; + + my @ttracks = split(/\./, $fmt_tracks); + + return "$ttracks[0]"; + +} + +my (%cd, %ripconfig, @cdtrack, $track_total); + +# setup the cddb config +sub get_cddb_config { + + $config{USE_CDDB} = 0 && return if $nocddb; + + $config{CDDB_INPUT} = 0 if $noinput; + + $ripconfig{CDDB_HOST} = $config{CDDB_HOST}; + $ripconfig{CDDB_PORT} = $config{CDDB_PORT}; + $ripconfig{CDDB_MODE} = $config{CDDB_MODE}; + $ripconfig{DEVICE} = $device; + $ripconfig{CDDB_INPUT} = $config{CDDB_INPUT}; + + print $ripconfig{CDDB_HOST}; + + %cd = get_cddb(\%ripconfig); + + if (not $cd{title}) { + pnotice("no_cddb","",2); + $config{USE_CDDB} = 0; + } + else { + @cdtrack = @{$cd{track}}; + $track_total = $cd{tno}; + } + +} + +# check to see if a disc is present +sub query_disc { + system("cdparanoia -q -d $device -Q > /dev/null 2>&1"); + perror("no_disc","$device") if $? > 0; +} + +# set tag info from cddb +sub tag_track { + + my $tno = shift; + + $tag_name{artist} = $cd{artist} if $cd{artist}; + $tag_name{title} = $cdtrack[$tno-1] if $cdtrack[$tno-1]; + $tag_name{genre} = $cd{cat} if $cd{cat}; + $tag_name{track} = $tno; + $tag_name{album} = $cd{title} if $cd{title}; + $tag_name{year} = $cd{year} if $cd{year}; + $tag_name{comment} = ''; + +} + +# process and convert ripped track +sub rip_cd { + + my ($on,$tno) = @_; + + $outdir = $ENV{HOME}; + $to =~ tr/A-Z/a-z/; + + get_visual_opts($to,$out_dir) if $gui and not defined($first_run); + $first_run = 1; + pnotice("ripping_track","$tno",2); + + $on =~ s/\//_/g; + + say "\ncdparanoia -d $device $tno $on.wav\n" if $dryrun; + system("cdparanoia -d $device $tno \"$on.wav\" >/dev/null 2>&1") if not $dryrun; + + if ($to !~ /wav/i) { + + push(@file, "$on.wav"); + tag_track($tno); + proc_input(); + clear_tag_hash(); + undef(@file); + unlink("$on.wav") if not $dryrun; + pnotice("removed_tmp","$on.wav",2) if $verbose; + + } +} + +# rip selected tracks or all from disc +sub proc_cd { + + perror("no_app","cdparanoia") if not `which cdparanoia 2>/dev/null`; + + query_disc(); + get_cddb_config(); + + my $total_tracks = get_total_tracks(); + + if ($rip eq "all") { + + if ($config{USE_CDDB} ne 1) { + + for(my $i=1;$i<=$total_tracks;$i++) { + rip_cd($i, $i); + } + + } elsif ($config{USE_CDDB} eq 1) { + + my $n = 1; + + foreach my $i (@cdtrack) { + + my $out_string = $nscheme; + + chomp($cdtrack[$n-1]); + + $out_string =~ s/%ar/$cd{artist}/; + $out_string =~ s/%ti/$cdtrack[$n-1]/; + $out_string =~ s/%tr/$n/; + $out_string =~ s/%ab/$cd{title}/; + $out_string =~ s/%yr/$cd{year}/; + + rip_cd($out_string, $n); + + ++$n; + } + } + + } else { + + my @tracks = split(/,/, $rip); + + foreach my $i (@tracks) { + + next if $i > $total_tracks or $i < 1; + + my $out_string = $nscheme; + + $out_string =~ s/%ar/$cd{artist}/; + $out_string =~ s/%ti/$cdtrack[$i-1]/; + $out_string =~ s/%tr/$i/; + $out_string =~ s/%ab/$cd{title}/; + $out_string =~ s/%yr/$cd{year}/; + + rip_cd($out_string, $i) if $config{USE_CDDB} == 1; + rip_cd($i, $i) if $config{USE_CDDB} == 0; + } + } +} + +# get/print cddb information from disc +sub cdinfo { + + query_disc(); + get_cddb_config(); + + say "$name - $version\n"; + + say "Artist = $cd{artist}"; + say "Album = $cd{title}"; + say "Genre = $cd{genre}"; + say "Tracks = $cd{tno}"; + say "Year = $cd{year}\n"; + + my $n = 1; + + foreach (@cdtrack) { + say "Track $n: $_"; + ++$n; + } + + exit(0); +} + +# version / license information +sub version { + +say " +$name - $version + +Copyright (C) 2005-2017 Philip Lyons + +This is free software. You may redistribute copies of it under the terms of +the GNU General Public License . +There is NO WARRANTY, to the extent permitted by law. +"; + +} + +# help & longhelp menu +sub help_menu { + +say "\n$name - $version"; + +say " +-t, --to $lang{to} +-r, --recursive $lang{recursive} +-p, --preserve $lang{preserve} +-f, --formats $lang{formats} +-o, --only $lang{only} +-k, --keep $lang{keep} +-j, --jobs $lang{jobs} +-h, --help $lang{help} +-l, --longhelp $lang{longhelp} +-v, --verbose $lang{verbose} +"; + +say "$lang{user_opts} + +--defopts $lang{defopts} +--eopts $lang{eopts} +--dopts $lang{dopts} +--nopts $lang{nopts} +--outfile $lang{outfile} +--outdir $lang{outdir} +--dryrun $lang{dryrun} +--overwrite $lang{overwrited} +--normalize $lang{normalize} +--delete $lang{delete} +--encoder $lang{encoder} +--decoder $lang{decoder} +--version $lang{version} + +$lang{enc_opts} + +--bitrate $lang{bitrate} +--freq $lang{freq} +--channels $lang{channels} +--effect $lang{effect} +--fcomp $lang{fcomp} +--acomp $lang{acomp} +--oggqual $lang{oggqual} +--spxqual $lang{spxqual} +--aacqual $lang{aacqual} +--mpcqual $lang{mpcqual} +--ofmode $lang{ofmode} +--ofopt $lang{ofopt} +--bratio $lang{bratio} +--bquanl $lang{bquanl} +--bpsize $lang{bpsize} + +$lang{tag_opts} + +--artist $lang{artist} +--title $lang{title} +--track $lang{track} +--year $lang{year} +--album $lang{album} +--genre $lang{genre} +--comment $lang{comment} +--taginfo $lang{taginfo} + +$lang{tag_usage} + +$lang{rip_opts} + +--rip $lang{rip} +--nocddb $lang{nocddb} +--noinput $lang{noinput} +--nscheme $lang{nscheme} +--cdinfo $lang{cdinfo} +--device $lang{device} + +$lang{rip_usage}" if $longhelp; + +say "\n$lang{usage}\n"; + +} + +sub load_module { + my ($file) = @_; + my $return; + unless($return = do $file) { + perror("opening_file","$file: $@ $!") if $@ or !defined($return) or not !$return; + } +} + +sub import_module { + my ($format_ref) = @_; + my $format_name=$format_ref->{NAME}; + $run{$format_name} = $format_ref; +} + +# load all user modules +sub load_user_modules { + my @imported_mods; + opendir(DIR, "$mod_dir") or perror("opening_dir","$mod_dir: $!"); + foreach (readdir(DIR)) { + load_module("$mod_dir/$_") if $_ !~ /^\./; + push(@imported_mods, $_) if $_ !~ /^\./; + } + closedir(DIR); + say "$lang{imported} @imported_mods"; +} + +# place files/directories in their respective arrays +if (@ARGV) { + foreach (@ARGV) { + if (-f $_) { push(@file,$_); print "$lang{debug} adding $_ to \@file\n" if $debug == 1; } + elsif (-d $_) { push(@dir, $_); print "$lang{debug} adding $_ to \@dir\n" if $debug == 1; } + else { perror("no_infile","$_"); } + } +} + +load_user_modules() if $config{IMPORTM} == 1; + +if ($to and @ARGV and not $rip) { proc_input(); } + +elsif ($to and $rip) { proc_cd(); } +elsif ($my_encoder and not $to) { show_encoders(); } +elsif ($my_decoder and not $to) { show_decoders(); } +elsif ($verinfo) { version(); } +elsif ($longhelp) { help_menu(); } +elsif ($formats) { show_formats(); } +elsif ($cdinfo) { cdinfo(); } +elsif ($taginfo and not $to) { show_taginfo(); } +elsif ($title or $track or $artist or $album or $comment or $year or $genre) { write_user_tags(); } + +else { help_menu(); } + +__END__ + +=head1 NAME + +pacpl - Perl Audio Converter, a multi purpose converter/ripper/tagger + +=head1 SYNOPSIS + +pacpl --to [file(s)/directory(s)] + +=head1 DESCRIPTION + +Perl Audio Converter + +A Linux CLI tool for converting multiple audio types from one format to another. + +It supports the following audio formats: + +======================================== + +3G2, 3GP, 8SVX, AAC, AC3, ADTS, AIFF, AL, AMB, AMR, APE, AU, +AVR, BONK, CAF, CDR, CVU, DAT, DTS, DVMS, F32, F64, FAP, FLA, +FLAC, FSSD, GSRT, HCOM, IMA, IRCAM, LA, MAT, MAUD, MAT4, MAT5, +M4A, MP2, MP3, MP4, MPC, MPP, NIST, OFF, OFR, OFS, OPUS, OGA, +OGG, PAF, PRC, PVF, RA, RAM, RAW, RF64, SD2, SF, SHN, SMP, SND, +SOU, SPX, SRN, TAK, TTA, TXW, VOC, VMS, VQF, W64, WAV, WMA, +and WV. + +It can also extract audio from the following video extensions: + +============================================================== + +RM, RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGM, OGV, QT, VCD, +SVCD, M4V, NSV, NUV, PSP, SMK, VOB, FLV, WEBM and WMV. + +Parallel Processing, a CD ripping function with CDDB support, batch conversion, +tag preservation for most supported formats, independent tag reading & writing, +service menus for KDE Dolphin/Konqueror, GNOME Nautilus script, and action +scripts for Nemo/Thunar are also provided. + +=head1 OPTIONS + +B<-t, --to> I + +set encode format for the input file(s) or directory(ies). you can see a +complete list of supported encode formats by using the B<--formats> option. + +B<-r, --recursive> + +recursively scan and convert input folder(s) to destination format. + +B<-p, --preserve> + +when recursively converting a directory, preserve the input folders directory +structure in the specified output directory. such as: + +pacpl --to ogg -r -p /home/mp3s --outdir /home/oggs + +in the example above, let's assume the directory structure was: + +=over 21 + +=item /home/mp3s/Alternative + +=item /home/mp3s/Alternative/New + +=item /home/mp3s/Rap + +=item /home/mp3s/Country + +=item /home/mp3s/Techno/ + +=back + +the output directory will now contain: + +=over 4 + +=item /home/oggs/Alternative + +=item /home/oggs/Alternative/New + +=item /home/oggs/Rap + +=item /home/oggs/Country + +=item /home/oggs/Techno + +=back + +with all files in each sub-folder converted to ogg. + +B<-o, --only> I + +only convert files matching extension. this option is useful when you have +a directory or batch of files with mixed audio types and only need to +convert one specific type. + +B<-k, --keep> + +do not re-encode files with extensions matching the destination extension. +instead...copy them to the output folder, or skip to the next file. + +B<-j, --jobs> + +number of simultanious jobs to run at once. the default limit +is set to 4 in pacpl.conf. You can modify this value on the fly +using --jobs= or set it perminately in the configuration file + +=over 4 + +=item B<-f, --formats> show a list of supported encode/decode formats. + +=item B<-h, --help> show the short help menu. + +=item B<-l, --longhelp> display the complete list of options. + +=item B<--version> show version and licensing information. + +=back + +=head1 USER OPTIONS + +B<--defopts> I<1/0> + +to turn off default encoder options use --defopts 0. this option gives you +more control when using the --eopts command. + +defopts is set to 1 by default. you can also toggle this option in +/etc/pacpl/pacpl.conf. + +B<--eopts> I + +this option allows you to use encoder options not implemented by pacpl. +an example would be: + +pacpl --to mp4 --eopts="-c 44100 -I 1,2" YourFile.mp3 + +B<--dopts> I + +this option allows you to use decoder options not implemented by pacpl. +an example would be: + +pacpl --to mpc --dopts="--start 60" YourFile.ogg + +B<--outfile> I + +set the output file name to I. + +B<--outdir> I + +place all encoded files in I. + +B<--dryrun> + +show what would be done without actually converting anything. this is a +good way to trouble shoot, or to see what would be done without actually +touching your files. + +B<--overwrite> + +replace the output file if it already exists. + +B<--normalize> + +adjusts volume levels of audio files. + +B<--nopts> I + +this allows you to specify normalize options not implemented by pacpl + +B<--delete> + +remove source/input file after the conversion process has finished. + +B<--encoder> I + +specify an alternate encoder for the selected output file(s) + +you can see a list of supported encoders by using the following: + +pacpl --encoder I + +B<--decoder> I + +specify an alternate decoder for the selected input file(s) + +you can see a list of supported decoders by using the following: + +pacpl --decoder I + +B<-v, --verbose> + +show detailed information about the encoding process and what's actually +being done. + +=head1 ENCODER OPTIONS + +B<--bitrate> I + +set the bitrate to I. default is 128. this option does not apply +to all formats. + +B<--freq> I + +set the frequency to I. default is 44100. this option does not apply +to all formats. + +B<--channels> I + +set the number of audio channels in the output file to I. this option +does not apply to all formats. + +B<--effect> I + +see B(1). this option only applies to the following: + +AIFF, AU, SND, RAW, VOC, SMP, AVR, and CDR + +B<--fcomp> I + +set flac compression level to I. fastest -0, highest -8, default -2 + +=over 4 + +=item 1 = fast + +=item 2 = simple + +=item 3 = medium (default) + +=item 4 = high + +=item 5 = extra high, + +=back + +B<--acomp> I + +set ape compression level to I. + +=over 4 + +=item 1000 = fast + +=item 2000 = normal + +=item 3000 = high (default) + +=item 4000 = extra high + +=item 5000 = insane + +=back + +B<--oggqual> I + +set ogg quality level to I. -1, very low and 10 very high, default 3 + +B<--spxqual> I + +set speex quality level to I. 0-10, default 8 (use --bitrate when using ffmpeg/avconv as encoder) + +B<--aacqual> I + +set aac, mp4, m4a, or m4b quality level to I. default 300 + +B<--mpcqual> I + +set mpc/mpp quality level to I. + +=over 4 + +=item thumb low quality/internet, (typ. 58... 86 kbps) + +=item radio medium (MP3) quality, (typ. 112...152 kbps - default) + +=item standard high quality (dflt), (typ. 142...184 kbps) + +=item xtreme extreme high quality, (typ. 168...212 kbps) + +=back + +B<--ofmode> I + +set off/ofr/ofs compression mode to I. normal, extra, and extranew modes +are recommended for general use. available options are: + +=over 4 + +=item fast + +=item normal (default) + +=item high + +=item extra + +=item best + +=item highnew + +=item extranew + +=item bestnew + +=back + +B<--ofopt> I + +set off/ofr/ofs optimization level to I. + +specify the optimization level in the engine. In order to achieve +optimal compression at all sample types, sample rates, and audio +content, the core compression engine has the possibility to find the +optimal values for its parameters, at the cost of slightly increased +compression time only. The default recommended value is fast. +do not use normal (or even high or best) for this parameter unless +encoding time does not matter and you want to obtain the smallest +possible file for a given compression mode. The difference between +the optimize levels fast and best (which is up to three times slower +than fast) is very small, generally under 0.05%, but may be also +larger in some rare cases. Note that the none optimize level is +forced by the encoder to fast optimize level for the extra, best, +highnew, extranew, and bestnew modes. + +available options are: + +=over 4 + +=item none + +=item fast (default) + +=item normal + +=item high + +=item best + +=back + +B<--bratio> I + +set bonk down sampling ratio. default 2 + +B<--bquanl> I + +set bonk quantanization level. default 1.0 + +B<--bpsize> I + +set bonk predictor size. default 128 + +=head1 TAGGING OPTIONS + +B + +tagging outside of the encoding process can only be performed on the +following audio types: + +=over 4 + +=item MP3 + +=item OGG + +=item FLA + +=item FLAC + +=back + +B<--artist> I + +set artist information to I. + +B<--title> I + +set title information to I. + +B<--track> I + +set track information to I. + +B<--year> I + +set year/date information to I. + +B<--album> I + +set album information to I. + +B<--genre> I + +set genre information to I. + +B<--comment> I + +set comment information to I. + +B<--taginfo> I + +show tagging information for I. multiple files can be specified +at once. + +=head1 RIPPING OPTIONS + +B<--rip> I + +rip selected tracks separated by comma or all from current disc. + +=over 4 + +=item pacpl --rip all --to flac + +=item pacpl --rip 1,3,9,15 --to flac + +=back + +B<--nocddb> + +disable cddb. use this option if you do not want tagging based on cddb. + +B<--noinput> + +disable cddb interactivity. this is enabled by default. + +B<--nscheme> I + +set naming scheme to I. default is %ar - %ti + +available options are: + +=over 4 + +=item %ar = artist + +=item %ti = song title + +=item %tr = track + +=item %yr = year + +=item %ab = album + +=back + +B --nscheme="(%tr)-%ti" + +B<--device> I + +set device to I. default is /dev/dvd + +B<--cdinfo> + +show cddb information for current disc. + +=head1 SEE ALSO + +=over 4 + +=item B(1) B(1) B(1) B(1) B(1) + +=item B(1) B(1) B(1) B(1) B(1) + +=item B(1) B(1) B(1) B(1) + +=item B(1) B(1) B(1) + +=item B(1) B(1) B(1) B(1) + +=item B(1) B(1) + +=back + +=head1 BUGS + +Report all bugs to Philip Lyons (vorzox@gmail.com) + +=head1 LICENSING + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +=head1 AUTHOR + +Copyright (C) 2005-2017 Philip Lyons (vorzox@gmail.com) -- 2.7.4 pacpl-6.1.0/patches/fix_destination_always_overwritten.patch0000644000175000017500000000103613275724626022324 0ustar pipidiff --git a/pacpl.in b/pacpl.in index 341e680..3c16141 100644 --- a/pacpl.in +++ b/pacpl.in @@ -2343,7 +2343,7 @@ sub proc_files { $encoder = $run{$to}{DEFAULT_ENCODER} if not $my_encoder; $decoder = $run{$if}{DEFAULT_DECODER} if not $my_decoder; - if (-e "$file.$to" and not $overwrite) { + if (-e "$dir/$file.$to" and not $overwrite) { pnotice("overwrite","$file.$to",1); $total_failed++; next; pacpl-6.1.0/patches/add_alac_decoder_m4a.patch0000644000175000017500000000125613275724626017047 0ustar pipidiff --git a/pacpl.in b/pacpl.in index 0f862f9..611bb2d 100644 --- a/pacpl.in +++ b/pacpl.in @@ -1403,6 +1403,11 @@ my $pm = Parallel::ForkManager->new($jobs); DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, + 'alac-decoder' => { + NAME => "alac-decoder", + DSTR => sub { "$dopts -f %o %i" }, + }, + }, ESTR => sub { "$eopts -w -q $aacqual %i -o %o" }, pacpl-6.1.0/patches/multiple-format-input.patch0000644000175000017500000000343513275724626017370 0ustar pipiDescription: Allow converting from multiple source formats When multiple source formats are used, e.g. by running `pacpl -t mpc myflac.flac myogg.ogg`, the same decoder is used for all the files. This patch fixes this bug. Author: Matteo Cypriani Origin: vendor Last-Update: 2016-10-14 --- a/pacpl +++ b/pacpl @@ -2374,6 +2374,7 @@ $files{"FILE$number"}{EXT} = "$ext"; $files{"FILE$number"}{NAME} = "$file"; $files{"FILE$number"}{OUTD} = "$outfile"; + $files{"FILE$number"}{DECODER} = "$decoder"; $number++; } @@ -2490,7 +2491,7 @@ # convert input to destination format sub convert { - my ($inf, $outf, $infmt, $iname, $oname) = @_; + my ($inf, $outf, $infmt, $iname, $oname, $dec) = @_; my $if = $infmt; $if =~ tr/A-Z/a-z/; @@ -2505,6 +2506,7 @@ # check to see if encoder/decoder exists. if not, see if we have one # that supports the desired input/output formats. + $decoder = $dec; check_encoder(); check_decoder($infmt); @@ -2597,7 +2599,7 @@ say "$msg" if not $gui; system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$msg\" 10 &") if $gui and $kde; system("notify-send \"$name\" \"$msg\" -t 35 -i $icon_path &") if $gui and $gnome; - convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}"); + convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}","$files{$_}{DECODER}"); $pm->finish; } pacpl-6.1.0/patches/fix_wma_tag_names.patch0000644000175000017500000000372313275724626016562 0ustar pipidiff --git a/pacpl.in b/pacpl.in index 5b9f7c2..341e680 100644 --- a/pacpl.in +++ b/pacpl.in @@ -2965,13 +2965,13 @@ when (/^ape$|^mpc$|^mpp$|^wv$/) { when (/^wma$/) { my $wma_tag = $tag_module->scan_tags($in_file)->{tags}; - $tag_name{title} = $wma_tag->{TITLE} if $wma_tag->{TITLE}; - $tag_name{track} = $wma_tag->{TRACKNUMBER} if $wma_tag->{TRACKNUMBER}; - $tag_name{artist} = $wma_tag->{AUTHOR} if $wma_tag->{AUTHOR}; - $tag_name{album} = $wma_tag->{ALBUMTITLE} if $wma_tag->{ALBUMTITLE}; - $tag_name{comment} = $wma_tag->{DESCRIPTION} if $wma_tag->{DESCRIPTION}; - $tag_name{year} = $wma_tag->{YEAR} if $wma_tag->{YEAR}; - $tag_name{genre} = $wma_tag->{GENRE} if $wma_tag->{GENRE}; + $tag_name{title} = $wma_tag->{Title} if $wma_tag->{Title}; + $tag_name{track} = $wma_tag->{'WM/TrackNumber'} if $wma_tag->{'WM/TrackNumber'}; + $tag_name{artist} = $wma_tag->{'WM/AlbumArtist'} if $wma_tag->{'WM/AlbumArtist'}; + $tag_name{album} = $wma_tag->{'WM/AlbumTitle'} if $wma_tag->{'WM/AlbumTitle'}; + $tag_name{comment} = $wma_tag->{'WM/Description'} if $wma_tag->{'WM/Description'}; + $tag_name{year} = $wma_tag->{'WM/Year'} if $wma_tag->{'WM/Year'}; + $tag_name{genre} = $wma_tag->{'WM/Genre'} if $wma_tag->{'WM/Genre'}; return 0; } pacpl-6.1.0/patches/30_readme_module.patch0000644000175000017500000000251713275724626016216 0ustar pipiAuthor: Cristian Greco Description: Better documentation for README.module (in particular, specify where to install user modules). Index: git/extra/README.module =================================================================== --- git.orig/extra/README.module 2014-10-29 10:58:38.608397451 +0100 +++ git/extra/README.module 2014-10-29 11:06:03.428377620 +0100 @@ -1,8 +1,14 @@ USER MODULES: -The best way to incorporate you own module is to copy the sample.m -to a new file and change the various values accordinly. If you're -familiar with Perl and hashes, then writing your own shouldn't be a +You can use modules to extend pacpl conversion features adding new supported +file formats. + +The best way to incorporate you own module is to copy the sample.m to a new +file and change the various values accordingly. Then place the module in +/etc/pacpl/modules and it will be automatically detected next time you run +pacpl. + +If you're familiar with Perl and hashes, then writing your own shouldn't be a problem. Wild card %i will be the input file, and wild card %o will be @@ -11,7 +17,5 @@ ESTR = string used to encode the temporary .wav file DSTR = string used to decode to the temporary .wav file - - It should be noted that for the time being --dopts and --eopts will no longer work with imported codecs. pacpl-6.1.0/patches/typos.patch0000644000175000017500000000270513275724626014267 0ustar pipiDescription: Fixes some typos in the manpage Author: Matteo Cypriani Origin: vendor Last-Update: 2016-10-13 --- a/pacpl +++ b/pacpl @@ -2384,7 +2384,7 @@ undef(@file); } -# process directorys and push all to @file arrary +# process directories and push all to @file arrary sub proc_dirs { if (@dir) { @@ -3569,19 +3569,19 @@ Parallel Processing, a CD ripping function with CDDB support, batch conversion, tag preservation for most supported formats, independent tag reading & writing, -service menus for KDE Dolphin/Konqueror, Gnome Nautilus script, and action +service menus for KDE Dolphin/Konqueror, GNOME Nautilus script, and action scripts for Nemo/Thunar are also provided. =head1 OPTIONS B<-t, --to> I -set encode format for the input file(s) or directory(s). you can see a +set encode format for the input file(s) or directory(ies). you can see a complete list of supported encode formats by using the B<--formats> option. B<-r, --recursive> -recursively scan and convert input folder(s) to desination format. +recursively scan and convert input folder(s) to destination format. B<-p, --preserve> @@ -3626,7 +3626,7 @@ B<-o, --only> I -only convert files matching extenstion. this option is useful when you have +only convert files matching extension. this option is useful when you have a directory or batch of files with mixed audio types and only need to convert one specific type. pacpl-6.1.0/patches/0001-Fix-installation-under-different-prefix-and-or-DESTD.patch0000644000175000017500000000540513275724626025305 0ustar pipiFrom 3f7aa5a851ef842d1d38d0f37db7dc21e60df3b8 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 22 Jan 2018 13:11:43 +0000 Subject: [PATCH 1/2] Fix installation under different --prefix and/or DESTDIR Use DESTDIR consistently. Use sysconfdir and pkgdatadir to track user-configured prefix. Remove unnecessary re-definitions of automake variables from Makefile.am. --- Makefile.am | 21 ++++----------------- Makefile.in | 11 ++++------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/Makefile.am b/Makefile.am index f52a21e..d3506f1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,23 +65,10 @@ RM = @RM@ -f SHELL = /bin/sh # -# Configured directories... -# - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = @bindir@ -datarootdir = @datarootdir@ -includedir = @includedir@ -libdir = @libdir@ -mandir = @mandir@ -docdir = @docdir@ - -# # Configuration files directories and other # -CONF_DIR = $(DESTDIR)/etc/$(PACKAGE_NAME) -PO_DIR = $(DESTDIR)/usr/share/pacpl/locale +CONF_DIR = $(DESTDIR)$(sysconfdir)/$(PACKAGE_NAME) +PO_DIR = $(DESTDIR)$(pkgdatadir)/locale MOD_DIR = $(CONF_DIR)/modules DOC_DIR = $(DESTDIR)$(docdir) MAN_DIR = $(DESTDIR)$(mandir)/man1 @@ -157,7 +144,7 @@ uninstall: uninstall-plugins $(RM) $(MAN_DIR)/pacpl.1.gz $(RM) -r $(CONF_DIR) $(RM) -r $(DOC_DIR) - $(RM) -r $(DESTDIR)/usr/share/pacpl + $(RM) -r $(DESTDIR)$(pkgdatadir) uninstall-plugins: if INSTALL_KDE @@ -173,4 +160,4 @@ if INSTALL_NEMO $(RM) $(NEMO_INSTALL_DIR)/PACPL-Convert $(RM) $(NEMO_INSTALL_DIR)/pacpl.nemo_action $(RM) $(ICON_DIR)/pacpl.png -endif \ No newline at end of file +endif diff --git a/Makefile.in b/Makefile.in index 04dbeb4..ff102dc 100644 --- a/Makefile.in +++ b/Makefile.in @@ -269,13 +269,10 @@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ - -# -# Configured directories... -# prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -311,8 +308,8 @@ ICON_DIR = $(DESTDIR)$(GNOMEDIR)/share/icons # # Configuration files directories and other # -CONF_DIR = $(DESTDIR)/etc/$(PACKAGE_NAME) -PO_DIR = $(DESTDIR)/usr/share/pacpl/locale +CONF_DIR = $(DESTDIR)$(sysconfdir)/$(PACKAGE_NAME) +PO_DIR = $(DESTDIR)$(pkgdatadir)/locale MOD_DIR = $(CONF_DIR)/modules DOC_DIR = $(DESTDIR)$(docdir) MAN_DIR = $(DESTDIR)$(mandir)/man1 @@ -698,7 +695,7 @@ uninstall: uninstall-plugins $(RM) $(MAN_DIR)/pacpl.1.gz $(RM) -r $(CONF_DIR) $(RM) -r $(DOC_DIR) - $(RM) -r $(DESTDIR)/usr/share/pacpl + $(RM) -r $(DESTDIR)$(pkgdatadir) uninstall-plugins: @INSTALL_KDE_TRUE@ $(RM) $(KDE_INSTALL_DIR)/pacpl.desktop -- 2.7.4 pacpl-6.1.0/patches/fix_config_value_0.patch0000644000175000017500000000070613275724626016636 0ustar pipidiff --git a/pacpl.in b/pacpl.in index 5c28750..436e140 100644 --- a/pacpl.in +++ b/pacpl.in @@ -175,7 +175,7 @@ if ($conf_file and -e $conf_file) { foreach (@conf_opts) { chomp; my ($k, $v) = split(/\s*=\s*/); - $config{$k} = $v if exists($config{$k}) and $v; + $config{$k} = $v if exists($config{$k}) and length($v); say "$lang{debug} $k = $v" if $debug == 1 and exists($config{$k}); } } pacpl-6.1.0/patches/fix_decoding_string_ffmpeg.patch0000644000175000017500000000121113275724626020434 0ustar pipidiff --git a/pacpl.in b/pacpl.in index 436e140..68619f9 100644 --- a/pacpl.in +++ b/pacpl.in @@ -2209,7 +2209,7 @@ foreach my $fork (@ffmpeg_forks) { $run{$codec}{DEFAULT_DECODER} = $fork; $run{$codec}{ENCODER}{$fork}{NAME} = $fork; $run{$codec}{DECODER}{$fork}{NAME} = $fork; - $run{$codec}{DECODER}{$fork}{DSTR} = sub {"-y %i $dopts %o"}; + $run{$codec}{DECODER}{$fork}{DSTR} = sub {"-y -i %i $dopts %o"}; $run{$codec}{ENCODER}{$fork}{ESTR} = sub {"-y -i %i $eopts -ab $bitrate.k -ar $freq -ac $channels %o"}; $run{$codec}{TAGS}{READ} = 0; $run{$codec}{TAGS}{WRITE} = 0; pacpl-6.1.0/patches/configure-exit0.patch0000644000175000017500000000074013275724626016116 0ustar pipiDescription: Have configure script quit with exit code 0 Author: Matteo Cypriani Origin: vendor Last-Update: 2016-10-13 --- a/configure +++ b/configure @@ -5381,4 +5381,4 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: make && make install" >&5 $as_echo "$as_me: make && make install" >&6;} -exit 1 +exit 0 --- a/configure.ac +++ b/configure.ac @@ -211,4 +211,4 @@ AC_MSG_NOTICE() AC_MSG_NOTICE([make && make install]) -exit 1 \ No newline at end of file +exit 0 pacpl-6.1.0/patches/0001-Choose-decoder-encoder-based-on-the-codec-and-not-th.patch0000644000175000017500000002117413275724626025216 0ustar pipiFrom 69ec774ea202d74f20891bf0e6adae89d1b61fb7 Mon Sep 17 00:00:00 2001 From: marcelpaulo Date: Mon, 26 Mar 2018 15:56:19 -0300 Subject: [PATCH] Choose decoder/encoder based on the codec and not the file extension: for m4a files, get the codec with Audio::Scan; for the others, use the extension as the codec --- codecs.conf | 3 +-- pacpl.in | 73 +++++++++++++++++++++++++++++++++++++++++++++---------------- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/codecs.conf b/codecs.conf index dffc4ea..5d6b47d 100644 --- a/codecs.conf +++ b/codecs.conf @@ -48,11 +48,10 @@ FLAC = flac,flac FLA = flac,flac -# MP4 / M4A # +# MP4 # # E: faac, ffmpeg, avconv # E: faad, ffmpeg, avconv, mplayer -M4A = faac,faad MP4 = faac,faad # MP3 # diff --git a/pacpl.in b/pacpl.in index 611bb2d..3267448 100644 --- a/pacpl.in +++ b/pacpl.in @@ -81,7 +81,7 @@ my # name, version my $name = "Perl Audio Converter"; -my $version = "6.0"; +my $version = "6.1"; # If these options are toggled, messages/errors will be displayed # via kdialog or zenity/notify-send (depending on environment) @@ -1333,7 +1333,8 @@ my $pm = Parallel::ForkManager->new($jobs); }, }, - m4a => { + # m4a container with AAC codec + mp4a => { DEFAULT_ENCODER => "faac", DEFAULT_DECODER => "faad", @@ -1403,18 +1404,50 @@ my $pm = Parallel::ForkManager->new($jobs); DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, }, + }, + + ESTR => sub { "$eopts -w -q $aacqual %i -o %o" }, + + TAGS => { + READ => 1, + WRITE => 1, + MODULE => "Audio::Scan", + }, + }, + + # m4a container with ALAC codec + alac => { + + DEFAULT_ENCODER => undef, + DEFAULT_DECODER => "alac-decoder", + + DECODER => { + 'alac-decoder' => { NAME => "alac-decoder", DSTR => sub { "$dopts -f %o %i" }, }, + + ffmpeg => { + NAME => "ffmpeg", + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + avconv => { + NAME => 'avconv', + DSTR => sub { "$dopts -y -i %i %o" }, + }, + + mplayer => { + NAME => "mplayer", + DSTR => sub { "-vc null -vo null -ao pcm:file=%o %i" }, + }, }, - ESTR => sub { "$eopts -w -q $aacqual %i -o %o" }, - TAGS => { READ => 1, - WRITE => 1, + WRITE => 0, MODULE => "Audio::Scan", }, }, @@ -2347,7 +2380,8 @@ sub proc_files { $decoder = $my_decoder if defined($my_decoder); $encoder = $run{$to}{DEFAULT_ENCODER} if not $my_encoder; - $decoder = $run{$if}{DEFAULT_DECODER} if not $my_decoder; + my $codec = ( $if eq "m4a" ? Audio::Scan->scan_info($i)->{info}->{tracks}[0]->{encoding} : $if ); + $decoder = $run{$codec}{DEFAULT_DECODER} if not $my_decoder; if (-e "$dir/$file.$to" and not $overwrite) { pnotice("overwrite","$file.$to",1); @@ -2355,10 +2389,10 @@ sub proc_files { next; } - if (check_input($file,$dir,$if) == 0) { + if (check_input($file,$dir,$codec) == 0) { pnotice("unk_encoder","$file.$ext",1), next unless(exists($run{$to}{ENCODER}{$encoder})); - pnotice("unk_decoder","$file.$ext",1), next unless(exists($run{$if}{DECODER}{$decoder})); + pnotice("unk_decoder","$file.$ext",1), next unless(exists($run{$codec}{DECODER}{$decoder})); get_visual_opts($to,$outdir) if $gui and not defined($first_run); @@ -2378,6 +2412,7 @@ sub proc_files { $files{"FILE$number"}{FILE} = "$dir/$file"; $files{"FILE$number"}{OUTF} = "$outdir/$outfile"; $files{"FILE$number"}{EXT} = "$ext"; + $files{"FILE$number"}{CODEC} = "$codec"; $files{"FILE$number"}{NAME} = "$file"; $files{"FILE$number"}{OUTD} = "$outfile"; $files{"FILE$number"}{DECODER} = "$decoder"; @@ -2497,7 +2532,7 @@ find ( sub { # convert input to destination format sub convert { - my ($inf, $outf, $infmt, $iname, $oname, $dec) = @_; + my ($inf, $outf, $infmt, $iname, $oname, $codec, $dec) = @_; my $if = $infmt; $if =~ tr/A-Z/a-z/; @@ -2514,17 +2549,17 @@ sub convert { # that supports the desired input/output formats. $decoder = $dec; check_encoder(); - check_decoder($infmt); + check_decoder($codec); - my $decode_string = $run{$if}{DECODER}{$decoder}{DSTR}->(); + my $decode_string = $run{$codec}{DECODER}{$decoder}{DSTR}->(); $decode_string =~ s/%i/\"$inf.$infmt\"/; $decode_string =~ s/%o/\"$outf.$$.wav\"/; $decode_string =~ s/(\$|\\)/\\$1/g; - pnotice("debug","\n$run{$if}{DECODER}{$decoder}{NAME} $decode_string", 2) if $dryrun; + pnotice("debug","\n$run{$codec}{DECODER}{$decoder}{NAME} $decode_string", 2) if $dryrun; # decode input file to temporary wav - system("$run{$if}{DECODER}{$decoder}{NAME} $decode_string $silent") if not $dryrun; + system("$run{$codec}{DECODER}{$decoder}{NAME} $decode_string $silent") if not $dryrun; # remove temporary wav file and die if decode fails if ($? > 0) { @@ -2540,7 +2575,7 @@ sub convert { system("normalize $nopts \"$outf.$$.wav\"") if $normalize; # copy meta-data from input file to %tag_name - read_tags("$inf.$infmt", "$if") if $run{$if}{TAGS}{READ} == 1 and not $dryrun; + read_tags("$inf.$infmt", "$codec") if $run{$codec}{TAGS}{READ} == 1 and not $dryrun; my $tag_opts = format_tags($to); # tag options for mp4/m4a/m4b/mpc/mpp/bonk/spx/wv @@ -2605,7 +2640,7 @@ sub fork_files { say "$msg" if not $gui; system("kdialog --icon $icon_path --title \"$name\" --passivepopup \"$msg\" 10 &") if $gui and $kde; system("notify-send \"$name\" \"$msg\" -t 35 -i $icon_path &") if $gui and $gnome; - convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}","$files{$_}{DECODER}"); + convert("$files{$_}{FILE}","$files{$_}{OUTF}","$files{$_}{EXT}","$files{$_}{NAME}","$files{$_}{OUTD}","$files{$_}{CODEC}","$files{$_}{DECODER}"); $pm->finish; } @@ -2653,12 +2688,12 @@ sub check_input { my $file = shift; my $dir = shift; - my $ext = shift; + my $codec = shift; perror("no_encoder","$to") unless(defined($run{$to}{ENCODER})); - unless(defined($run{$ext}{DECODER})) { - pnotice("no_decoder","$ext",2) if $verbose or not $only; + unless(defined($run{$codec}{DECODER})) { + pnotice("no_decoder","$codec",2) if $verbose or not $only; $total_failed++; return 1; } @@ -2940,7 +2975,7 @@ sub read_tags { return 0; } - when (/^mp4$|^m4a$|^m4b$/) { + when (/^(mp4|m4b|alac|mp4a)$/) { my $mp4_tag = $tag_module->scan_tags($in_file)->{tags}; $tag_name{title} = $mp4_tag->{NAM} if $mp4_tag->{NAM}; -- 2.14.1 pacpl-6.1.0/patches/80-fix_enforce_outdir_switch_if_p_switch_is_used.patch0000644000175000017500000000124113275724626024657 0ustar pipiDescription: If the user use the --preserve flag, he must use the --outdir flag too, we enforce that. Author: Maxime Chatelle Last-Updated: 2014-10-29 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697519 Forwarded: no Index: git/pacpl =================================================================== --- git.orig/pacpl 2014-10-29 11:18:15.544344979 +0100 +++ git/pacpl 2014-10-29 11:27:13.592321550 +0100 @@ -352,6 +352,10 @@ 'cdinfo' => \$cdinfo, ); +if (defined($preserve) && !defined($outdir)) { + die "You must specify --outdir when you use --preserve option. See man page.\n"; +} + $silent = '' if $verbose; my $opts; pacpl-6.1.0/po/0000755000175000017500000000000013275724626011053 5ustar pipipacpl-6.1.0/po/et.po0000644000175000017500000001630213275724626012025 0ustar pipi################################################################## # pacpl translation for version 4.0.1 and newer # Estonian - Priit Jõerüüt, priit [ät] joeruut [dot] com # Codepage - UTF-8 # Estonian translation copyright - Priit Jõerüüt # Licence - see pacpl licence ################################################################## # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ############################## # Error messages - Veateated # ############################## error = viga failed = toiming ei õnnestunud: bad_input = väljundvorming ei ole toetatud. multi_out = --outfile parameetrit (võtit) ei saa kasutada mitme faili kodeerimisel. no_config = Ei leidnud konfiguratsioonifaili... kasutan vaikeseadeid. unk_encoder = valitud kodeerija ei sobi: unk_decoder = valitud dekodeerija ei sobi: no_decoder = Hoiatus: järgnevat faili ei õnnestunud dekodeerida: no_encoder = Järgnevasse vormingusse kodeerimine ei ole toetatud: no_encode_app = ei leidnud kodeerimiseks sobilikku rakendust: no_decode_app = ei leidnud dekodeerimiseks sobilikku rakendust: no_app = Ei lednud rakendust või vajalikku teeki: no_outdir = väljundkataloogi ei ole olemas. no_infile = Ei suuda leida sellist faili või kataloogi (kindluse mõttes kasuta näiteks absoluutset failiteed): no_input = defineeritud peab olema vähemalt üks sisendfail. no_read_tag = Ei saanud lugeda järgnevat lipikut (tag): no_write_tag = Ei saanud kirjutada järgnevat lipikut (tag): no_disc = Ei leidnud CD-plaati: no_cddb = Ei leidnud selle plaadi kohta cddb (välise CD-andmebaasi) kirjeid. Kasuta --nocddb parameetrit (võtit). no_kdialog = Ei leidnud kdialog tarkvara. Paigalda kdebase pakk. need_outdir = Väljundkataloog peab olema kirjeldatud. encode_failed = Kodeerimine ebaõnnestus järgneva olekuteatega: decode_failed = Dekodeerimine ebaõnnestus järgneva olekuteatega: empty_dir = Kataloog oli tühi, proovi kasutada --recursive parameetrit (võtit): opening_dir = Ei saanud avada kataloogi: opening_file = Ei saanud avada faili: seek_help = Vaata lisateavet pacpl võimaluste kohta 'pacpl --help' või 'pacpl --longhelp' päringutega. #################### # Notices - Teated # #################### converting = Konverteerin: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Konverteerimine lõpetatud. removed_tmp = Kustutasin ajutise faili: removed_src = Kustutasin lähtefaili: enc_fmts = kodeerimisvormingud: dec_fmts = dekodeerimisvormingud: tag_info = loen lipikut (tag): write_tag_i = Kirjutan lipikut (tag): creating_dir = Loon kataloogi: imported = Laetud moodulid: debug = Debug- ehk veaotsingu väljund: loaded_config = Laetud konfiguratsioonifail: ripping_track = CD pala failiks kopeerimine: total_converted = Konverteeritud faile kokku: overwrite = Väljundfail on juba olemas. Olemasoleva faili ülekirjutamiseks kasuta --overwrite parameetrit (võtit). show_encoders = kodeerijad show_decoders = dekodeerijad ############################################################################### # user prompts for Konqueror & Dolphin - Konqueror ja Dolphin liideste päringud # ############################################################################### gui_overwrite = kas kirjutan väljundfaili üle kui fail juba olemas on? (1 = jah, 0 = ei) gui_bitrate = vali bitikiirus gui_freq = audio sämplingusagedus gui_chans = audiokanaleid gui_fcomp = FLAC kompressioonitase gui_acomp = APE kompressioonitase gui_oggqual = Ogg Vorbis kvaliteeditase gui_spxqual = speex kvaliteeditase gui_aacqual = AAC/MP4/M4A kvaliteeditase gui_mpcqual = Musepack kvaliteeditase gui_ofmode = OptimFrog kompressioonirežiim gui_ofopt = OptimFrog optimiseerimistase gui_bratio = BONK sämplingu alandamise suhtarv gui_bquanl = BONK kvantisatsioonitase gui_bpsize = BONK ennustusarv gui_outdir = Select output folder ##################################### # Help menu text - Abiteabe tekstid # ##################################### to = väljundvorming recursive = konverteeri kataloog(e) rekursiivselt preserve = säilita kataloogide struktuur formats = loenda toetatud kodeerimis- ja dekodeerimisvormingud only = konverteeri vaid nimetatud laiendiga failid keep = jäta alles sihtvormingus failid jobs = number of simultaneous files to process help = käesolev abiteave longhelp = terviklik parameetrite loetelu version = näita tarkvara versiooni update = check for newer version usage = Õige kasutus on: pacpl --to [fail(id)/kataloog(id)] defopts = turn off default encoder options (0) eopts = kasutaja poolt määratud täiendavad suvandid (eelistused) kodeerimiseks dopts = kasutaja poolt määratud täiendavad suvandid (eelistused) dekodeerimiseks nopts = kasutaja määratud suvandid (eelistused) normaliseerimise jaoks outfile = väljundfaili nimi outdir = väljundkataloogi nimi dryrun = ära konverteri (kuiv trenn) overwrited = kirjuta väljundfail üle normalize = normaliseeri wav-fail enne kodeerimist delete = kustuta lähtefailid peale konveteerimist encoder = määratle alternatiivne kodeerija decoder = määratle alternatiivne dekodeerija verbose = näita programmi töö käigus detailset teavet tegevuse kohta user_opts = Kasutaja suvandid: enc_opts = Kodeerimisega seotud suvandid: bitrate = bitikiirus (vaikimisi 128) freq = audiosagedus (vaikimisi 44100) channels = audiokanalite arv (vaikimisi 2) effect = sox efekt (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = flac/fla kompressiooni tase (vaikimisi 2) acomp = ape kompressiooni tase (vaikimisi 3000) oggqual = ogg vorbis kvaliteeditase (vaikimisi 3) spxqual = spx kvaliteeditase (vaikimisi 8) aacqual = aac/mp4/m4a kvaliteeditase (vaikimisi 100) mpcqual = mpc/mpp kvaliteeditase (vaikimisi radio) ofmode = ofr/ofs viis (vaikimisi normal) ofopt = ofr/ofs optimisatsion (vaikimisi fast) bratio = bonk sämplingu alandamise suhtarv (vaikimisi 2) bquanl = bonk kvantisatsioonitase (vaikimisi 1.0) bpsize = bonk ennustusarv (vaikimisi 128) tag_opts = Lipikute (tag) kirjutamisega seotud suvandid: artist = määra esitaja title = määra loo pealkiri track = määra loo number year = määra albumi või loo aasta või kuupäev album = määra albumi pealkiri või nimetus genre = määra žanr comment = määra kommentaarid või märkused taginfo = näita valitud faili lipikuid (tag) tag_usage = Lipikute (tag) kuvamise ja määramise kasutus: pacpl [fail(id)] rip_opts = CD-plaadil asuvate lugude faili(de)ks kopeerimise suvandid: rip = kopeeri valitud plaadi lood (komadega eraldadtd lugude numbrid) või kõik plaadi lood nocddb = ära luba cddb-päringuid (välise CD-andmebaasi päringuid) noinput = ära luba cddb (välise CD-andmebaasi) interaktiivsust nscheme = reeglid mille alusel moodustada failide nimed cdinfo = näita selle plaadi cddb (välise CD-andmebaasi) teavet device = plaadimängija (vaikimisi /dev/dvd) rip_usage = Lugude CD-lt failiks kopeerimise kasutus: pacpl --rip [lugu(lood)/kõik (all)] --to pacpl-6.1.0/po/es.po0000644000175000017500000001437613275724626012035 0ustar pipi############################################ # Español - Antonio (ac_z01@yahoo.es) ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = error failed = failed: bad_input = formato de destino no soportado. multi_out = --outfile no puede ser usado cuando se codifican varios ficheros. no_config = fichero de configuración no encontrado... usando parámetros por defecto. unk_encoder = selected encoder not valid for: unk_decoder = selected decoder not valid for: no_decoder = Aviso: el siguiente fichero no puede ser codificado: no_encoder = codificación de los siguientes 'para' no esta soportada: no_encode_app = could not find suitable application to encode: no_decode_app = could not find suitable application to decode: no_app = no encuentro la aplicación: no_outdir = directorio de salida no existe. no_infile = Lo siguiente no es un fichero o un directorio: no_input = Debe especificar al menos un archivo de entrada. no_read_tag = No se ha podido leer la etiqueta de: no_write_tag = No se ha podido escribir la etiqueta de: no_disc = No se puede abrir el disco de audio: no_cddb = no pudo encontrar la entrada cddb . Use la opción -- nocddb . no_kdialog = kdialog no se encuentra instalado. Instale el paquete kdebase. need_outdir = Debe especificar un directorio de salida. encode_failed = la codificación ha fallado con el estatus de salida: decode_failed = la decodificación ha fallado con el estatus de salida: empty_dir = directorio vacío, intente utilizar la opción --recursive opening_dir = no se puede abrir el directorio: opening_file = no se puede abrir el fichero: seek_help = use 'pacpl --help' o 'pacpl --longhelp' para la lista de opciones. ########### # Notices # ########### converting = Convirtiendo: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Conversión completada. removed_tmp = eliminado fichero temporal: removed_src = eliminado el fichero origen: enc_fmts = formato de codificación: dec_fmts = formato de decodificación: tag_info = etiquetando información para: write_tag_i = escribiendo información de etiqueta para: creating_dir = creando directorio: imported = importando módulos: debug = depuración: loaded_config = cargando fichero de configuración: ripping_track = Extrayendo pista: total_converted = Total files converted: overwrite = el archivo de salida existe. use --overwrite para reemplazar este archivo. show_encoders = encoders for show_decoders = decoders for ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = ¿sobreescribir el archivo de salida si existe? (1 = s1, 0 = no) gui_bitrate = selecciona bitrate gui_freq = ratio de muestreo de audio gui_chans = canales de audio gui_fcomp = nivel de compresión FLAC gui_acomp = nivel de compresión APE gui_oggqual = calidad de salida Ogg Vorbis gui_spxqual = speex quality level gui_aacqual = nivel de calidad AAC/MP4/M4A gui_mpcqual = nivel de calidad Musepack gui_ofmode = modo de compresión OptimFrog gui_ofopt = nivel de optimización OptimFrog gui_bratio = BONK downsampling ratio gui_bquanl = BONK quantanization level gui_bpsize = BONK predictor size gui_outdir = Select output folder ################## # Help menu text # ################## to = formato destino recursive = conversión recursiva de carpeta(s) preserve = preservar la estructura de directorio formats = lista de formatos codificación/decodificación only = sólo convertir los ficheros que coincidan con la extensión keep = mantener la correspondencia de formato destino de los ficheros. jobs = number of simultaneous files to process help = este es el menu de ayuda longhelp = lista completa de opciones version = ver información de la versión update = check for newer version usage = use: pacpl --to [archivo(s)/directorio(s)] defopts = turn off default encoder options (0) eopts = opciones de usuario para el codificador dopts = opciones de usuario para el decodificador nopts = user supplied normalize options outfile = nombre fichero de salida outdir = directorio de salida dryrun = no convertir archivos overwrited = sobreescribir archivo destino normalize = normalize wav file before encoding delete = Eliminar el fichero fuente después de la conversión encoder = specify an alternate encoder decoder = specify an alternate decoder verbose = mostrar información detallada user_opts = opciones de usuario: enc_opts = opciones de codificación: bitrate = bitrate (def. 128) freq = frecuencia audio (def. 44100) channels = Número de canales de audio (def. 2) effect = efectos de sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = nivel de compresión flac/fla (def. 2) acomp = nivel de compresión ape (def. 3000) oggqual = nivel de calidad ogg (def. 3) spxqual = nivel de calidad spx (def. 8) aacqual = nivel de calidad aac/mp4/m4a (def. 100) mpcqual = nivel de calidad mpc/mpp (def. radio) ofmode = modo ofr/ofs (def. normal) ofopt = optimización fr/ofsn (def. fast) bratio = bonk down sampling ratio (def. 2) bquanl = bonk quantization level (def. 1.0) bpsize = bonk predictor size (def. 128) tag_opts = opciones de etiqueta: artist = Establecer la información sobre el artista title = poner título track = poner numero a la pista year = poner año/fecha al álbum/pista album = poner información de álbum tÍtulo genre = poner género comment = poner comentarios taginfo = mostrar información de etiqueta para el fichero seleccionado tag_usage = usot de etiquetado: pacpl [archivo(s)] rip_opts = opciones de extracción: rip = extraer pistas separadas por comas o todo nocddb = Desactivar cddb noinput = Desactivar interactividad cddb nscheme = nombre de esquema cdinfo = Muestrala información cddb para el disco actual device = default = /dev/dvd rip_usage = uso de la extracción: pacpl --rip [pista(s)/all] --to pacpl-6.1.0/po/pl.po0000644000175000017500000001431213275724626012027 0ustar pipi############################################ # Polish - Michał Smoczyk (msmoczyk@wp.pl) ############################################ # # Instrukcje tłumaczenia: # # 1) tłumacz tylko tekst po znaku równości = (tłumacz tylko wartość, a nie klucz) # 2) upewnij się, że po obu stronach znaku równości jest tylko jedna spacja # 3) upewnij się, że podałeś nawzę języka i swoje dane (adres/e-mail) na górze pliku # 4) sprawdź pisownię # 5) proszę przetłumacz również te instrukcje i dołącz je do pliku lang.po # # Wyślij swoje tłumaczenie do vorzox@gmail.com ##################### # Komunikaty błędów # ##################### error = błąd failed = niepowodzenie: bad_input = format docelowy nie jest obsługiwany. multi_out = opcja --outfile nie może być użyta kiedy kodujesz wiele plików. no_config = nie znaleziono pliku konfiguracyjnego... użycie domyślnych ustawień. unk_encoder = wybrany koder nieodpowiedni dla: unk_decoder = wybrany dekoder nieodpowiedni dla: no_decoder = ostrzeżenie: następujący plik nie może być zdekodowany: no_encoder = kodowanie do wybranego formatu tego pliku/katalogu nie jest obługiwane: no_encode_app = nie można znaleźć odpowiedniego programu aby zakodować: no_decode_app = nie można znaleźć odpowiedniego programu aby zdekodować: no_app = nie można odnaleźć aplikacji: no_outdir = katalog wyjściowy nie istnieje. no_infile = nie jest to plik ani katalog: no_input = musisz podać co najmniej jeden plik wejściowy. no_read_tag = nie można odczytać taga dla: no_write_tag = nie można zapisać taga dla: no_disc = nie można otworzyć dysku audio: no_cddb = nie można odnaleźć wpisu cddb. użyj opcji --nocddb. no_kdialog = nie odnaleziono kdialog. zainstaluj pakiet kdebase. need_outdir = musisz podać katalog docelowy. encode_failed = kodowanie zakończone niepowodzeniem ze statusem: decode_failed = dekodowanie zakończone niepowodzeniem ze statusem: empty_dir = katalog jest pusty, spróbuj użyc opcji --recursive: opening_dir = nie można otworzyć katalogu: opening_file = nie można otworzyć pliku: seek_help = zobacz 'pacpl --help' lub 'pacpl --longhelp' w celu zapoznania się z listą opcji. ############## # Komunikaty # ############## converting = Konwertowanie: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Konwersja zakończona. removed_tmp = usunięto plik tymczasowy: removed_src = usunięto plik źródłowy: enc_fmts = formaty kodowania: dec_fmts = formaty dekodowania: tag_info = informacja zawarta w tagach dla: write_tag_i = zapisywanie taga dla: creating_dir = tworzenie katalogu: imported = zaimportowane moduły: debug = debugowanie: loaded_config = załadowany plik konfiguracyjny: ripping_track = Zgrywanie ścieżki: total_converted = Łącznie przekonwertowanych plików: overwrite = plik wyjściowy istnieje. użyj opcji --overwrite aby zastąpić istniejący plik. show_encoders = kodery dla show_decoders = dekodery dla ###################################### # Zapytania dla Konquerora i Dolphina # ###################################### gui_overwrite = czy nadpisać plik wyjściowy jeśli istnieje? (1 = tak, 0 = nie) gui_bitrate = wybierz bitrate gui_freq = częstość próbkowania audio gui_chans = kanały audio gui_fcomp = poziom kompresji FLAC gui_acomp = poziom kompresji APE gui_oggqual = poziom jakości Ogg Vorbis gui_spxqual = poziom jakości speex gui_aacqual = poziom jakości AAC/MP4/M4A gui_mpcqual = poziom jakości Musepack gui_ofmode = tryb kompresji OptimFrog gui_ofopt = poziom optymalizacji OptimFrog gui_bratio = BONK downsampling ratio gui_bquanl = poziom BONK quantanization gui_bpsize = rozmiar BONK predictor gui_outdir = Select output folder ################# # Teksty pomocy # ################# to = format docelowy recursive = konwertuj rekursywnie katalog(i) preserve = zachowaj strukturę katalogu formats = wyświetl listę obsługiwanych formatów kodowania/dekodowania only = konwertuj tylko pliki z poddanym rozszerzeniem keep = zachowaj oryginalne pliki, nie koduj ich ponownie jobs = number of simultaneous files to process help = wyświetl to menu pomocy longhelp = lista wszystkich opcji version = wyświetl informację o wersji programu update = check for newer version usage = użycie: pacpl --to [plik(i)/katalog(i)] defopts = turn off default encoder options (0) eopts = opcje kodera użytkownika dopts = opcje dekodera użytkownika nopts = opcje normalizacji użytkownika outfile = nazwa pliku wyjściowego outdir = katalog docelowy dryrun = nie konwertuj plików overwrited = nadpisz plik docelowy normalize = zrormalizuj plik wav przed zakodowaniem delete = usuń plik źródłowy po konwersji encoder = podaj alternatywny koder decoder = podaj alternatywny dekoder verbose = pokaż szczegółowe informacje user_opts = opcje użytkownika: enc_opts = opcje kodowania: bitrate = bitrate (domyślnie 128) freq = częstotliwość audio (domyślnie 44100) channels = liczba kanałów audio (domyślnie 2) effect = efekt sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = poziom kompresji flac/fla (domyślnie 2) acomp = poziom kompresji ape (domyślnie 3000) oggqual = poziom jakości ogg (domyślnie 3) spxqual = poziom jakości spx (domyślnie 8) aacqual = poziom jakości aac/mp4/m4a (domyślnie 100) mpcqual = poziom jakości mpc/mpp (domyślnie radio) ofmode = tryb ofr/ofs (domyślnie normal) ofopt = optymalizacja ofr/ofs (domyślnie fast) bratio = bonk down sampling ratio (domyślnie 2) bquanl = poziom bonk quantization (domyślnie 1.0) bpsize = rozmiar bonk predictor (domyślnie 128) tag_opts = opcje tagowania: artist = ustaw informację o artyście title = ustaw tytuł track = ustaw numer ścieżki year = ustaw rok/datę albumu lub ścieżki album = ustaw tytuł albumu genre = ustaw rodzaj comment = ustaw komentarz taginfo = pokaż informację zawartą w tagach dla wybranego pliku tag_usage = tagowanie: pacpl [plik(i)] rip_opts = opcje zgrywania audio: rip = zgrywa ścieżki oddzielone przecinkiem lub wszystkie nocddb = wyłącz cddb noinput = wyłącz interaktywność cddb nscheme = schemat nazw cdinfo = pokaż informację cddb dla bieżącego dysku device = domyślnie = /dev/dvd rip_usage = zgrywanie audio: pacpl --rip [ścieżka(i)/all] --to pacpl-6.1.0/po/en_US.po0000644000175000017500000001305413275724626012427 0ustar pipi############################################ # English - Philip Lyons (vorzox@gmail.com) ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = error failed = failed: bad_input = destination format not supported. multi_out = --outfile can not be used when encoding multiple files. no_config = configuration file not found...using default settings. unk_encoder = selected encoder not valid for: unk_decoder = selected decoder not valid for: no_decoder = warning: no decoder exists for file type: no_encoder = encoding 'to' the following is not supported: no_encode_app = could not find suitable application to encode: no_decode_app = could not find suitable application to decode: no_app = could not find application: no_outdir = output directory does not exist. no_infile = the following is not a file or directory: no_input = you must specify at least one input file. no_read_tag = could not read tag for: no_write_tag = could not write tag for: no_disc = unable to open audio disc: no_cddb = could not find cddb entry. use the --nocddb option. no_kdialog = kdialog not found. install kdebase package. need_outdir = you must specify an output directory. encode_failed = encode failed with exit status: decode_failed = decode failed with exit status: empty_dir = directory empty, try using the --recursive option: opening_dir = could not open directory: opening_file = could not open file: seek_help = see 'pacpl --help' or 'pacpl --longhelp' for a list of options. ########### # Notices # ########### converting = Converting: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = ..done. removed_tmp = removed temporary file: removed_src = removed source file: enc_fmts = encode formats: dec_fmts = decode formats: tag_info = tagging information for: write_tag_i = writing tag information for: creating_dir = creating directory: imported = imported modules: debug = debug: loaded_config = loaded configuration file: ripping_track = Ripping track: total_converted = Total files converted: overwrite = output file exists. use --overwrite to replace existing file. show_encoders = encoders for show_decoders = decoders for ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = overwrite output file if it exists? (1 = yes, 0 = no) gui_bitrate = select bitrate gui_freq = audio sampling rate gui_chans = audio channels gui_fcomp = FLAC compression level gui_acomp = APE compression level gui_oggqual = Ogg Vorbis quality level gui_spxqual = speex quality level gui_aacqual = AAC/MP4/M4A quality level gui_mpcqual = Musepack quality level gui_ofmode = OptimFrog compression mode gui_ofopt = OptimFrog optimization level gui_bratio = BONK downsampling ratio gui_bquanl = BONK quantanization level gui_bpsize = BONK predictor size gui_outdir = Select output folder ################## # Help menu text # ################## to = destination format recursive = recursively convert directory(s) preserve = preserve directory structure formats = list supported encode/decode formats only = only convert files matching extension keep = keep files matching destination format help = this help menu jobs = number of simultaneous files to process longhelp = complete list of options version = display version information usage = usage: pacpl --to [file(s)/directory(s)] defopts = turn off default encoder options (0) eopts = user supplied encoder options dopts = user supplied decoder options nopts = user supplied normalize options outfile = output file name outdir = output directory dryrun = do not convert files overwrited = overwrite destination file normalize = normalize wav file before encoding delete = remove source file after conversion encoder = specify an alternate encoder decoder = specify an alternate decoder verbose = show detailed information user_opts = user options: enc_opts = encoder options: bitrate = bitrate (def. 128) freq = audio frequency (def. 44100) channels = number of audio channels (def. 2) effect = sox effect (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = flac/fla compression level (def. 2) acomp = ape compression level (def. 3000) oggqual = ogg quality level (def. 3) spxqual = spx quality level (def. 8) aacqual = aac/mp4/m4a quality level (def. 100) mpcqual = mpc/mpp quality level (def. radio) ofmode = ofr/ofs mode (def. normal) ofopt = ofr/ofs optimization (def. fast) bratio = bonk down sampling ratio (def. 2) bquanl = bonk quantization level (def. 1.0) bpsize = bonk predictor size (def. 128) tag_opts = tagging options: artist = set artist information title = set title track = set track number year = set year/date of the album/track album = set album title information genre = set genre comment = set comments taginfo = show tagging information for selected file tag_usage = tagging usage: pacpl [file(s)] rip_opts = ripping options: rip = rip tracks separated by comma or all nocddb = disable cddb noinput = disable cddb interactivity nscheme = naming scheme cdinfo = show cddb information for current disc device = default = /dev/dvd rip_usage = rip usage: pacpl --rip [track(s)/all] --to pacpl-6.1.0/po/nl_NL.po0000644000175000017500000001372213275724626012422 0ustar pipi############################################ # Dutch - Sander Pientka (cumulus0007@gmail.com) ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = fout failed = mislukt: bad_input = uitvoerformaat wordt niet ondersteund. multi_out = --outfile kan niet gebruikt worden bij het encoderen van meerdere bestanden. no_config = configuratiebestand niet gevonden...standaard instellingen gebruiken. unk_encoder = geselecteerde encoder is niet geldig voor: unk_decoder = geselecteerde decoder is niet geldig voor: no_decoder = waarschuwing: het volgende bestand kon niet gedecodeerd worden: no_encoder = naar het volgende encoderen wordt niet ondersteund: no_encode_app = kon geen geschikte toepassing vinden om te encoderen: no_decode_app = kon geen geschikte toepassing vinden om te decoderen: no_app = kon toepassing niet vinden: no_outdir = uitvoerlocatie bestaat niet. no_infile = het volgende is niet een bestand of map: no_input = ten minste één invoerbestand is vereist. no_read_tag = kon tag niet lezen van: no_write_tag = kon tag niet schrijven naar: no_disc = kan audioschijf niet openen: no_cddb = kon cddb-waarde niet vinden. gebruik de optie --nocddb. no_kdialog = kon kdialog niet vinden. installeer het pakket kdebase. need_outdir = een uitvoerlocatie is vereist. encode_failed = encoderen mislukte met afsluitstatus: decode_failed = decoderen mislukte met afsluitstatus:: empty_dir = locatie is leeg, probeer de optie --recursive option: opening_dir = kon locatie niet openen: opening_file = kon bestand niet openen: seek_help = zie 'pacpl --help' of 'pacpl --longhelp' voor een lijst met opties. ########### # Notices # ########### converting = Omzetten: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = ..klaar. removed_tmp = tijdelijk bestand verwijderd: removed_src = bronbestand verwijderd: enc_fmts = encodingsformaten: dec_fmts = encodingsformaten: tag_info = informatie taggen voor: write_tag_i = taginformatie schrijven voor: creating_dir = map maken: imported = geïmporteerde modules: debug = debug: loaded_config = configuratiebestand geladen: ripping_track = track rippen: total_converted = Totaal aantal tracks omgezet: overwrite = uitvoerbestand bestaat al. gebruik --overwrite om het bestaande bestand te vervangen. show_encoders = encoders voor show_decoders = decoders voor ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = uitvoerbestand overschrijven als het al bestaat? (1 = ja, 0 = nee) gui_bitrate = selecteer bitrate gui_freq = audio sampling rate gui_chans = audiokanalen gui_fcomp = FLAC-compressieniveau gui_acomp = APE-compressieniveau gui_oggqual = Ogg Vorbis-kwaliteitsniveau gui_spxqual = speex-kwaliteitsniveau gui_aacqual = AAC/MP4/M4A-kwaliteitsniveau gui_mpcqual = Musepack-kwaliteitsniveau gui_ofmode = OptimFrog-compressiemodus gui_ofopt = OptimFrog-optimalisatieniveau gui_bratio = BONK-downsamplingverhouding gui_bquanl = BONK-kwantisatieniveau gui_bpsize = BONK-predictorgrootte gui_outdir = Select output folder ################## # Help menu text # ################## to = bestemmingsformaat recursive = mappen recursief omzetten preserve = mappenstructuur behouden formats = ondersteunde en/decodingformaten weergeven only = Alleen bestanden omzetten die overeenkomen met extensie keep = laat bestanden het bestemmingsformaat aanhouden jobs = number of simultaneous files to process help = dit hulpmenu longhelp = complete lijst van opties version = versie-informatie weergeven update = check for newer version usage = gebruik: pacpl --to [bestand(en)/map(pen)] eopts = encoderopties van gebruiker dopts = decoderopties van gebruiker nopts = normalisatieopties van gebruiker outfile = output file name outdir = output directory dryrun = bestanden niet daadwerkelijk omzetten overwrited = bestemmingsbestand overschrijven normalize = wav-bestand normaliseren na omzetten delete = bronbestand verwijderen na omzetten encoder = een alternatieve encoder opegeven decoder = een alternatieve decoder opegeven verbose = uitgebreide informatie weergeven user_opts = gebruikersopties: enc_opts = encoderopties: bitrate = bitrate (standaard: 128) freq = audiofrequentie (standaard: 44100) channels = aantal audiokanelen (standaard: 2) effect = sox-effect (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = flac/fla-compressieniveau (standaard: 2) acomp = ape-compressieniveau (standaard: 3000) oggqual = ogg-kwaliteitsniveau (standaard: 3) spxqual = spx-kwaliteitsniveau (standaard: 8) aacqual = aac/mp4/m4a-kwaliteitsniveau (standaard: 100) mpcqual = mpc/mpp-kwaliteitsniveau (standaard: radio) ofmode = ofr/ofs-modus (standaard: normaal) ofopt = ofr/ofs-optimalisatie (standaard: snel) bratio = bonk-downsamplingverhouding (standaard: 2) bquanl = bonk-quantisatieverhouding (standaard: 1.0) bpsize = bonk-predictorgrootte (standaard: 128) tag_opts = tagopties: artist = artiestinformatie instellen title = titel instellen track = tracknummer instellen year = jaar/datum van track/album instellen album = albumtitelinformatie instellen genre = genre instellen comment = commentaar instellen taginfo = taginformatie voor geselecteerd bestand weergeven tag_usage = taggebruik: pacpl [bestand(en)] rip_opts = ripopties: rip = rip tracks separated by comma or all nocddb = cddb uitschakelen noinput = cddb-interactiviteit uitschakelen nscheme = benoemingsschema cdinfo = cddb-informatie van huidige schijf weergeven device = standaard: = /dev/dvd rip_usage = ripgebruik: pacpl --rip [track(s)/alles] --to pacpl-6.1.0/po/ro.po0000644000175000017500000001433713275724626012043 0ustar pipi############################################ # Romana - Sabadac Petru-Gabriel (the_l0st_treasure@yahoo.com) ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = eroare failed = esuat: bad_input = formatul de destinatie nu este suportat. multi_out = optiunea --outfile nu poate fi folosita la codarea mai multor fisiere. no_config = fisierul de configurare nu a fost gasit...utilizam setarile implicite. unk_encoder = encoderul selectat nu este valid pentru: unk_decoder = decoderul selectat nu este valid pentru: no_decoder = avertisment: urmatorul fisier nu a putut fi decodat: no_encoder = codificare 'la' urmatorul tip de fisiere nu este suportata: no_encode_app = nu am putut gasi o aplicatie potrivita pentru a codifica: no_decode_app = nu am putut gasi o aplicatie potrivita pentru a decodifica: no_app = nu am putut gasi aplicatia: no_outdir = directorul de iesire nu exista. no_infile = urmatorul nu este un fisier sau director: no_input = trebuie sa specifici cel putin un fisier de intrare. no_read_tag = nu am putut citi tag-ul pentru: no_write_tag = nu am putut scrie tag-ul pentru: no_disc = nu am putut deschide CD-ul audio: no_cddb = nu am putut gasi intrarea cddb. folositi optiunea --nocddb. no_kdialog = kdialog nu a fost gasit. instalati pachetul kdebase. need_outdir = trebuie sa specifici un director de iesire. encode_failed = codarea a esuat cu mesajul: decode_failed = decodarea a esuat cu mesajul: empty_dir = directorul este gol, incearca sa folosesti optiunea --recursive: opening_dir = nu am putut deschide directorul: opening_file = nu am putut deschide fisierul: seek_help = vezi 'pacpl --help' sau 'pacpl --longhelp' pentru o lista de optiuni. ########### # Notices # ########### converting = Convertim: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = ..executat. removed_tmp = sters fisierul temporar: removed_src = sters sursa fisierului: enc_fmts = formate de codare: dec_fmts = formate de decodare: tag_info = informatia tag-ului pentru: write_tag_i = scrie informatia tag-ului pentru: creating_dir = creeaza directorul: imported = importa module: debug = depaneaza: loaded_config = fisier de configuratie incarcat: ripping_track = copiem track-uri: total_converted = nr. total de fisiere transformate: overwrite = fisierul de iesire exista deja. foloseste --overwrite pentru a inlocui fisierul existent. show_encoders = encoderurile pentru show_decoders = decoderurile pentru ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = suprascrie fisierul de iesire daca el exista? (1 = da, 0 = nu) gui_bitrate = selecteaza rata de biti gui_freq = rata audio simpla gui_chans = canale audio gui_fcomp = nivel de compresie FLAC gui_acomp = nivel de compresie APE gui_oggqual = nivel de calitate Ogg Vorbis gui_spxqual = nivel de calitate speex gui_aacqual = nivel de calitate AAC/MP4/M4A gui_mpcqual = nivel de calitate Musepack gui_ofmode = mod de compresie OptimFrog gui_ofopt = nivel de optimizare OptimFrog gui_bratio = BONK downsampling ratio gui_bquanl = BONK quantanization level gui_bpsize = aproximarea dimensiunii cu BONK gui_outdir = Select output folder ################## # Help menu text # ################## to = formatul de destinatie recursive = transforma directorul/directoarele recursiv preserve = conserva structura directorului formats = lista cu formatele suportate de codare/decodare only = converteste doar fisiere cu extensia keep = pastreaza fisierele cu extensia formatului de destinatie jobs = number of simultaneous files to process help = acest meniu de ajutor longhelp = lista completa de optiuni version = afiseaza informatii despre versiune update = check for newer version usage = utilizare: pacpl --to [fisier(e)/director(directoare)] eopts = utilizatorul furnizeaza optiunile encoderului dopts = utilizatorul furnizeaza optiunile decoderului nopts = utilizatorul furnizeaza optiunile de normalizare outfile = numele fisierului de iesire outdir = numele directorului de iesire dryrun = nu converti fisierele overwrited = suprascrie fisierul de destinatie normalize = normalizeaza fisierul wav inainte de a-l coda delete = sterge fisierul-sursa dupa conversie encoder = specifica un encoder alternativ decoder = specifica un decoder alternativ verbose = arata informatii detaliate user_opts = optiunile utilizatorului: enc_opts = optiunile encoderului: bitrate = rata de biti (implicit. 128) freq = frectenva audio (imp. 44100) channels = numarul de canale audio (imp. 2) effect = efectul sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = nivel de compresie flac/fla (imp. 2) acomp = nivel de compresie ape (imp. 3000) oggqual = nivel de calitate ogg (imp. 3) spxqual = nivel de calitate spx (imp. 8) aacqual = nivel de calitate aac/mp4/m4a (imp. 100) mpcqual = nivel de calitate mpc/mpp (imp. radio) ofmode = modul ofr/ofs (imp. normal) ofopt = optimizare ofr/ofs (imp. rapid) bratio = bonk down sampling ratio (imp. 2) bquanl = bonk quantization level (imp. 1.0) bpsize = aproximare de dimensiune cu bonk (imp. 128) tag_opts = optiuni de tag: artist = seteaza informatiile despre artist title = seteaza titlul track = seteaza numarul track-ului year = seteaza anul/data albumului/trackului album = seteaza informatiile despre titlul albumului genre = seteaza genul comment = seteaza comentariile taginfo = arata informatiile de tag pentru fisierul selectat tag_usage = utilizarea tagului: pacpl [fisier(e)] rip_opts = optiuni de copiere: rip = copie track-urile separate prin virgula sau toate nocddb = dezactiveaza cddb noinput = dezactiveaza interactivitatea cddb nscheme = denumim schema cdinfo = arata informatia cddb pentru discul curent device = implicit = /dev/dvd rip_usage = utilizarea lui rip: pacpl --rip [track(uri)/all] --to pacpl-6.1.0/po/pt.po0000644000175000017500000001475213275724626012047 0ustar pipi################################################################ # Portuguese (Portugal) - Evandro Alves (evandro.pa@gmail.com) # ################################################################ # # Intruções de tradução: # # 1) apenas traduzir texto a seguir ao sinal = (traduza o valor e não a chave) # 2) assegure-se de que existe apenas um espaço em ambos os lados do sinal = # 3) assegure-se de ter incluído o nome da linguagem, e o seu nome/email no topo # 4) verifique a ortografia # 5) pro favor traduza estas instruções e inclua-as com o seu ficheiro lang.po # # Pode submeter as suas traduções para vorzox@gmail.com ##################### # Mensagens de Erro # ##################### error = erro failed = failed: bad_input = formato de destino não suportado. multi_out = --outfile não pode ser usado aquando da codificação de multiplos ficheiros. no_config = configuration file not found...using default settings. unk_encoder = selected encoder not valid for: unk_decoder = selected decoder not valid for: no_decoder = aviso: o ficheiro seguinte não pode ser descodificado: no_encoder = não é suportada a codificação 'para' o seguinte: no_encode_app = could not find suitable application to encode: no_decode_app = could not find suitable application to decode: no_app = não é possível encontrar a aplicaçao: no_outdir = a directoria de saída não existe. no_infile = o seguinte não é um ficheiro ou directoria: no_input = tem de especificar pelo menos um ficheiro de entrada. no_read_tag = não é possível ler a etiqueta de: no_write_tag = não é possível escrever a etiqueta de: no_disc = não é possível abrir o disco de audio: no_cddb = não é possível encontrar a entrada cddb. use a opção --nocddb. no_kdialog = kdialog não encontrado. instale o pacote kdebase. need_outdir = tem que especificar um directoria de saída. encode_failed = a codificação falhou com o seguinte erro: decode_failed = a descodificação falhou com o seguinte erro: empty_dir = directoria vazia, experimente usar a opção --recursive: opening_dir = não é possível abrir a directoria: opening_file = não é possível abrir o ficheiro: seek_help = use 'pacpl --help' ou 'pacpl --longhelp' para apresentar a lista das opções. ######### # Notas # ######### converting = A converter: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Conversão completa. removed_tmp = ficheiro temporário removido: removed_src = ficheiro de origem removido: enc_fmts = formatos de codificação: dec_fmts = formatos de descodificação: tag_info = informação de etiquetas de: write_tag_i = a gravar etiquetas de: creating_dir = a criar directoria: imported = módulos importados: debug = depuração: loaded_config = loaded configuration file: ripping_track = A extrair a pista: total_converted = Total files converted: overwrite = o ficheiro de saída já existe. use --overwrite para substituir ficheiros existentes. show_encoders = encoders for show_decoders = decoders for ################################################# # prompts de utilizador para Konqueror & Dolphin # ################################################# gui_overwrite = sobrescrever o ficheiro de saída se este já existir? (1 = sim, 0 = não) gui_bitrate = seleccione o bitrate gui_freq = frequências de amostragem do som gui_chans = canais do som gui_fcomp = nível de compressão FLAC gui_acomp = nível de compressão APE gui_oggqual = nível de qualidade OggVorbis gui_spxqual = nível de qualidade speex gui_aacqual = nível de qualidade AAC/MP4/M4A gui_mpcqual = nível de qualidade Musepack gui_ofmode = modo de compressão OptimFrog gui_ofopt = nível de optimização OptimFrog gui_bratio = relação de downsampling BONK gui_bquanl = nível de quantificação BONK gui_bpsize = tamanho do predictor BONK gui_outdir = Select output folder ###################### # Texto do menu help # ###################### to = formato do destino recursive = conversão recursiva de directoria(s) preserve = preserva da estrutura da directoria formats = lista formatos de codificação/descodificação suportados only = apenas converte ficheiros com a extensão indicada keep = manter os ficheiros correspondentes ao formato de destino jobs = number of simultaneous files to process help = este menu de ajuda longhelp = lista completa de opções version = mostra informação sobre a versão update = check for newer version usage = uso: pacpl --to [ficheiro(s)/directoria(s)] defopts = turn off default encoder options (0) eopts = opções de codificação indicados pelo utilizador dopts = opções de descodificação indicados pelo utilizador nopts = user supplied normalize options outfile = nome do ficheiro de saída outdir = directoria de saída dryrun = não converte ficheiros overwrited = sobrescrever ficheiro de destino normalize = normalize wav file before encoding delete = remover ficheiro de origem após a conversão encoder = specify an alternate encoder decoder = specify an alternate decoder verbose = mostrar informação detalhada user_opts = opções do utilizador: enc_opts = opções do codificador: bitrate = bitrate (def. 128) freq = frequência do som (def. 44100) channels = número de canais de som (def. 2) effect = efeito sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = nível de compressão flac/fla (def. 2) acomp = nível de compressão ape (def. 3000) oggqual = nível de qualidade ogg (def. 3) spxqual = nível de qualidade spx (def. 8) aacqual = nível de qualidade aac/mp4/m4a (def. 100) mpcqual = nível de qualidade mpc/mpp (def. radio) ofmode = modo ofr/ofs (def. normal) ofopt = optimização ofr/ofs (def. fast) bratio = nível de downsampling bonk (def. 2) bquanl = nível de quantificação bonk (def. 1.0) bpsize = tamanho do predictor bonk (def. 128) tag_opts = opções de etiquetas: artist = inserir informação do artista title = inserir título track = inserir número da pista year = inserir ano/data do album/pista album = inserir informação sobre o título do album genre = inserir género comment = inserir comentários taginfo = mostrar informação de etiqueta para o ficheiro seleccionado tag_usage = uso de etiquetas: pacpl [ficheiro(s)] rip_opts = opções de extracção: rip = extrar pistas separadas por vírgula ou all nocddb = desactivar cddb noinput = desactivar interactividade cddb nscheme = nome do esquema cdinfo = mostrar informação cddb do disco corrente device = default = /dev/dvd rip_usage = uso de estracção: pacpl --rip [pista(s)/all] --to pacpl-6.1.0/po/tr.po0000644000175000017500000001413413275724626012043 0ustar pipi############################################ # Turkish - Cantek Cetin (circass@gmail.com) - Osman KARAGOZ (osmank3@gmail.com) # Codepage - UTF-8 ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = hata failed = durdu: bad_input = kaynak biçimi desteklenmiyor. multi_out = --çoklu dosya çevirimi sırasında çıktı dosyası kullanılamaz. no_config = ayar dosyası bulunamadı...orjinal ayarlar kullanılıyor. unk_encoder = bunun için seçilen kodlayıcı bulunamadı: unk_decoder = bunun için seçilen kod okuyucu bulunamadı: no_decoder = uyarı: bu dosya uygun biçimde çevirilemedi: no_encoder = 'to' biçimin bu biçime çevirimi desteklenmiyor: no_encode_app = kodlama için uygun uygulama bulunamadı: no_decode_app = kod okuma için uygun uygulama bulunamadı: no_app = uygulama bulunamadı: no_outdir = çıktı dosyası yok. no_infile = bu bir dosya veya dizin değil: no_input = en az bir girdi dosyası belirlemelisiniz. no_read_tag = Dosya için etiket(tag) okunamadı: no_write_tag = Dosya için etiket(tag) yazılamadı: no_disc = Ses CD'si açılamadı: no_cddb = cddb girdisi bulunamadı.--nocddb seçeneğini kullanın. no_kdialog = kdialog bulunamadı. kde base paketini yükleyin. need_outdir = bir çıktı dizini belirtmelisiniz. encode_failed = çıkış durumunda kodlama durduruldu: decode_failed = çıkış durumunda kod okuma durduruldu: empty_dir = dizin boş, --recursive seçeneğini kullanmayı deneyin: opening_dir = dizin açılamadı: opening_file = dosya açılamadı: seek_help = seçenek listesi için 'pacpl --help' or 'pacpl --longhelp' komutlarını kullan. ########### # Notices # ########### converting = çeviriliyor: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = ..tamamlandı. removed_tmp = geçici dosya silindi: removed_src = kaynak dosya silindi: enc_fmts = kodlayıcı biçimleri: dec_fmts = kod okuyucu biçimleri: tag_info = dosya etiket(tag) bilgisi: write_tag_i = dosya için tag bilgisi yazılıyor: creating_dir = dizin oluşturuluyor: imported = eklenen modüller: debug = hata giderme: loaded_config = çağrılan ayar dosyası: ripping_track = Ses izleri kodlanıyor: total_converted = Toplam çevrilen dosya: overwrite = Bu isimde bir dosya var.üstüne yazmak için --overwrite komutunu kullan. show_encoders = kodlayıcılar show_decoders = kod okuyucular ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = çıktı dosyası varsa üstüne yaz? (1 = evet, 0 = hayır) gui_bitrate = bitrate seç gui_freq = ses örnekleme oranı gui_chans = ses kanalları gui_fcomp = FLAC sıkıştırma seviyesi gui_acomp = APE sıkıştırma seviyesi gui_oggqual = Ogg Vorbis kalite seviyesi gui_spxqual = speex kalite seviyesi gui_aacqual = AAC/MP4/M4A kalite seviyesi gui_mpcqual = Musepack kalite seviyesi gui_ofmode = OptimFrog sıkıştırma modu gui_ofopt = OptimFrog optimizasyon seviyesi gui_bratio = BONK aşağı örnekleme oranı gui_bquanl = BONK quantanization seviyesi gui_bpsize = BONK predictor boyutu gui_outdir = Select output folder ################## # Help menu text # ################## to = çıktı biçimi recursive = dizinleri rekursif olarak �evir preserve = dizin yapısını koru formats = desteklenen kodlama/kod okuma biçimlerini listele only = sadece uzantıları eşleşen dosyaları çevir keep = keep files matching destination format jobs = number of simultaneous files to process help = yardım longhelp = tüm seçenek listesi version = versiyon bilgisini göster update = check for newer version usage = kullanım: pacpl --to [dosyalar/dizinler] orjopts = orjinal kodlayıcı ayarlarını kapat (0) eopts = kullanıcı tanımlı kodlayıcı seçenekleri dopts = kullanıcı tanımlı kod okuyucu seçenekleri nopts = user supplied normalize options outfile = çıktı dosya adı outdir = çıktı dizini dryrun = dosyaları çevirme overwrited = çıktı dosyasının üstüne yaz normalize = wav dosyasını kodlamadan önce normalle delete = çevirme tamamlandığında kaynak dosyayı sil encoder = alternatif kodlayıcı belirle decoder = alternatif kod okuyucu belirle verbose = detaylı bilgi göster user_opts = kullanıcı seçenekleri: enc_opts = kodlayıcı seçenekleri: bitrate = bitrate (orj. 128) freq = örnek oranı (orj. 44100) channels = ses kanal sayısı (orj. 2) effect = sox efekt (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = flac/fla sıkıştırma seviyesi (orj. 2) acomp = ape sıkıştırma seviyesi (orj. 3000) oggqual = ogg kalite seviyesi (orj. 3) spxqual = spx kalite seviyesi (orj. 8) aacqual = aac/mp4/m4a kalite seviyesi (orj. 100) mpcqual = mpc/mpp kalite seviyesi (orj. radio) ofmode = ofr/ofs mod (orj. normal) ofopt = ofr/ofs optimizasyon (orj. fast) bratio = bonk aşağı örnekleme oranı (orj. 2) bquanl = bonk quantization seviyesi (orj. 1.0) bpsize = bonk predictor boyutu (orj. 128) tag_opts = etiket(tag) seçenekleri: artist = sanatçı bilgisi gir title = başlık gir track = parça numarası gir year = albüm/parça yol/tarih ini gir album = album başlığını gir genre = tipini gir comment = yorumları gir taginfo = seçili dosya için etiket(tag) bilgilerini göster tag_usage = etiketleme(tagging) kullanım: pacpl [dosya(lar)] rip_opts = ses izleri kodlama seçenekleri: rip = virgül ile ayrılmış parçaların veya hepsinin ses izlerini kodla nocddb = cddb yi etkisiz kıl noinput = cddb interactivity i etkisiz kıl nscheme = isimlendirme şeması cdinfo = takılı disk için cddb bilgisini göster device = varsayılan = /dev/dvd rip_usage = ses izi kodlama kullanım: pacpl --rip [parça(lar)/all] --to pacpl-6.1.0/po/de.po0000644000175000017500000001425313275724626012010 0ustar pipi################################################### # Deutsch - Andreas Lang (andreas.lang@gmail.com) # ################################################### # # Übersetzungsanweisungen: # # 1) Nur der Text nach dem = Zeichen (übersetz den Wert und nicht den zugehörigen Schlüssel) # 2) stell sicher, dass auf jeder Seite des = genau ein Leerzeichen ist # 3) stell sicher, dass ganz oben, die Sprache, Dateiname sowie Emailadresse stehen # 4) Rechtschreibprüfung # 5) bitte übersetz diese Anweisung und benenne es in lang.po # # fertig, dann sende die Übersetzung an vorzox@gmail.com #################### # Fehler Meldungen # #################### error = Fehler failed = failed: bad_input = Zielformat wird nicht unterstützt multi_out = --outfile kann nicht genutzt werden, wenn mehre Dateien sind ausgewählt no_config = configuration file not found...using default settings. unk_encoder = selected encoder not valid for: unk_decoder = selected decoder not valid for: no_decoder = Warnung: die folgende Datei konnte nicht dekodiert werden no_encoder = Kodierung 'zu' dem Folgenden wird nicht unterstützt: no_encode_app = could not find suitable application to encode: no_decode_app = could not find suitable application to decode: no_app = konnte nicht die Anwendung finden: no_outdir = Ausgabeverzeichnis existiert nicht. no_infile = das Folgende ist keine Datei oder kein Verzeichnis: no_input = es muss mindestens eine Eingabedatei ausgewählt sein. no_read_tag = konnte die Bezeichnung (tag) nicht lesen von: no_write_tag = konnte die Bezeichnung (tag) nicht schreiben für: no_disc = konnte die CD nicht öffnen: no_cddb = konnte den cddb Eintrag nicht finden. Benutzt die --nocddb Option. no_kdialog = kdialog konnte nicht gefunden werden. Installiere das kdebase Paket. need_outdir = Das Ausgabeverzeichnis muss angegeben werden. encode_failed = Kodierung ist fehlgeschlagen mit dem Status: decode_failed = Dekodierung ist fehlgeschlagen mit dem Status: empty_dir = Verzeichnis ist leer, benutzt die --recursive Option: opening_dir = konnte nicht das Verzeichnis öffnen: opening_file = konnte nicht die Datei öffnen: seek_help = benutzt 'pacpl --help' oder 'pacpl --longhelp' für eine Auflistung der Optionen ############# # Meldungen # ############# converting = Konvertierung: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Konvertierung fertig. removed_tmp = lösche temporäre Datei: removed_src = lösche quell Datei: enc_fmts = kodiere Format: dec_fmts = Dekodiere Format: tag_info = Bezeichnung für: write_tag_i = schreibe Bezeichnungen für: creating_dir = erzeuge Verzeichnis: imported = lade Module: debug = debug: loaded_config = loaded configuration file: ripping_track = Lese Track: total_converted = Total files converted: overwrite = Ausgabedatei existiert. Benutz --overwrite zum Überschreiben. show_encoders = encoders for show_decoders = decoders for ############################################# # Benutzer Kommandos für Konqueror & Dolphin # ############################################# gui_overwrite = Überschreibe Ausgabedatei wenn sie existiert? (1 = Ja, 0 = Nein) gui_bitrate = Wähle Bitrate gui_freq = Audio Samplingfrequenz gui_chans = Audio Kanäle gui_fcomp = FLAC Komprimierungsgrad gui_acomp = APE Komprimierungsgrad gui_oggqual = Ogg Vorbis Qualitätsgrad gui_spxqual = speex Qualitätsgrad gui_aacqual = AAC/MP4/M4A Qualitätsgrad gui_mpcqual = Musepack Qualitätsgrad gui_ofmode = OptimFrog Kompressionsmode gui_ofopt = OptimFrog Optimierungsgrad gui_bratio = BONK Verhältnis beim Heruntersampling gui_bquanl = BONK Quantisierung gui_bpsize = BONK Einflussgröße gui_outdir = Select output folder ############## # Hilfe Menü # ############## to = Zielformat recursive = Rekursive Konvertierung von Verzeichnis(sen) preserve = Einhalten der Verzeichnisstruktur formats = Liste von unterstützen Kodierung/Dekodierung Formaten only = nur konvertierte Dateianhänge stimmen überein keep = keep files matching destination format help = dieses Hilfsmenü jobs = number of simultaneous files to process longhelp = Komplette Liste der Optionen version = gib Informationen über die Version update = check for newer version usage = benutz: pacpl --to [Datei(en)/Verzeichnis(se)] defopts = turn off default encoder options (0) eopts = Benutzerspezifische Kodierungsoptionen dopts = Benutzerspezifische Dekodierungsoptionen nopts = user supplied normalize options outfile = Ausgabe Dateiname outdir = Ausgabeverzeichnis dryrun = nicht konvertierbare Dateien overwrited = überschreib Ausgabedatei normalize = normalize wav file before encoding delete = lösche Quelldateien nach der Konvertierung encoder = specify an alternate encoder decoder = specify an alternate decoder verbose = gib detaillierte Informationen user_opts = Benutzeroptionen enc_opts = Kodierungsoptionen: bitrate = Bitrate (Standard 128) freq = Audio Samplingfreqenz (Standard 44100) channels = Anzahl der Audio Kanäle (Standard 2) effect = sox Effekt (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = flac/fla Komprimierungsgrad (Standard 2) acomp = ape Komprimierungsgrad (Standard 3000) oggqual = ogg Qualitätsgrad (Standard. 3) spxqual = spx Qualitätsgrad (Standard 8) aacqual = aac/mp4/m4a Qualitätsgrad (Standard 100) mpcqual = mpc/mpp Qualitätsgrad (Standard radio) ofmode = ofr/ofs Mode (Standard normal) ofopt = ofr/ofs Optimierung (Standard fast) bratio = bonk Verhältnis beim Heruntersampling (Standard 2) bquanl = bonk Quantisierung (Standard 1.0) bpsize = bonk Einflüssgröße (Standard 128) tag_opts = Bezeihnungsoptionen: artist = setze Musiker Informationen title = setze Titel track = setze Track Nummer year = setze Jahr/Tag vom Album/Track album = setze Album Titel Informationen genre = setze Genre comment = setze Kommentare taginfo = zeige Bezeichnungsinformationen für ausgewählte Datei tag_usage = Bezeichnung nutze: pacpl [Datei(en)] rip_opts = Optionen beim Track lesen: rip = Lese track, getrennt durch Komma nocddb = deaktiviere cddb noinput = deaktiviere cddb interaktiv nscheme = Schema für die Namensgebung cdinfo = zeige cddb Informationen für aktuelle CD device = Standard = /dev/dvd rip_usage = lese: pacpl --rip [Track(s)/alle] --to pacpl-6.1.0/po/ru_RU.po0000644000175000017500000002315713275724626012457 0ustar pipi############################################ # Russian - Illarion Khapersky (larry-m@yandex.ru) ############################################ # # Инструкции по переводу: # # 1) переводите только текст, указанный после знака = (переводите значение, но не ключевое слово) # 2) убедитесь, что с каждой стороны знака "равно" только по одном пробелу. # 3) запишите имя перевода и ваше имя и адрес электронной почты в поле наверху на английском языке # 4) проверьте орфографию # 5) пожалуйста переведите эти инструкции и включите их в свой файл перевода # # Вы можете посылать ваши переводы по адресу: vorzox@gmail.com ################## # Error messages # ################## error = ошибка failed = конвертация не удалась: bad_input = выбранный формат не поддерживается. multi_out = --outfile не может быть использован для конвертирования нескольких файлов. no_config = файл конфигурации не найден...используются настройки по умолчанию. unk_encoder = выбранный кодировщик не подходит для: unk_decoder = выбранный декодер не подходит для: no_decoder = внимание: этот файл не может быть декодирован: no_encoder = кодирование в этом формате не поддерживается. no_encode_app = невозможно найти подходящее приложение для кодирования: no_decode_app = невозможно найти подходящее приложение для декодирования: no_app = невозможно найти приложение. no_outdir = директория вывода не существует. no_infile = введенные данные не являются файлом или директорией: no_input = требуется указать хотя бы один файл для конвертации. no_read_tag = невозможно прочитать тег из: no_write_tag = невозможно записать тег в: no_disc = нет доступа к аудио диску: no_cddb = не найдена запись cddb. используйте --nocddb в командной строке. no_kdialog = kdialog не найден. установите пакет kdebase. need_outdir = нужно указать директорию вывода. encode_failed = ошибка кодирования: decode_failed = ошибка декодирования: empty_dir = директория пуста, воспользуйтесь --recursive в командной строке. opening_dir = невозможно открыть директорию: opening_file = невозможно открыть файл: seek_help = наберите 'pacpl --help' или 'pacpl --longhelp' для списка опций в командной строке. ########### # Notices # ########### converting = Конвертируется: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Конвертирование завершено. removed_tmp = удален временный файл: removed_src = удален исходный файл: enc_fmts = форматы кодирования: dec_fmts = форматы декодирования: tag_info = чтение тега: write_tag_i = запись тега: creating_dir = создание директории: imported = подключенные модули: debug = debug: loaded_config = загружен конфигурационный файл: ripping_track = копирование трека: total_converted = общее количество конвертированных файлов: overwrite = файл с таким именем уже существует. используйте --overwrite, чтобы заменить этот файл. show_encoders = кодировщики для show_decoders = декодеры для ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = переписать, если файл уже существует? (1 = да, 0 = нет) gui_bitrate = битрейт gui_freq = частота семплирования gui_chans = количество аудио каналов gui_fcomp = уровень сжатия FLAC gui_acomp = уровень сжатия APE gui_oggqual = уровень качества Ogg Vorbis gui_spxqual = уровень качества speex gui_aacqual = уровень качества AAC/MP4/M4A gui_mpcqual = уровень качества Musepack gui_ofmode = метод сжатия OptimFrog gui_ofopt = уровень сжатия OptimFrog gui_bratio = уровень субдискретизации BONK gui_bquanl = уровень квантования BONK gui_bpsize = размер опережающего чтения BONK gui_outdir = Select output folder ################## # Help menu text # ################## to = формат выходного файла recursive = рекурсивно конвертировать файлы в папках preserve = сохранять структуру папки formats = вывести список поддерживаемых форматов only = конвертировать файлы только с указанным расширением keep = не трогать файлы того же типа, как и выходной формат jobs = number of simultaneous files to process help = вызвать эту справку longhelp = полный список опций version = вывести информацию о версии программы update = check for newer version usage = командная строка: pacpl --to <формат> <настройки> [файл(ы)/каталог(и)] defopts = отключить настройки кодировщика, указанные по умолчанию (0) eopts = настройки кодирования, напрямую передаваемые в программу-кодировщик dopts = настройки декодирования, напрямую передаваемые в программу-кодировщик nopts = настройки нормализации, указываемые пользователем outfile = имя целевого файла outdir = имя целевого каталога dryrun = тестовый режим, файлы не конвертируются overwrited = переписать целевой файл normalize = нормализовать wav файл перед кодированием delete = удалить исходный файл после конвертации encoder = использовать другой кодировщик decoder = использовать другой декодер verbose = показывать дополнительную информацию user_opts = пользовательские настройки enc_opts = настройки кодировщика: bitrate = битрейт (по умол. 128) freq = частота сэмплирования (по умол. 44100) channels = количество аудио каналов (по умол. 2) effect = эффект sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = уровень сжатия flac/fla (по умол. 2) acomp = уровень сжатия ape (по умол. 3000) oggqual = уровень качества ogg (по умол. 3) spxqual = уровень качества spx (по умол. 8) aacqual = уровень качества aac/mp4/m4a (по умол. 100) mpcqual = уровень качества mpc/mpp (по умол. radio) ofmode = режим ofr/ofs (по умол. normal) ofopt = оптимизация ofr/ofs (по умол. fast) bratio = уровень субдискретизации (down-sampling) bonk (по умол. 2) bquanl = уровень квантования bonk (по умол. 1.0) bpsize = размер опережающего чтения bonk (по умол. 128) tag_opts = опции тегов: artist = записать информацию об исполнителе title = записать название произведения track = записать номер трека year = записать год/дату альбома/трека album = записать название альбома genre = записать жанр comment = записать комментарии taginfo = показать теги в указанном файле tag_usage = пример записи тегов: pacpl <опции> [файл(ы)] rip_opts = настройки копирования с диска: rip = копировать треки, разделенные запятой или все nocddb = отключить cddb noinput = не связываться с cddb nscheme = схема именования файлов cdinfo = показать информацию из cddb по этому диску device = устройство по умолчанию = /dev/dvd rip_usage = пример копирования треков: pacpl --rip [трек(и)/все треки] --to <формат> <опции> pacpl-6.1.0/po/it_IT.po0000644000175000017500000001434313275724626012430 0ustar pipi############################################ # Italian - Mastermind-X (mastermind.x11@gmail.com) ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = errore failed = fallito: bad_input = formato di destinazione non supportato. multi_out = --outfile non può essere usato nella codifica di file multipli. no_config = file di configurazione non trovato ...uso le impostazioni di default. unk_encoder = l'encoder selezionato non è valido per: unk_decoder = l'decoder selezionato non è valido per: no_decoder = attenzione: il seguente file non può essere decodificato: no_encoder = l'encoding nel seguente formato non è supportato: no_encode_app = impossibile trovare un applicazione adatta alla codifica: no_decode_app = impossibile trovare un applicazione adatta alla decodifica: no_app = impossibile trovare l'applicazione: no_outdir = la cartella di output non esiste. no_infile = il seguente non è ne un file ne una cartella: no_input = devi specificare almeno un file di input. no_read_tag = impossibile leggere il tag per: no_write_tag = impossibile scrivere il tag per: no_disc = impossibile aprire il cd audio: no_cddb = impossibile trovare la voce cddb. usa l'opzione --nocddb. no_kdialog = kdialog non trovato. installa il pacchetto kdebase. need_outdir = devi specificare una cartella di output. encode_failed = codifica fallita con exit status: decode_failed = decodifica fallita con exit status: empty_dir = cartella vuota, prova usando l'opzione --recursive: opening_dir = impossibile aprire la cartella: opening_file = impossibile aprire il file: seek_help = vedi 'pacpl --help' o 'pacpl --longhelp' per una lista di opzioni. ########### # Notices # ########### converting = Convertendo: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = ..fatto. removed_tmp = rimossi i file temporanei: removed_src = rimossi i file sorgente: enc_fmts = formati di codifica: dec_fmts = formati di decodifica: tag_info = informazioni di tagging per: write_tag_i = scrittura delle informazioni di tag per: creating_dir = creando la cartella: imported = moduli importati: debug = debug: loaded_config = file di configurazione caricato: ripping_track = Acquisendo la traccia: total_converted = Totale die files convertiti: overwrite = il file di output esiste. usa --overwrite per sovrascrivere il file esistente. show_encoders = encoders per show_decoders = decoders per ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = sovrascrivi il file di output se esiste? (1 = si, 0 = no) gui_bitrate = seleziona il bitrate gui_freq = frequenza di campionamento gui_chans = canali audio gui_fcomp = FLAC: livello di compressione gui_acomp = APE: livello di compressione gui_oggqual = Ogg Vorbis: livello di qualità gui_spxqual = speex: livello di qualità gui_aacqual = AAC/MP4/M4A: livello di qualità gui_mpcqual = Musepack: livello di qualità gui_ofmode = OptimFrog: modalità di compressione gui_ofopt = OptimFrog: livello di ottimizzazione gui_bratio = BONK: rateo di downsapling gui_bquanl = BONK: livello di quantizzazione gui_bpsize = BONK: dimensione del predittore gui_outdir = Select output folder ################## # Help menu text # ################## to = formato di destinazione recursive = converti ricorsivamente le cartelle preserve = preserva la struttura delle cartelle formats = lista dei formati di codifica/decodifica supportati only = converti solo i file con l'estensione corrispondente keep = mantieni i files con formato corrispondente a quello di destinazione jobs = number of simultaneous files to process help = questo help menu longhelp = lista completa delle opzioni version = mostra informazioni di versione update = check for newer version usage = Uso: pacpl --to [files/cartelle] eopts = opzioni di codifica fornite dall'utente dopts = opzioni di decodifica fornite dall'utente nopts = opzioni di normalizzazione fornite dall'utente outfile = nome del file di output outdir = cartella di output dryrun = non convertire i files overwrited = sovrascrivi i file di destinazione normalize = normalizza il file wav prima della codifica delete = elimina il file sorgente dopo la conversione encoder = specifica un encoder alternativo decoder = specifica un decoder alternativo verbose = mostra informazioni dettagliate user_opts = opzioni utente: enc_opts = opzioni di codifica: bitrate = bitrate (def. 128) freq = frequenza audio (def. 44100) channels = numero di canali audio (def. 2) effect = effetti sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = livello di compressione flac/fla (def. 2) acomp = livello di compressione ape (def. 3000) oggqual = livello di qualità ogg (def. 3) spxqual = livello di qualità spx (def. 8) aacqual = livello di qualità aac/mp4/m4a (def. 100) mpcqual = livello di qualità mpc/mpp (def. radio) ofmode = modalità di compressione ofr/ofs (def. normal) ofopt = livello di ottimizzazione ofr/ofs (def. fast) bratio = rateo di downsampling bonk (def. 2) bquanl = livello di quantizzazione bonk (def. 1.0) bpsize = Dimensione del predittore bonk (def. 128) tag_opts = opzioni di tagging: artist = imposta informazioni artista title = imposta titolo track = imposta numero traccia year = imposta anno/data del album/traccia album = imposta informazioni titolo dell'album genre = imposta genere comment = imposta commenti taginfo = mostra informazioni di tagging del file selezionato tag_usage = uso del tagging: pacpl [file(s)] rip_opts = opzioni di acquisizione: rip = rip tracks separated by comma or all nocddb = disabilita cddb noinput = disabilita interazione cddb nscheme = schema di rinominazione cdinfo = mostra le informazioni cddb per il seguente disco device = default = /dev/dvd rip_usage = uso in acquisizione: pacpl --rip [traccia(e)/all] --to pacpl-6.1.0/po/zh_CN.po0000644000175000017500000001262713275724626012424 0ustar pipi############################################ # Chinese_Simplified - Ni Hui (shuizhuyuanluo@126.com) ############################################ # # 翻译介绍: # # 1) 只需翻译在 = 等号后面的文本(翻译值而不是键名称) # 2) 确定在 = 等号两边都只有一个空格 # 3) 确认在文件顶部包含语言名称,以及您的姓名/电子邮件地址 # 4) 拼写检查 # 5) 请翻译这段介绍并包含在您的 lang.po 中 # # 您可以将您的翻译提交到 vorzox@gmail.com ################## # 错误消息 # ################## error = 错误 failed = failed: bad_input = 目标格式不支持。 multi_out = 当编码多个文件时不能使用 --outfile。 no_config = 未找到配置文件...使用默认设置。 unk_encoder = selected encoder not valid for: unk_decoder = selected decoder not valid for: no_decoder = 警告:无法编码以下文件: no_encoder = 不支持编码“至”以下格式: no_encode_app = could not find suitable application to encode: no_decode_app = could not find suitable application to decode: no_app = 无法找到程序: no_outdir = 输出目录不存在。 no_infile = 以下不是一个文件或目录: no_input = 您必须至少指定一个输出文件。 no_read_tag = 无法读取标记: no_write_tag = 无法写入标记: no_disc = 无法打开音频碟片: no_cddb = 无法找到 cddb 条目。 使用 --nocddb 选项。 no_kdialog = 未找到 kdialog。 请安装 kdebase 软件包。 need_outdir = 您必须指定一个输出目录。 encode_failed = 编码失败,退出状态: decode_failed = 解码失败,退出状态: empty_dir = 目录为空,尝试使用 --recursive 选项: opening_dir = 无法打开目录: opening_file = 无法打开文件: seek_help = 参见“pacpl --help”或“pacpl --longhelp”以查看选项清单。 ########### # 通知 # ########### converting = 正在转换: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = 转换完成。 removed_tmp = 删除临时文件: removed_src = 删除源文件: enc_fmts = 编码格式: dec_fmts = 解码格式: tag_info = 附上标记信息: write_tag_i = 正在写入标记信息: creating_dir = 正在创建目录: imported = 导入的模块: debug = 调试: loaded_config = 装入的配置文件: ripping_track = 正在抓取音轨: total_converted = Total files converted: overwrite = 输出文件已存在。 使用 --overwrite 来替换存在的文件。 show_encoders = encoders for show_decoders = decoders for ####################################### # Konqueror 和 Dolphin 的用户提示符 # ####################################### gui_overwrite = 如果输出文件已存在是否覆盖?(1 = 是,0 = 否) gui_bitrate = 选择比特率 gui_freq = 音频采样率 gui_chans = 音频通道 gui_fcomp = FLAC 压缩级别 gui_acomp = APE 压缩级别 gui_oggqual = Ogg Vorbis 质量级别 gui_spxqual = speex 质量级别 gui_aacqual = AAC/MP4/M4A 质量级别 gui_mpcqual = Musepack 质量级别 gui_ofmode = OptimFrog 压缩模式 gui_ofopt = OptimFrog 最佳级别 gui_bratio = BONK 下载采样率 gui_bquanl = BONK 量化级别 gui_bpsize = BONK 预计大小 gui_outdir = Select output folder ################## # 帮助菜单文本 # ################## to = 目标格式 recursive = 递归转换目录 preserve = 保持目录结构 formats = 列出支持的编码/解码格式 only = 只转换匹配扩展名的文件 keep = 保持文件匹配目标格式 jobs = number of simultaneous files to process help = 本帮助菜单 longhelp = 完整的选项清单 version = 显示版本信息 update = check for newer version usage = 用法:pacpl --to <格式> <选项> [文件/目录] defopts = turn off default encoder options (0) eopts = 用户提供的编码选项 dopts = 用户提供的解码选项 nopts = user supplied normalize options outfile = 输出文件名称 outdir = 输出目录 dryrun = 不转换文件 overwrited = 覆盖目标文件 normalize = normalize wav file before encoding delete = 转换后删除源文件 encoder = specify an alternate encoder decoder = specify an alternate decoder verbose = 显示详细信息 user_opts = 用户选项: enc_opts = 编码选项: bitrate = 比特率 (默认:128) freq = 声频 (默认:44100) channels = 音频通道数 (默认:2) effect = sox 效果 (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = flac/fla 压缩级别 (默认:2) acomp = ape 压缩级别 (默认:3000) oggqual = ogg 质量级别 (默认:3) spxqual = spx 质量级别 (默认:8) aacqual = aac/mp4/m4a 质量级别 (默认:100) mpcqual = mpc/mpp 质量级别 (默认:radio) ofmode = ofr/ofs 模式 (默认:normal) ofopt = ofr/ofs 最佳 (默认:fast) bratio = bonk 下载采样率 (默认:2) bquanl = bonk 量化级别 (默认:1.0) bpsize = bonk 预计大小 (默认:128) tag_opts = 标记选项: artist = 设定艺术家信息 title = 设定标题 track = 设定音轨号 year = 设定专辑/音轨的年/日期 album = 设定专辑标题信息 genre = 设定流派 comment = 设定评论 taginfo = 显示选择文件的标记信息 tag_usage = 附上标记用法:pacpl <选项> [文件] rip_opts = 抓取选项: rip = 抓取以逗号分隔的音轨或者全部 nocddb = 禁用 cddb noinput = 禁用 cddb 交互 nscheme = 命名方案 cdinfo = 显示当前碟片的 cddb 信息 device = 默认 = /dev/dvd rip_usage = 抓取用法:pacpl --rip [音轨/全部] --to <格式> <选项>pacpl-6.1.0/po/ca.po0000644000175000017500000001423013275724626011776 0ustar pipi############################################ # Català - Xavi (xavi13@gmail.com) ############################################ # # Translation Instructions: # # 1) only translate text after the = sign (translate the value not the key) # 2) make sure there is only one space between either side of the = sign # 3) be sure to include the language name, and your name/email at the top # 4) spell check # 5) please translate these instructions and include them with your lang.po # # You can submit your translations to vorzox@gmail.com ################## # Error messages # ################## error = error failed = failed: bad_input = format de destí no suportat. multi_out = --outfile no es pot utilitzar codificant múltiples fitxers. no_config = fitxer de configuració no trobat...utilitzant paràmetres per defecte. unk_encoder = selected encoder not valid for: unk_decoder = selected decoder not valid for: no_decoder = Avís: el següent fitxer no es pot decodificar: no_encoder = codificant 'per' el següent no està suportat: no_encode_app = could not find suitable application to encode: no_decode_app = could not find suitable application to decode: no_app = no puc trobar l'aplicació: no_outdir = el directori de sortida no existeix no_infile = el següent no és un fitxer o directori no_input = heu d'especificar almenys un fitxer d'entrada no_read_tag = no puc llegir etiqueta per: no_write_tag = no puc escriure etiqueta per: no_disc = no puc obrir el disc d'àudio: no_cddb = no puc trobar l'entrada cddb. utilitzeu la opció --nocddb. no_kdialog = no trobo kdialog. instal·leu el paquet kdebase. need_outdir = heu d'especificar un directori de sortida. encode_failed = codificació fallida amb codi de sortida: decode_failed = decodificació fallida amb codi de sortida: empty_dir = directori buit, proveu utilitzant la opció --recursive: opening_dir = no puc obrir el directori: opening_file = no puc obrir el fitxer: seek_help = vegeu 'pacpl --help' o 'pacpl --longhelp' per a la llista d'opcions. ########### # Notices # ########### converting = Convertint: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Conversió finalitzada. removed_tmp = fitxer temporal esborrat: removed_src = fitxer original esborat: enc_fmts = formats de codificació: dec_fmts = formats de decodificació: tag_info = etiquetant informació per: write_tag_i = escribint informació d'etiqueta per: creating_dir = creant directori: imported = mòduls importats: debug = depuració: loaded_config = fitxer de configuració carregat: ripping_track = Extraient pista: total_converted = Total files converted: overwrite = fitxer de sortida existent. utiltzeu --overwrite per substituir el fitxer existent. show_encoders = encoders for show_decoders = decoders for ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = sobreescriure fitxer de sortida si existeix? (1 = si, 0 = no) gui_bitrate = seleccioneu bitrate gui_freq = rati de mostreig d'àudio gui_chans = canals d'àudio gui_fcomp = nivell de compresió FLAC gui_acomp = nivell de compresió APE gui_oggqual = nivell de qualitat Ogg Vorbis gui_spxqual = nivell de qualitat speex gui_aacqual = nivell de qualitat AAC/MP4/M4A gui_mpcqual = nivell de qualitat Musepack gui_ofmode = mode de compresió OptimFrog gui_ofopt = nivell d'optimització OptimFrog gui_bratio = rati de pèrdua BONK gui_bquanl = rati de quantificació BONK gui_bpsize = mida de predicció BONK gui_outdir = Select output folder ################## # Help menu text # ################## to = format de destí recursive = converteix directori(s) recursivament preserve = preserva l'estructura de directoris formats = llista els formats codificació/decodificació suportats only = només converteix fitxers coincidents amb l'extensió keep = manté fitxers coincidents amb el format de destí jobs = number of simultaneous files to process help = aquest menú d'ajut longhelp = llista completa d'opcions version = mostra informació de versió update = check for newer version usage = ús: pacpl --to [fitxer(s)/directori(s)] defopts = turn off default encoder options (0) eopts = opcions de codificació proporcionades per l'usuari dopts = opcions de decodificació proporcionades per l'usuari nopts = opcions de normalització proporcionades per l'usuari outfile = nom de fitxer de sortida outdir = directori de sortida dryrun = no converteix fitxers overwrited = sobreescriu fitxer de destí normalize = normalitza fitxer wav abans de codificar delete = esborra fitxer origen després de la conversió encoder = specify an alternate encoder decoder = specify an alternate decoder verbose = mostra informació detallada user_opts = opcions d'usuari: enc_opts = opocions del codificador: bitrate = bitrate (def. 128) freq = freqüència d'àudio (def. 44100) channels = nombre de canals d'àudio (def. 2) effect = efecte sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = nivell de compresió flac/fla (def. 2) acomp = nivell de compresió ape (def. 3000) oggqual = nivell de qualitat ogg (def. 3) spxqual = nivell de qualitat spx (def. 8) aacqual = nivell de qualitat aac/mp4/m4a (def. 100) mpcqual = nivell de qualitat mpc/mpp (def. ràdio) ofmode = mode ofr/ofs (def. normal) ofopt = optimització ofr/ofs (def. ràpid) bratio = rati de pèrdua bonk (def. 2) bquanl = rati de quantficació bonk (def. 1.0) bpsize = mida de predicció bonk (def. 128) tag_opts = opcions d'etiquetatge: artist = estableix informació de l'artista title = estableix el títol track = estableix número de pista year = estableix any/data de l'àlbum/pista album = estableix informació del títol de l'àlbum genre = estableix el gènere comment = estableix comentaris taginfo = mostra informació de l'etiqueta del fitxer seleccionat tag_usage = ús de l'etiquetatge: papcl [fitxer(s)] rip_opts = opcions d'extracció: rip = extreu pistes separades per coma o totes nocddb = desactiva cddb noinput = desactiva cddb interactivament nscheme = esquema de nombrat cdinfo = mostra informació cddb del disc actual device = defecte = /dev/dvd rip_usage = ús de l'exractor: pacpl --rip [pista(es)/tot] --to pacpl-6.1.0/po/GR.po0000644000175000017500000002217613275724626011733 0ustar pipi############################################ # Greek/Hellenic - Apostolakos Evangelos (apostolakos.evangelos@gmail.com) ############################################ ################## # Error messages # ################## error = σφάλμα failed = απέτυχε: bad_input = η μορφή προέλευσης δεν υποστηρίζεται. multi_out = η επιλογή --outfile δεν μπορεί να χρησιμοποιηθεί για κωδικοποίηση πολλαπλών αρχείων. no_config = το αρχείο καταγραφής επιλογών δεν βρέθηκε...οι προκαθορισμένες επιλογές θα χρησιμοποιηθούν. unk_encoder = ο επιλεγμένος κωδικοποιητής δεν ισχύει για: unk_decoder = ο επιλεγμένος αποκωδικοποιητής δεν ισχύει για: no_decoder = προειδοποίηση: η αποκωδικοποίηση δεν ήταν δυνατή για το αρχείο: no_encoder = η κωδικοποίηση δεν υποστηρίζεται για: no_encode_app = δεν βρέθηκε κατάλληλη εφαρμογή για την κωδικοποίηση: no_decode_app = δεν βρέθηκε κατάλληλη εφαρμογή για την αποκωδικοποίηση: no_app = η εφαρμογή δεν βρέθηκε: no_outdir = ο φάκελος για την εξαγωγή δεν υπάρχει. no_infile = δεν είναι αρχείο ή φάκελος: no_input = πρέπει να καθοριστεί τουλάχιστον ένα αρχείο προέλευσης. no_read_tag = δεν μπόρεσε να γίνει ανάγνωση του tag για: no_write_tag = δεν μπόρεσε να γίνει καταγραφή tag για: no_disc = δεν βρέθηκε δίσκος ήχου: no_cddb = η καταγραφή cddb δεν βρέθηκε. χρησιμοποίησε την επιλογή --nocddb. no_kdialog = το kdialog δεν βρέθηκε. εγκατέστησε το kdebase package. need_outdir = πρέπει να καθοριστεί ένας φάκελος εξαγωγής. encode_failed = η κωδικοποίηση απέτυχε με την εξής κατάσταση: decode_failed = η αποδικοποίηση απέτυχε με την εξής κατάσταση: empty_dir = ο φάκελος είναι άδειος, δοκίμασε να χρησιμοποιήσεις την επιλογή --recursive: opening_dir = δεν ήταν δυνατό το άνοιγμα του φακέλου: opening_file = δεν ήταν δυνατό το άνοιγμα του αρχείου: seek_help = δες 'pacpl --help' ή 'pacpl --longhelp' για μία λίστα των επιλογών. ########### # Notices # ########### converting = Μετατρέπεται το: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = ..έγινε. removed_tmp = διαγράφηκε προσωρινό αρχείο : removed_src = το αρχείο προέλευσης διαγράφηκε: enc_fmts = μορφές κωδικοποίησης: dec_fmts = μορφές αποκωδικοποίησης: tag_info = πληροφορίες tag για: write_tag_i = γράφονται πληροφορίες tag για: creating_dir = δημιουργείται φάκελος: imported = εισάγωνται modules: debug = debug: loaded_config = το αρχείο καταγραφής επιλογών φορτώθηκε: ripping_track = Ripping το κομμάτι: total_converted = Σύνολο αρχείων που μετατράπηκαν: overwrite = το αρχείο προορισμού υπάρχει. χρησιμοποίησε την επιλογή --overwrite για την αντικατάσταση του υπάρχοντος αρχείου. show_encoders = κωδικοποιητήες για show_decoders = αποκωδικοποιητές για ####################################### # user prompts for Konqueror & Dolphin # ####################################### gui_overwrite = να αντικατασταθεί το αρχείο προορισμού αν υπάρχει;(1 = ναι, 0 = όχι) gui_bitrate = επέλεξε το bitrate gui_freq = sampling rate ήχου gui_chans = κανάλια ήχου gui_fcomp = επίπεδο συμπίεσης FLAC gui_acomp = επίπεδο συμπίεσης APE gui_oggqual = επίπεδο ποιότητας Ogg Vorbis gui_spxqual = επίπεδο ποιότητας speex gui_aacqual = επίπεδο ποιότητας AAC/MP4/M4A gui_mpcqual = επίπεδο ποιότητας Musepack gui_ofmode = λειτουργία συμπίεσης OptimFrog gui_ofopt = επίπεδο βελτιστοποίησης OptimFrog gui_bratio = BONK downsampling ratio gui_bquanl = επίπεδο quantanization BONK gui_bpsize = πρόβλεψη μεγέθους BONK gui_outdir = Select output folder ################## # Help menu text # ################## to = μορφή προορισμού recursive = αναδρομική μετατροπή φακέλου(ων) preserve = διατήρηση δομής φακέλου formats = εμφάνιση σε λίστα των υποστηριζόμενων μορφών κωδικοποιητών/αποκωδικοποιητών only = μετατροπή μόνο των αρχείων που ταιριάζουν με την επέκταση keep = διάτήρε τα αρχεία που ταιρίζουν με την μορφή προορισμού help = μενού βοήθειας jobs = number of simultaneous files to process longhelp = πλήρης λίστα επιλογών version = εμφάνιση πληροφοριών έκδοσης update = check for newer version usage = χρήση: pacpl --σε <μορφή> <επιλογές> [αρχείο(α)/φάκελος(οι)] eopts = επιλογές κωδικοποιητή παρεχόμενες από τον χρήστη dopts = επιλογές αποκωδικοποιητή παρεχόμενες από τον χρήστη nopts = επιλογές ομαλοποίησης παρεχόμενες από τον χρήστη outfile = όνομα αρχείου προορισμού outdir = φάκελος προορισμού dryrun = να μην γίνει μετατροπή των αρχείων overwrited = αντικατάσταση του αρχείου προορισμού normalize = ομαλοποίηση του αρχείου wav πριν την κωδικοποίηση delete = διαγραφή του αρχείου προέλευσης μετά την μετατροπή encoder = καθορισμός ενός εναλλακτικού κωδικοποιητή decoder = καθορισμός ενός εναλλακτικού αποκωδικοποιητή verbose = εμφάνιση λεπτομερών πληροφοριών user_opts = επιλογές χρήστη: enc_opts = επιλογές κωδικοποιητή: bitrate = bitrate (προεπιλεγμ. 128) freq = συχνότητα ηχου (προεπιλεγμ. 44100) channels = αριθμός καναλιών ήχου (προεπιλεγμ. 2) effect = εφέ sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = επίπεδο συμπίεσης flac/fla (προεπιλεγμ. 2) acomp = επίπεδο συμπίεσης ape (προεπιλεγμ. 3000) oggqual = επίπεδο ποιότητας ogg (προεπιλεγμ. 3) spxqual = επίπεδο ποιότητας spx (προεπιλεγμ. 8) aacqual = επίπεδο ποιότητας aac/mp4/m4a (προεπιλεγμ. 100) mpcqual = επίπεδο ποιότητας mpc/mpp (προεπιλεγμ. radio) ofmode = λειτουργία ofr/ofs (προεπιλεγμ. normal) ofopt = βελτιστοποίηση ofr/ofs (προεπιλεγμ. fast) bratio = σχέση bonk down sampling (προεπιλεγμ. 2) bquanl = επίπεδο quantization bonk (προεπιλεγμ. 1.0) bpsize = πρόβλεψη μεγέθους bonk (προεπιλεγμ. 128) tag_opts = επιλογές tagging: artist = καθορισμός πληροφοριών καλλιτέχνη title = καθορισμός τίτλου track = καθορισμός αριθμού κομματιού year = καθορισμούς χρονιάς/ημερομηνίας δίσκου/κομματιού album = καθορισμός πληροφοριών τίτλου δίσκου genre = καθορισμός φύλου comment = καθορισμός σχολίων taginfo = εμφάνιση πληροφοριών tagging για το επιλεγμένο αρχείο tag_usage = χρήση tagging: pacpl <επιλογές> [αρχείο(α)] rip_opts = επιλογές ripping: rip = rip τα κομμάτια χωρισμένα με κόμμα ή όλα nocddb = απενεργοποίηση cddb noinput = απενεργοποίηση διάδρασης cddb nscheme = ονομασία σχήαμτος cdinfo = εμφάνιση πληροφοριών cddb για τον συγκεκριμένο δίσκο device = προεπιλεγμένη = /dev/dvd rip_usage = χρήση rip: pacpl --rip [κομματι(α)/όλα] --σε <μορφή> <επιλογές> pacpl-6.1.0/po/fr_FR.po0000644000175000017500000001522713275724626012420 0ustar pipi##################################################### # Français - Guillaume LOYOT (gui41981@hotmail.com) # ##################################################### # # Instructions de traduction: # # 1) traduire uniquement le texte après le signe = (traduire la valeur et non la clé) # 2) s'assurer de ne laisser qu'un seul espace de part et d'autre du signe = # 3) s'assurer d'inclure le nom de la langue ainsi que votre nom/email au début de ce fichier # 4) vérifier la grammaire et la syntaxe # 5) s'il vous plait, veuillez traduire ces instructions et les inclure dans votre fichier langue.po # # Vous pouvez soumettre vos traductions à vorzox@gmail.com ##################### # Messages d'erreur # ##################### error = erreur failed = échec: bad_input = format de destination non supporté. multi_out = --outfile ne peut être utilisé lors de l'encodage multiple. no_config = fichier de configuration non trouvé... utilisation des paramètres par défaut. unk_encoder = type d'encodeur non valide pour: unk_decoder = type de décodeur non valide pour: no_decoder = Attention: ce fichier ne peut être converti: no_encoder = encoding 'to' cette option n'est pas supportée: no_encode_app = impossible de trouver l'application nécessaire à l'encodage: no_decode_app = impossible de trouver l'application nécessaire au décodage: no_app = impossible de trouver l'application: no_outdir = le répertoire de destination n'existe pas. no_infile = l'entrée suivante n'est ni un fichier ni un répertoire: no_input = vous devez spécifier au moins un fichier source. no_read_tag = lecture du tag impossible pour: no_write_tag = écriture du tag impossible pour: no_disc = impossible d'ouvrir le disque audio: no_cddb = impossible de trouver d'entrées cddb. Utiliser l'option --nocddb. no_kdialog = kdialog Introuvable. Installez le paquet kdebase. need_outdir = Vous devez spécifier un répertoire de destination. encode_failed = Erreur d'encodage avec le code de sortie: decode_failed = Erreur de décodage avec le code de sortie: empty_dir = répertoire vide, essayez avec l'option --recursive: opening_dir = impossible d'ouvrir le répertoire: opening_file = impossible d'ouvrir le fichier: seek_help = voir 'pacpl --help' ou 'pacpl --longhelp' pour une liste détaillée des options. ########### # Notices # ########### converting = Conversion: up_to_date = is up to date: update_version = A newer version of Perl Audio Converter exists: conv_comp = Conversion terminée. removed_tmp = suppression du fichier temporaire: removed_src = suppression du fichier source: enc_fmts = formats d'encodage: dec_fmts = formats de décodage: tag_info = informations sur les tags pour: write_tag_i = écriture des tags pour: creating_dir = création du répertoire: imported = modules importés: debug = débogage: loaded_config = fichier de configuration chargé: ripping_track = extraction de la piste: total_converted = Total des fichiers convertis: overwrite = le fichier de sortie existe. Utilisez --overwrite pour remplacer le fichier existant. show_encoders = encodeurs pour show_decoders = décodeurs pour ################################################## # affichages utilisateur pour Konqueror & Dolphin # ################################################## gui_overwrite = écraser le fichier de sortie si existant? (1 = oui, 0 = non) gui_bitrate = choisir le bitrate gui_freq = taux d'échantillonage audio gui_chans = cannaux audio channels gui_fcomp = niveau de compression FLAC gui_acomp = niveau de compression APE gui_oggqual = niveau de qualité Ogg Vorbis gui_spxqual = niveau de qualité speex gui_aacqual = niveau de qualité AAC/MP4/M4A gui_mpcqual = niveau de qualité Musepack gui_ofmode = mode de compression OptimFrog gui_ofopt = niveau d'optimisation OptimFrog gui_bratio = ratio d'échantillonage BONK gui_bquanl = niveau quantique de BONK gui_bpsize = taille du prédicat BONK gui_outdir = Select output folder ######################## # Texte du menu d'aide # ######################## to = format de destination recursive = répertoire(s) de conversion récursive preserve = respecte la structure des répertoires formats = liste les formats d'encodage/décodage supportés only = convertit uniquement les fichiers dont l'extension correspond keep = conserve les fichiers de destination dont le format correspond jobs = number of simultaneous files to process help = affiche ce menu d'aide longhelp = liste complète des options version = affiche les informations de version update = check for newer version usage = utilisation: pacpl --to [fichier(s)/répertoire(s)] defopts = turn off default encoder options (0) eopts = options utilisateur complémentaires d'encodage dopts = options utilisateur complémentaires de décodage nopts = options utilisateur complémentaires de normalisation outfile = nom de fichier de sortie outdir = répertoire de sortie dryrun = ne pas convertir les fichiers overwrited = écraser les fichiers de destination normalize = normalisation wave avant encodage delete = suppression du fichier source après conversion encoder = spécifie un encodeur alternatif decoder = spécifie un décodeur alternatif verbose = affiche les informations détaillées user_opts = options utilisateur: enc_opts = options d'encodage: bitrate = bitrate (def. 128) freq = fréquence audio (def. 44100) channels = nombre maximum de cannaux (def. 2) effect = effet sox (aiff/au/snd/raw/voc/smp/avr/cdr) fcomp = niveau de compression flac/fla (def. 2) acomp = niveau de compression ape (def. 3000) oggqual = niveau de qualité ogg (def. 3) spxqual = niveau de qualité spx (def. 8) aacqual = niveau de qualité aac/mp4/m4a (def. 100) mpcqual = niveau de qualité mpc/mpp (def. radio) ofmode = mode ofr/ofs (def. normal) ofopt = optimisation ofr/ofs (def. fast) bratio = ratio d'échantillonage bonk (def. 2) bquanl = niveau quantique de bonk (def. 1.0) bpsize = taille du prédicat bonk (def. 128) tag_opts = options de tag: artist = définit les informations sur l'artiste title = définit le titre track = définit le numéro de la piste year = définit l'année/la date de l'album/de la piste album = définit le titre de l'album genre = définit le genre comment = définit les commentaires taginfo = affiche les informations de tags pour le(s) fichier(s) sélectionné(s) tag_usage = utilisation des tags: pacpl [fichier(s)] rip_opts = options d'extraction: rip = extrait les pistes séparées par des virgules ou toutes (option all) nocddb = désactive cddb noinput = désactive cddb interaction nscheme = schéma de nommage cdinfo = affiche les informations cddb pour le disque courant device = défaut = /dev/dvd rip_usage = utilisation de l'extration audio: pacpl --rip [piste(s)/all] --to pacpl-6.1.0/AUTHORS0000644000175000017500000000004013275724626011477 0ustar pipiPhilip Lyons (vorzox@gmail.com) pacpl-6.1.0/codecs.conf0000644000175000017500000000305113275724626012543 0ustar pipi######################################################################################### # # Perl Audio Converter - default encoders / decoders # # FORMAT = encoder,decoder # # E = Supported Encoders # D = Supported Decoders # # You can check any format by using the following: # # pacpl --encoder or pacpl --decoder # # The above two commands will show you what is supported, installed, and the default. # Formats that only have one encoder/decoder are not listed in this file. # ######################################################################################### # AAC # # E: avconv, faac, ffmpeg # D: avconv, faad, ffmpeg, mplayer AAC = faac,faad # AC3 # # E: aften, avconv, ffmpeg # D: avconv, ffmpeg, mplayer AC3 = ffmpeg,ffmpeg # DTS # # E: avconv, dcaenc, ffmpeg # D: ffmpeg DTS = ffmpeg,ffmpeg # FLAC # # encoders: flac, ffmpeg, avconv, flake # decoders: flac, ffmpeg, avconv, mplayer FLAC = flac,flac # FLA # # E: flac, # D: flac, mplayer FLA = flac,flac # MP4 # # E: faac, ffmpeg, avconv # E: faad, ffmpeg, avconv, mplayer MP4 = faac,faad # MP3 # # E: avconv, bladeenc, ffmpeg, gogo, lame, sox # D: avconv, ffmpeg, lame, mplayer, sox MP3 = lame,lame # MP2 # # E: avconv, ffmpeg, sox, toolame, twolame # D: avconv, ffmpeg, mplayer # OGG # # E: avconv, ffmpeg, oggenc, sox # D: avconv, ffmpeg, mplayer, oggdec, sox OGG = oggenc,oggdec # TTA # # E: ttaenc # D: avconv, ffmpeg, mplayer, ttaenc TTA = ttaenc,ttaenc # WV (WAVPACK) # # E: avconv, ffmpeg, wavpack # D: avconv, ffmpeg, mplayer, wvunpack WV = wavpack,wvunpack pacpl-6.1.0/Makefile.in0000644000175000017500000005247413275724626012516 0ustar pipi# Makefile.in generated by automake 1.16.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2018 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ # Perl Audio Converter # # Copyright (C) 2005-2018 Philip Lyons (vorzox@gmail.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . am__aclocal_m4_deps = $(top_srcdir)/aclocal/ax_prog_perl_modules.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) am__DIST_COMMON = $(srcdir)/Makefile.in AUTHORS COPYING ChangeLog \ INSTALL NEWS README TODO install-sh missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AFTEN = @AFTEN@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AVCONV = @AVCONV@ AWK = @AWK@ BLADEENC = @BLADEENC@ BONK = @BONK@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ # # Default KDE directory # DESTDIR = ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ FAAC = @FAAC@ FAAD = @FAAD@ FFMPEG = @FFMPEG@ FLAC = @FLAC@ GNOMEDIR = /usr GZIP = @GZIP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_DOLP = @INSTALL_DOLP@ INSTALL_KONQ = @INSTALL_KONQ@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ KDEDIR = /usr KDIALOG = @KDIALOG@ LA = @LA@ LAME = @LAME@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAC = @MAC@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MPCDEC = @MPCDEC@ MPCENC = @MPCENC@ MPLAYER = @MPLAYER@ NAUTILUS = @NAUTILUS@ NEMO = @NEMO@ OFF = @OFF@ OFR = @OFR@ OFS = @OFS@ OGGDEC = @OGGDEC@ OGGENC = @OGGENC@ OPUSDEC = @OPUSDEC@ OPUSENC = @OPUSENC@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PERL = @PERL@ POD2HTML = @POD2HTML@ # # Compiler tools definitions... # POD2MAN = @POD2MAN@ RM = @RM@ -f SET_MAKE = @SET_MAKE@ SHELL = /bin/sh SHORTEN = @SHORTEN@ SNDFILE = @SNDFILE@ SOX = @SOX@ SPEEXDEC = @SPEEXDEC@ SPEEXENC = @SPEEXENC@ STRIP = @STRIP@ TOOLAME = @TOOLAME@ TTAENC = @TTAENC@ TWOLAME = @TWOLAME@ VERSION = @VERSION@ WAVPACK = @WAVPACK@ WVUNPACK = @WVUNPACK@ ZENITY = @ZENITY@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_prefix_program = @ac_prefix_program@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ACLOCAL_M4 = ./aclocal.m4 # # Modules & Documentation # DOCS = INSTALL README AUTHORS TODO NEWS ChangeLog COPYING LANG_MODS = po/* EXTRAS = extra/* # # Plugin directories # NAUTILUS_PLUGIN_DIR = plugins/gnome/nautilus NEMO_PLUGIN_DIR = plugins/gnome/nemo KDE_PLUGIN_DIR = plugins/kde # # Target KDE directories # KDE_INSTALL_DIR = $(DESTDIR)$(KDEDIR)/share/kde4/services NAUTILUS_INSTALL_DIR = $(DESTDIR)$(HOME)/.local/share/nautilus/scripts NEMO_INSTALL_DIR = $(DESTDIR)$(GNOMEDIR)/share/nemo/actions ICON_DIR = $(DESTDIR)$(GNOMEDIR)/share/icons # # Configuration files directories and other # CONF_DIR = $(DESTDIR)$(sysconfdir)/$(PACKAGE_NAME) PO_DIR = $(DESTDIR)$(pkgdatadir)/locale MOD_DIR = $(CONF_DIR)/modules DOC_DIR = $(DESTDIR)$(docdir) MAN_DIR = $(DESTDIR)$(mandir)/man1 EXTRA_DIR = $(CONF_DIR)/extra edit = sed \ -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' all: all-am .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): tags TAGS: ctags CTAGS: cscope cscopelist: distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-am all-am: Makefile installdirs: install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean-am: clean-generic mostlyclean-am distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: all all-am am--refresh check check-am clean clean-generic \ cscopelist-am ctags-am dist dist-all dist-bzip2 dist-gzip \ dist-lzip dist-shar dist-tarZ dist-xz dist-zip distcheck \ distclean distclean-generic distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \ uninstall-am .PRECIOUS: Makefile all : pacpl.1.gz pacpl: pacpl.in Makefile rm -f $@ $@.tmp $(edit) '$@.in' >$@.tmp mv $@.tmp $@ chmod +x $@ pacpl.1.gz : pacpl $(POD2MAN) $< | $(GZIP) -9 > $@ touch $@ install: all main install-plugins main: $(INSTALL) -d $(DESTDIR)$(bindir) $(INSTALL) -d $(CONF_DIR) $(INSTALL) -d $(PO_DIR) $(INSTALL) -d $(MOD_DIR) $(INSTALL) -d $(MAN_DIR) $(INSTALL) -d $(DOC_DIR) $(INSTALL) -d $(EXTRA_DIR) $(INSTALL) pacpl $(DESTDIR)$(bindir) $(INSTALL_DATA) pacpl.conf codecs.conf pacpl.png $(CONF_DIR) $(INSTALL_DATA) $(LANG_MODS) $(PO_DIR) $(INSTALL_DATA) pacpl.1.gz $(MAN_DIR) $(INSTALL_DATA) $(DOCS) $(DOC_DIR) $(INSTALL_DATA) $(EXTRAS) $(EXTRA_DIR) install-plugins: @INSTALL_KDE_TRUE@ $(INSTALL) -d $(KDE_INSTALL_DIR) @INSTALL_KDE_TRUE@ $(INSTALL) $(KDE_PLUGIN_DIR)/PACPL-Konvert $(DESTDIR)$(bindir) @INSTALL_KDE_TRUE@ $(INSTALL_DATA) $(KDE_PLUGIN_DIR)/pacpl.desktop $(KDE_INSTALL_DIR) @INSTALL_KDE_TRUE@ sed -i 's/KDE_DIR = 0/KDE_DIR = 1/' $(CONF_DIR)/pacpl.conf @INSTALL_KDE_TRUE@ sed -i 's/KDE_OPTS = 0/KDE_OPTS = 1/' $(CONF_DIR)/pacpl.conf @INSTALL_NAUTILUS_TRUE@ $(INSTALL) -d $(NAUTILUS_INSTALL_DIR) @INSTALL_NAUTILUS_TRUE@ $(INSTALL) $(NAUTILUS_PLUGIN_DIR)/PACPL-Convert $(NAUTILUS_INSTALL_DIR) @INSTALL_NEMO_TRUE@ $(INSTALL) -d $(NEMO_INSTALL_DIR) @INSTALL_NEMO_TRUE@ $(INSTALL) $(NEMO_PLUGIN_DIR)/PACPL-Convert $(NEMO_INSTALL_DIR) @INSTALL_NEMO_TRUE@ $(INSTALL_DATA) $(NEMO_PLUGIN_DIR)/pacpl.nemo_action $(NEMO_INSTALL_DIR) @INSTALL_NEMO_TRUE@ $(INSTALL_DATA) $(NEMO_PLUGIN_DIR)/pacpl.png $(ICON_DIR) @ENABLE_GNOME_NAUTILUS_TRUE@ sed -i 's/ZEN_DIR = 0/ZEN_DIR = 1/' $(CONF_DIR)/pacpl.conf @ENABLE_GNOME_NAUTILUS_TRUE@ sed -i 's/ZEN_OPTS = 0/ZEN_OPTS = 1/' $(CONF_DIR)/pacpl.conf @ENABLE_GNOME_NEMO_TRUE@ sed -i 's/ZEN_DIR = 0/ZEN_DIR = 1/' $(CONF_DIR)/pacpl.conf @ENABLE_GNOME_NEMO_TRUE@ sed -i 's/ZEN_OPTS = 0/ZEN_OPTS = 1/' $(CONF_DIR)/pacpl.conf clean: $(RM) pacpl.1.gz distclean: clean $(RM) config.log $(RM) config.status $(RM) Makefile $(RM) pacpl find . -name '*~' -exec $(RM) '{}' \; uninstall: uninstall-plugins $(RM) $(DESTDIR)$(bindir)/pacpl $(RM) $(MAN_DIR)/pacpl.1.gz $(RM) -r $(CONF_DIR)/pacpl $(RM) -r $(DOC_DIR)/pacpl $(RM) -r $(DESTDIR)$(pkgdatadir) uninstall-plugins: @INSTALL_KDE_TRUE@ $(RM) $(KDE_INSTALL_DIR)/pacpl.desktop @INSTALL_KDE_TRUE@ $(RM) $(DESTDIR)$(bindir)/PACPL-Konvert @INSTALL_NAUTILUS_TRUE@ $(RM) $(NAUTILUS_INSTALL_DIR)/PACPL-Convert @INSTALL_NEMO_TRUE@ $(RM) $(NEMO_INSTALL_DIR)/PACPL-Convert @INSTALL_NEMO_TRUE@ $(RM) $(NEMO_INSTALL_DIR)/pacpl.nemo_action @INSTALL_NEMO_TRUE@ $(RM) $(ICON_DIR)/pacpl.png # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: pacpl-6.1.0/slack-desc0000644000175000017500000000303013275724626012365 0ustar pipi# HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. |-----handy-ruler------------------------------------------------------| pacpl: Perl Audio Converter pacpl: pacpl: A Linux CLI tool for converting multiple audio types from one format pacpl: to another. papcl: pacpl: It supports the following audio formats: pacpl: pacpl: 3G2, 3GP, 8SVX, AAC, AC3, ADTS, AIFF, AL, AMB, AMR, APE, AU, pacpl: AVR, BONK, CAF, CDR, CVU, DAT, DTS, DVMS, F32, F64, FAP, FLA, pacpl: FLAC, FSSD, GSRT, HCOM, IMA, IRCAM, LA, MAT, MAUD, MAT4, MAT5, pacpl: M4A, MP2, MP3, MP4, MPC, MPP, NIST, OFF, OFR, OFS, OPUS, OGA, pacpl: OGG, PAF, PRC, PVF, RA, RAM, RAW, RF64, SD2, SF, SHN, SMP, SND, pacpl: SOU, SPX, SRN, TAK, TTA, TXW, VOC, VMS, VQF, W64, WAV, WMA, pacpl: and WV. pacpl: pacpl: It can also extract audio from the following video extensions: pacpl: pacpl: RM, RV, ASF, DivX, MPG, MKV, MPEG, AVI, MOV, OGA, OGM, OGV, QT, VCD, pacpl: SVCD, M4V, NSV, NUV, PSP, SMK, VOB, FLV, WEBM and WMV. pacpl: pacpl: Parallel processing, a CD ripping function with CDDB support, batch pacpl: conversion, tag preservation for most supported formats, independent tag pacpl: reading & writing, and extensions for Dolphin & Konqueror are pacpl: also provided.pacpl-6.1.0/NEWS0000644000175000017500000000000013275724626011122 0ustar pipipacpl-6.1.0/README.md0000644000175000017500000000001013275724626011703 0ustar pipi# pacpl pacpl-6.1.0/INSTALL0000644000175000017500000003660013275724626011473 0ustar pipiInstallation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. pacpl-6.1.0/ChangeLog.txt0000644000175000017500000002330013275724626013023 0ustar pipi================= [**** 6.1.0 ****] ================= * updated version to 6.1.0 % fixed kdialog ouput directory space issue thanks to Jeremy Rehbaum (JRehbaum@juno.com) % incorporated patches from Paulo Marcel Coelho Aragão - fix blank WMA tags - fix decoder not working for WMA - fix overwrite check to act more appropriately - fix DEFOPTS = 0 to work as intended + added alac-decoder support for .mp4 files + added .gitignore % fixed handling of m4a (AAC) codec handling % incoporated patches from Reuben Thomas (rrt@sc3d.org) - fix installaton under different prefix and/or DESTDIR - fix hardwired pathes in pacpl %note: with above patches pacpl is now pacpl.in which will be renamed after configure % updated Makefile.am to remove pacpl with "make distclean" ================= [**** 5.1.0 ****] ================= * updated version to 5.1.0 + added patches directory. below updates and incorporations are included. % incorporated the following patches Matteo Cypriani (mcy@lm7.fr) - typos - configure exit - enforce outdir when preserve is utilized - multiple input source decode * updated README.module documentation thanks to Cristian Greco ================= [**** 5.0.2 ****] ================ %fixed regex to detect directory names with spaces thanks to Dmitry Klimov ================= [**** 5.0.1 ****] ================= [01-04-2014] * updated ogg vorbis & spx tags to use TRACKNUMBER instead of TRACK % fixed coverting to "wma, ra, & mmf" thanks to bug report by Timothy E. Harris % fixed missing semicolon bug in nemo/nautilus/thunar script % fixed overwrite message to show output file, not source. % fixed Thunar PACPL-Konvert script thanks to Timothy E. Harris - removed support for .src and .ram extenions (no longer supported) ================= [**** 5.0.0 ****] ================= [11-1-2013] ** 5.0.0 Official Stable Release ** * minor code optimizations/changes * updated README program description % fixed amr encoding % fixed mmf, ra, wma, other codecs supported by ffmpeg + added a few obscure audio formats supported by sox/sndfile-convert including: rf64 (sndfile) 8svx amb dat dvms f32 f64 fssd gsrt hcom txw vms [10-12-2013] % fixed encoding to .mp4/.m4a using ffmpeg/avconv % fixed configure error when enabling nemo - removed use of Ogg::Vorbis::Header. tag writing for oga and ogg is now done via vorbiscomment (part of vorbis-tools) + added oga extension for ogg vorbis audio + added ogv audio extract support + added webm audio extract support * updated oga/ogg tag reading to use Audio::Scan [10-10-2013] % changed the kde plugin to popup a combobox for selecting the output format to keep things somewhat consistent with the rest of the platforms. % flip-flopped on the use 5.18.0 statement. seems other (*buntu*) distros consider that release "experimental". worked around it with a simple: no if $] >= 5.018, warnings => "experimental::smartmatch"; % re-wrote preserve directory function. it actually works again... + added parallel processing. about time we put those cores to use! + added use of Parallel::ForkManager module you can install it via: 1) perl -MCPAN -e 'install Parallel::ForkManager' 2) sudo apt-get install libparallel-forkmanager-perl + added option -j,--jobs option to specify concurrent jobs to process + added JOBS varible in pacpl.conf. default is set to 4 + added jobs description to locale files (need translations!) + added support for the Thunar file manager (tested under Xbuntu 13.04) see plugins/gnome/thunar/INSTALL for more information [10-1-2013] + added the use 5.18.0; requriement to pacpl. to those using earlier versions, you can remove this line but YMMV. % fixed configure script to work properly when different gui dialog / file managers are installed - removed support for lpac/pac (obsolete) - removed support for gogo (obsolete) [9-30-2013] + added GNOMEDIR variable to the Makefile in case your gnome installation is not located in the default /usr directory * updated directory structure for plugins * updated configure script to use the following: --enable-kde (for the KDE service menu) --enable-nautilus (for the nautilus script) --enable-nemo (for the nemo action script) the kde and nautilus/nemo options cannot be used together. you can however use both nemo and nautilus (assuming you have both installed) by default none of the options are enabled - removed install.sh & README for nemo script directory [9-24-2013] # bumped version to 5.0.0. with the amount of time passed since the last release and all the feature additons/changes I feel its warranted: For now we're still in the nightly/pre-release testing stage + GNOME Support Added: Note: Tested and tailored for 13.04 Unity, it will however work on earlier versions and other debian based distros using the Gnome desktop which have zenity & notify-send installed + added PACPL-Convert (Nautilus/Nemo) script + added support for running the script through Nemo on Linux Mint or other distributions that use that file manager tested on Linux Mint 15 "Olivia" Cinnamon (64-bit) - removed use of Audio::WMA - removed use of MP4::Info - removed use of Audio::Musepack - removed use of Audio::APETags the above four modules have been replaced by Audio::Scan for reading the tags from the various formats including flac. + added use of perl module Audio::Scan + added support for reading .ape tags + added support for TAK audio format (decode only) + added cdparanoia to mod-install-ubuntu.sh as part of the basic tools + added new string to .po files (gui_outdir) - **translators needed** % fixed changed FLAC tag DESCRIPTION to COMMENT % fixed FLAC upper/lower case issue by reading tags with Audio::Scan % fixed cd ripping - $out_dir should be $outdir in order run correctly % fixed encoding to .mp4 & .m4a. Had same issue as Musepack files. * updated configure for gnome & kde - neither is installed by default. you will need to --enable-kde or --enable-gnome if you would like to have eiher of the plugins installed. * updated extra/mod-install*.sh to reflect module changes * updated %run (put all codedcs in alphabetical order) a little house cleaning.. * updated default bitrate in pacpl.conf to 192kbps for formats that support it * updated pacpl.conf - changed default disc device to /dev/dvd & modified all lang/*.po files to reflect change. - removed RAM from codecs.conf (has no encoder) [9-21-2013] + added --enable-kde (adds Konqueror/Dolphin pacpl.desktop) + added --enable-gnome (nautilus script in the works) ***not included...yet*** + added support for amr audio format + added support for 3gp audio format + added support for 3g2 audio format = Note: The above three formats only work if your version of ffmpeg/avconv supports them. see extra/ffmpeg-conf.sh / extra/libav-conf.sh (requires libopencore-amr) % fixed spacing error in codecs.conf for DTS - removed --enable-konqueror & --enable-dolphin options [9-18-2013] + added ffmpeg-conf.sh and libav-conf.sh to extra/ dir. this shows what libs and options are needed for full support for pacpl + added support for libav (avconv) encoder/decoder - ffmpeg fork + added ffmpeg/avconv support to various formats as available encoder/decoder + added support for adts audio format % fixed mpc tagging using the new SV7/SV8 releases. (options have to come BEFORE the input and output file) % fixed all ffmpeg encode instances to apply $eopts (user options) when --defopts=0 to the output file as opposed to the input. * updated codecs.conf to include new formats that can be configured * updated extra/README.extra * update Makefile.am * use wildcard * for LANG_MODS instead of listing them individually * remove -t flag for $(INSTALL_DATA) [9-14-2013] * updated extra/mod-install.sh (removed Switch module) * updated extra/mod-install-kubuntu.sh (renamed to mod-install-ubuntu.sh) - removed liboggvorbis-perl + added various required modules/libs for Ogg::Vorbis::Header + added section to install basic encoders/decoders + added section to fix apt repository /var/lib/apt/lists to be able to install restricted-extras package. = tested in both Ubuntu & Kubuntu 13.04 Note: When running the script choose the default [yes] for all prompts [9-12-2013] + added support for lowercase tags when writing/reading flac metadata + added git repository (https://github.com/vorzox/pacpl) + added support for dcaenc (dts) encoder (requires multi-channel wav as input) + added support for dts (default encoder/decoder=ffmpeg) [9-10-2013] + added support for mp3HD audio format + added support for aften ac3 encoder + added support for twolame mp2 encoder + added support for opus audio format + added support for off (OptimumFrog - Float) audio format + added support for TwinVQ (vqf) audio format (decode only) + added Greek/Hellenic translation thanks to Evangelos Apostolakos + added required module CDDB (this goes along with CDDB_get) - removed amarok support - removed pacpl gui KMDR - removed support for d3lphin (obsolete) - removed --enable-all configuration option (obsolete) - removed deprecated use of Switch in favor of given-when-default * updated README to include new/updated URLs for applications * updated website pacpl.sourceforge.net (vorzox.wix.com/pacpl) * update Makefile.am and configure.ac to comply with current standards * updated slack-desc: changes layout and includes new formats % fixed ffmpeg ac3 encoding. specified bitrate was in bits not kilobits % fixed ffmpeg tag handling...again...thanks to Dave Allen Barker Jr. % fixed pacpl.desktop to include missing formats % fixed return 1 when encoding fails % fixed added MP3::Tag->config(write_v24 => 'YES') to allow updating & modifying of newer ID3v2 tags. pacpl-6.1.0/install-sh0000755000175000017500000003325613275724626012452 0ustar pipi#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for `test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: