You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.9 KiB
49 lines
1.9 KiB
18 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../ffmpeg/ffmpeg.conf
|
||
|
# Copyright (C) 2006 The OpenSDE Project
|
||
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
||
|
# Copyright (C) 1998 - 2003 Clifford Wolf
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# 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; version 2 of the License. A copy of the
|
||
|
# GNU General Public License can be found in the file COPYING.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
# fill options the configure does not attempt to detect ...
|
||
|
pkginstalled lame && var_append extraconfopt " " "--enable-mp3lame"
|
||
|
pkginstalled a52dec && var_append extraconfopt " " "--enable-a52"
|
||
|
pkginstalled xvid && var_append extraconfopt " " "--enable-xvid"
|
||
|
pkginstalled libtheora && var_append extraconfopt " " "--enable-theora"
|
||
|
pkginstalled x264 && var_append extraconfopt " " "--enable-x264"
|
||
|
pkginstalled faac && var_append extraconfopt " " "--enable-faac --enable-faad"
|
||
|
var_append confopt " " "--enable-pthreads"
|
||
|
|
||
|
|
||
|
# Imlib2 support
|
||
|
if pkginstalled imlib2 ; then
|
||
|
pkgprefix -t imlib2
|
||
|
var_append extraconfopt " " "--extra-cflags=-I$root/$( pkgprefix includedir imlib2 )"
|
||
|
var_append extraconfopt " " "--extra-ldflags=-L$root/$( pkgprefix libdir imlib2 )"
|
||
|
fi
|
||
|
|
||
|
# Ogg Vorbis support
|
||
|
if pkginstalled libogg ; then
|
||
|
var_append extraconfopt " " "--enable-libogg"
|
||
|
pkginstalled libvorbis && var_append extraconfopt " " "--enable-vorbis"
|
||
|
fi
|
||
|
|
||
|
# MMX optimizations currently don't compile (version 0.4.8)
|
||
|
var_append confopt " " "--enable-gpl --enable-shared --enable-pp"
|
||
|
|
||
|
# do not utilize uname to accidently retrieve sparc64 on 32bit user-space Ultras
|
||
|
[ "$arch" = "sparc" ] && var_append confopt " " "--cpu=$arch_machine"
|
||
|
|
||
|
# no fPIC for x86 right now - it fails ...
|
||
|
[ "$arch" = "x86" ] && var_remove GCC_WRAPPER_APPEND ' ' '-fPIC'
|
||
|
|