summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/Jamfile9
-rw-r--r--macosx/HandBrake.xcodeproj/project.pbxproj70
-rw-r--r--macosx/PictureGLView.h5
-rw-r--r--macosx/PictureGLView.mm8
4 files changed, 53 insertions, 39 deletions
diff --git a/contrib/Jamfile b/contrib/Jamfile
index f597eac33..86d35a536 100644
--- a/contrib/Jamfile
+++ b/contrib/Jamfile
@@ -351,11 +351,7 @@ LibVorbisEnc $(SUBDIR)/lib/libvorbisenc.a : $(SUBDIR)/lib/libvorbis.a ;
rule LibX264
{
LIBX264_PATCH = "" ;
- if $(OS) = MACOSX && $(OSPLAT) = X86
- {
- LIBX264_PATCH += "$(PATCH) -p1 < ../patch-x264-macintel.patch && " ;
- }
- else if $(OS) = CYGWIN
+ if $(OS) = CYGWIN
{
LIBX264_PATCH += "$(PATCH) -p1 < ../patch-x264-cygwin.patch && " ;
}
@@ -374,8 +370,7 @@ actions LibX264
rm -rf x264 && (gzip -dc x264.tar.gz | tar xf - ) &&
cd x264 && $(LIBX264_PATCH)
bash ./configure --prefix=$CONTRIB --enable-pthread &&
- $(MAKE) && $(MAKE) install &&
- $(STRIP) $CONTRIB/lib/libx264.a
+ $(MAKE) libx264.a && cp libx264.a $CONTRIB/lib/ && cp x264.h $CONTRIB/include/ && $(STRIP) $CONTRIB/lib/libx264.a
}
Wget $(SUBDIR)/x264.tar.gz : $(SUBDIR)/version_x264.txt ;
LibX264 $(SUBDIR)/lib/libx264.a : $(SUBDIR)/x264.tar.gz ;
diff --git a/macosx/HandBrake.xcodeproj/project.pbxproj b/macosx/HandBrake.xcodeproj/project.pbxproj
index bf4545047..2910decee 100644
--- a/macosx/HandBrake.xcodeproj/project.pbxproj
+++ b/macosx/HandBrake.xcodeproj/project.pbxproj
@@ -738,9 +738,11 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 4D4E7BC4087804870051572B /* Build configuration list for PBXProject "HandBrake" */;
+ compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 29B97314FDCFA39411CA2CEA /* HandBrake */;
projectDirPath = "";
+ projectRoot = "";
targets = (
4DD93F8D082036E8008E1322 /* HandBrake */,
4D1EA2D90993B01000FDC1A2 /* Instant HandBrake */,
@@ -1055,7 +1057,7 @@
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = (
"-D__LIBHB__",
"-DSYS_DARWIN",
@@ -1091,6 +1093,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SEPARATE_STRIP = YES;
ZERO_LINK = NO;
};
@@ -1114,7 +1117,7 @@
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = (
"-D__LIBHB__",
"-DSYS_DARWIN",
@@ -1150,6 +1153,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SEPARATE_STRIP = YES;
ZERO_LINK = NO;
};
@@ -1171,7 +1175,7 @@
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = (
"-D__LIBHB__",
"-DSYS_DARWIN",
@@ -1207,6 +1211,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SEPARATE_STRIP = YES;
ZERO_LINK = NO;
};
@@ -1228,7 +1233,7 @@
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../contrib/include";
INSTALL_PATH = /usr/local/lib;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = (
"-D__LIBHB__",
"-DSYS_DARWIN",
@@ -1264,6 +1269,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SEPARATE_STRIP = YES;
ZERO_LINK = NO;
};
@@ -1293,7 +1299,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = UB;
@@ -1316,7 +1322,7 @@
);
INFOPLIST_FILE = HandBrake.plist;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = (
../libhb/libhb.a,
@@ -1341,6 +1347,7 @@
../contrib/lib/libswscale.a,
);
PRODUCT_NAME = HandBrake;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
@@ -1392,7 +1399,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = "Instant HandBrake";
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
WRAPPER_EXTENSION = app;
ZERO_LINK = NO;
};
@@ -1434,7 +1441,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = UB;
@@ -1446,9 +1453,10 @@
ppc,
i386,
);
+ GCC_MODEL_TUNING = G5;
GCC_PREPROCESSOR_DEFINITIONS = "JOB_GROUPS=1";
- MACOSX_DEPLOYMENT_TARGET = 10.3;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
};
name = UB;
};
@@ -1478,7 +1486,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Development;
@@ -1508,7 +1516,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Deployment;
@@ -1537,7 +1545,7 @@
PER_ARCH_CFLAGS_ppc = "-DWORDS_BIGENDIAN";
PREBINDING = NO;
PRODUCT_NAME = hb;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Default;
@@ -1581,7 +1589,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Development;
@@ -1624,7 +1632,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Deployment;
@@ -1665,7 +1673,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = HandBrakeCLI;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Default;
@@ -1713,7 +1721,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = "Instant HandBrake";
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
WRAPPER_EXTENSION = app;
ZERO_LINK = NO;
};
@@ -1761,7 +1769,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = "Instant HandBrake";
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
WRAPPER_EXTENSION = app;
ZERO_LINK = NO;
};
@@ -1807,7 +1815,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = "Instant HandBrake";
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
WRAPPER_EXTENSION = app;
ZERO_LINK = NO;
};
@@ -1834,7 +1842,7 @@
);
INFOPLIST_FILE = HandBrake.plist;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = (
../libhb/libhb.a,
@@ -1859,6 +1867,7 @@
../contrib/lib/libswscale.a,
);
PRODUCT_NAME = HandBrake;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
@@ -1890,7 +1899,7 @@
);
INFOPLIST_FILE = HandBrake.plist;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = (
../libhb/libhb.a,
@@ -1915,6 +1924,7 @@
../contrib/lib/libswscale.a,
);
PRODUCT_NAME = HandBrake;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
@@ -1944,7 +1954,7 @@
);
INFOPLIST_FILE = HandBrake.plist;
LIBRARY_SEARCH_PATHS = "";
- MACOSX_DEPLOYMENT_TARGET = 10.4;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = (
../libhb/libhb.a,
@@ -1969,6 +1979,7 @@
../contrib/lib/libswscale.a,
);
PRODUCT_NAME = HandBrake;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
SECTORDER_FLAGS = "";
WARNING_CFLAGS = (
"-Wmost",
@@ -1985,10 +1996,11 @@
DEBUG_INFORMATION_FORMAT = dwarf;
GCC_DEBUGGING_SYMBOLS = default;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
- MACOSX_DEPLOYMENT_TARGET = 10.3;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
PREBINDING = NO;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
ZERO_LINK = NO;
};
name = Development;
@@ -1996,18 +2008,20 @@
4D4E7BC6087804870051572B /* Deployment */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ GCC_MODEL_TUNING = G5;
GCC_PREPROCESSOR_DEFINITIONS = "JOB_GROUPS=1";
- MACOSX_DEPLOYMENT_TARGET = 10.3;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
};
name = Deployment;
};
4D4E7BC7087804870051572B /* Default */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ GCC_MODEL_TUNING = G5;
GCC_PREPROCESSOR_DEFINITIONS = "JOB_GROUPS=1";
- MACOSX_DEPLOYMENT_TARGET = 10.3;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ MACOSX_DEPLOYMENT_TARGET = 10.5;
+ SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
};
name = Default;
};
diff --git a/macosx/PictureGLView.h b/macosx/PictureGLView.h
index 229d822ac..78f9afdf2 100644
--- a/macosx/PictureGLView.h
+++ b/macosx/PictureGLView.h
@@ -27,7 +27,10 @@
float fCoordY;
uint8_t * fBuffers[2];
- unsigned long fTextures[2];
+ /* Tiger */
+ //unsigned long fTextures[2];
+ /* Leopard */
+ unsigned int fTextures[2];
int fLastEffect;
int fAnimDuration;
diff --git a/macosx/PictureGLView.mm b/macosx/PictureGLView.mm
index 611fb3a86..6a753380c 100644
--- a/macosx/PictureGLView.mm
+++ b/macosx/PictureGLView.mm
@@ -414,9 +414,11 @@ static int GetAlignedSize( int size )
/* Swap buffers only during the vertical retrace of the monitor.
http://developer.apple.com/documentation/GraphicsImaging/
Conceptual/OpenGL/chap5/chapter_5_section_44.html */
- long params[] = { 1 };
- CGLSetParameter( CGLGetCurrentContext(), kCGLCPSwapInterval,
- params );
+ /* Tiger */
+ //long params[] = { 1 };
+ /* Leopard */
+ int params[] = { 1 };
+ CGLSetParameter( CGLGetCurrentContext(), kCGLCPSwapInterval, params );
if( !( anim & HB_ANIMATE_NONE ) )
{