ports/multimedia/mythtv-frontend/files/patch-configure
Greg Larkin 72a932922f - Clarified the requirement for Qt with OpenGL support to avoid
compilation problems
- Fixed backwards configure flag handling with WITH_OPENGL option
- Split some multi-file patches
- Regenerated patches with "make makepatch"
- Added patches to avoid compilation problems with installed ffmpeg port [1]
- Bumped PORTREVISION

Reported by:	Torfinn Ingolfsen <torfinn dot ingolfsen at broadpark dot no> [1]
Submitted by:	Bernhard Frohlich <decke at bluelife dot at> [1]
2009-04-25 01:17:56 +00:00

63 lines
1.9 KiB
Text

--- configure.orig 2009-04-22 21:32:14.000000000 -0400
+++ configure 2009-04-22 21:32:19.000000000 -0400
@@ -163,6 +163,7 @@
echo " directory with frontend.h [$dvb_path]"
echo " --disable-x11 disable X11 support"
echo " --x11-path=X11LOC location of X11 include files [$x11_include_path-path]"
+# echo " --enable-glx-procaddrarb use glXGetProcAddressARB() instead of glXGetProcAddress()"
echo " --disable-xrandr disable X11 resolution switching"
echo " --disable-xv disable XVideo (X11 video output accel.)"
echo " --disable-xvmc disable XvMC (Linux/BSD MPEG accel.)"
@@ -273,13 +274,13 @@
exit 1
}
-# "tr '[a-z]' '[A-Z]'" is a workaround for Solaris tr not grokking "tr a-z A-Z"
+# Avoid locale weirdness, besides we really just want to translate ASCII.
toupper(){
- echo "$@" | tr '[a-z]' '[A-Z]'
+ echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
}
tolower(){
- echo "$@" | tr '[A-Z]' '[a-z]'
+ echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
}
set_all(){
@@ -904,6 +905,7 @@
xvmc_vld
dvdv
fribidi
+ glx_proc_addr_arb
'
MYTHTV_LIST='
@@ -1189,6 +1191,7 @@
xvmc_opengl="yes"
xvmc_vld="yes"
xvmcw="yes"
+glx_proc_addr_arb="no"
# libraries
enable zlib
@@ -1353,6 +1356,10 @@
;;
--xvmc-lib=*) xvmc_lib="$optval"
;;
+ --enable-glx-procaddrarb) glx_proc_addr_arb="yes"
+ ;;
+ --disable-glx-procaddrarb) glx_proc_addr_arb="no"
+ ;;
--enable-mac-accel) dvdv="yes"
;;
--disable-mac-accel) dvdv="no"
@@ -1466,7 +1473,7 @@
x86_64|amd64)
arch="x86_32"
enable fast_unaligned
- canon_arch="`$cc -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
+ canon_arch="`$cxx -dumpmachine | sed -e 's,\([^-]*\)-.*,\1,'`"
if [ x"$canon_arch" = x"x86_64" -o x"$canon_arch" = x"amd64" ]; then
if [ -z "`echo $CFLAGS | grep -- -m32`" ]; then
arch="x86_64"