2009-04-08 14:07:17 +04:00
|
|
|
# This file contains setup for features that can optionally be used for the
|
|
|
|
# build. For features that require downloading a zip file from somewhere it is
|
|
|
|
# likely the same file use for an optional package.
|
|
|
|
|
|
|
|
|
|
|
|
# SSL
|
|
|
|
|
|
|
|
# Automatically enable the SSL feature, when the optional OpenSSL optional
|
|
|
|
# package is enabled.
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded OpenSSL ] {
|
|
|
|
HAIKU_BUILD_FEATURE_SSL = 1 ;
|
|
|
|
}
|
|
|
|
|
2010-11-22 16:06:36 +03:00
|
|
|
if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
2011-09-10 02:27:08 +04:00
|
|
|
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0e-x86-gcc4-2011-09-08.zip ;
|
2010-11-22 16:06:36 +03:00
|
|
|
} else {
|
2011-09-10 02:27:08 +04:00
|
|
|
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0e-x86-gcc2-2011-09-09.zip ;
|
2010-11-22 16:06:36 +03:00
|
|
|
}
|
|
|
|
|
2009-04-08 14:07:17 +04:00
|
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
2010-02-27 20:48:12 +03:00
|
|
|
HAIKU_OPENSSL_URL = $(baseURL)/$(HAIKU_OPENSSL_PACKAGE) ;
|
2009-04-08 14:07:17 +04:00
|
|
|
|
|
|
|
if $(HAIKU_BUILD_FEATURE_SSL) {
|
|
|
|
if $(TARGET_ARCH) != x86 {
|
|
|
|
Echo "SSL build feature not available for $(TARGET_ARCH)" ;
|
|
|
|
} else {
|
|
|
|
# Download the zip archive.
|
2010-02-27 20:48:12 +03:00
|
|
|
local zipFile = [ DownloadFile $(HAIKU_OPENSSL_PACKAGE)
|
2009-04-08 14:07:17 +04:00
|
|
|
: $(HAIKU_OPENSSL_URL) ] ;
|
|
|
|
|
|
|
|
# zip file and output directory
|
|
|
|
HAIKU_OPENSSL_ZIP_FILE = $(zipFile) ;
|
|
|
|
HAIKU_OPENSSL_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
2010-02-27 20:48:12 +03:00
|
|
|
$(HAIKU_OPENSSL_PACKAGE:B) ] ;
|
2009-04-08 14:07:17 +04:00
|
|
|
|
2010-02-27 20:48:12 +03:00
|
|
|
# extract headers and libraries
|
2010-02-25 17:54:50 +03:00
|
|
|
HAIKU_OPENSSL_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_OPENSSL_DIR)
|
2011-07-10 19:18:52 +04:00
|
|
|
: common/include/ : $(zipFile) : extracted-openssl
|
2009-04-08 14:07:17 +04:00
|
|
|
] ;
|
|
|
|
|
2010-02-25 17:54:50 +03:00
|
|
|
HAIKU_OPENSSL_LIBS = [ ExtractArchive $(HAIKU_OPENSSL_DIR)
|
2009-04-08 14:07:17 +04:00
|
|
|
:
|
|
|
|
common/lib/libcrypto.so
|
|
|
|
common/lib/libssl.so
|
|
|
|
: $(zipFile)
|
2011-07-10 19:18:52 +04:00
|
|
|
: extracted-openssl
|
2009-04-08 14:07:17 +04:00
|
|
|
] ;
|
|
|
|
|
|
|
|
HAIKU_OPENSSL_ENABLED = 1 ;
|
|
|
|
HAIKU_OPENSSL_HEADERS
|
|
|
|
= [ FDirName $(HAIKU_OPENSSL_DIR) common include ] ;
|
|
|
|
}
|
|
|
|
}
|
2010-07-13 23:04:40 +04:00
|
|
|
|
|
|
|
|
|
|
|
# ICU
|
|
|
|
|
|
|
|
# Note ICU isn't actually optional, but is still an external package
|
2011-11-03 00:38:31 +04:00
|
|
|
HAIKU_ICU_GCC_2_PACKAGE = icu-4.8.1-x86-gcc2-2011-11-02a.zip ;
|
2011-11-02 16:20:52 +04:00
|
|
|
HAIKU_ICU_GCC_4_PACKAGE = icu-4.8.1-x86-gcc4-2011-11-02.zip ;
|
2011-08-20 17:56:43 +04:00
|
|
|
HAIKU_ICU_PPC_PACKAGE = icu-4.8.1-ppc-2011-08-20.zip ;
|
2011-08-19 02:13:06 +04:00
|
|
|
|
2011-08-23 01:15:34 +04:00
|
|
|
if $(TARGET_ARCH) = ppc || $(TARGET_ARCH) = x86 {
|
2010-07-15 06:24:17 +04:00
|
|
|
local icu_package ;
|
2011-08-23 01:15:34 +04:00
|
|
|
if $(TARGET_ARCH) = ppc {
|
|
|
|
icu_package = $(HAIKU_ICU_PPC_PACKAGE) ;
|
2011-12-19 14:46:15 +04:00
|
|
|
HAIKU_ICU_DEVEL_PACKAGE = icu-devel-4.8.1-ppc-2011-12-19.zip ;
|
2011-08-23 01:15:34 +04:00
|
|
|
} else if $(HAIKU_GCC_VERSION[1]) = 2 {
|
2010-07-15 06:24:17 +04:00
|
|
|
icu_package = $(HAIKU_ICU_GCC_2_PACKAGE) ;
|
2011-12-20 03:27:16 +04:00
|
|
|
HAIKU_ICU_DEVEL_PACKAGE = icu-devel-4.8.1.1-x86-gcc2-2011-12-20.zip ;
|
2010-07-15 06:24:17 +04:00
|
|
|
} else {
|
|
|
|
icu_package = $(HAIKU_ICU_GCC_4_PACKAGE) ;
|
2011-12-20 03:27:16 +04:00
|
|
|
HAIKU_ICU_DEVEL_PACKAGE = icu-devel-4.8.1.1-x86-gcc4-2011-12-20.zip ;
|
2010-07-15 06:24:17 +04:00
|
|
|
}
|
|
|
|
local zipFile = [ DownloadFile $(icu_package)
|
|
|
|
: $(baseURL)/$(icu_package) ] ;
|
2010-07-13 23:04:40 +04:00
|
|
|
|
|
|
|
# zip file and output directory
|
|
|
|
HAIKU_ICU_ZIP_FILE = $(zipFile) ;
|
|
|
|
HAIKU_ICU_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
2010-07-15 06:24:17 +04:00
|
|
|
$(icu_package:B) ] ;
|
2010-07-13 23:04:40 +04:00
|
|
|
|
2010-07-16 01:23:45 +04:00
|
|
|
# extract libraries
|
2011-11-02 20:29:05 +04:00
|
|
|
if $(TARGET_ARCH) = ppc {
|
|
|
|
HAIKU_ICU_LIBS = [ ExtractArchive $(HAIKU_ICU_DIR)
|
|
|
|
:
|
|
|
|
libicudata.so.48.1
|
|
|
|
libicui18n.so.48.1
|
|
|
|
libicuio.so.48.1
|
|
|
|
libicule.so.48.1
|
|
|
|
libiculx.so.48.1
|
|
|
|
libicutu.so.48.1
|
|
|
|
libicuuc.so.48.1
|
|
|
|
: $(zipFile)
|
|
|
|
: extracted-icu
|
|
|
|
] ;
|
|
|
|
} else {
|
|
|
|
HAIKU_ICU_LIBS = [ ExtractArchive $(HAIKU_ICU_DIR)
|
|
|
|
:
|
|
|
|
libicudata.so.48.1.1
|
|
|
|
libicui18n.so.48.1.1
|
|
|
|
libicuio.so.48.1.1
|
|
|
|
libicule.so.48.1.1
|
|
|
|
libiculx.so.48.1.1
|
|
|
|
libicutu.so.48.1.1
|
|
|
|
libicuuc.so.48.1.1
|
|
|
|
: $(zipFile)
|
|
|
|
: extracted-icu
|
|
|
|
] ;
|
|
|
|
}
|
2012-01-05 06:26:59 +04:00
|
|
|
|
|
|
|
# zip file and output directory
|
|
|
|
HAIKU_ICU_DEVEL_ZIP_FILE = [ DownloadFile $(HAIKU_ICU_DEVEL_PACKAGE)
|
|
|
|
: $(baseURL)/$(HAIKU_ICU_DEVEL_PACKAGE) ] ;
|
|
|
|
HAIKU_ICU_DEVEL_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_ICU_DEVEL_PACKAGE:B) ] ;
|
|
|
|
|
|
|
|
# extract headers
|
|
|
|
HAIKU_ICU_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_ICU_DEVEL_DIR)
|
|
|
|
: develop/headers/3rdparty : $(HAIKU_ICU_DEVEL_ZIP_FILE)
|
|
|
|
: extracted-icu-devel ] ;
|
|
|
|
|
|
|
|
HAIKU_ICU_HEADERS
|
|
|
|
= [ FDirName $(HAIKU_ICU_DEVEL_DIR) develop headers 3rdparty ] ;
|
2011-08-23 01:15:34 +04:00
|
|
|
} else {
|
|
|
|
Echo "ICU not available for $(TARGET_ARCH)" ;
|
2010-07-13 23:04:40 +04:00
|
|
|
}
|
2010-07-16 01:23:45 +04:00
|
|
|
|
2010-10-20 11:44:30 +04:00
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
# CLucene
|
2010-10-20 11:44:30 +04:00
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
# Automatically install the CLucene feature, when the optional CLucene optional
|
|
|
|
# package is enabled.
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded CLucene ] {
|
|
|
|
HAIKU_BUILD_FEATURE_CLUCENE = 1 ;
|
2010-10-20 11:44:30 +04:00
|
|
|
}
|
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
2010-10-29 01:24:50 +04:00
|
|
|
HAIKU_CLUCENE_PACKAGE = clucene-0.9.21-x86-gcc4-haiku-2009-08-11.zip ;
|
2010-10-29 00:57:11 +04:00
|
|
|
HAIKU_CLUCENE_URL = $(baseURL)/$(HAIKU_CLUCENE_PACKAGE) ;
|
2010-10-20 11:44:30 +04:00
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
if $(HAIKU_BUILD_FEATURE_CLUCENE) {
|
|
|
|
if $(TARGET_ARCH) != x86 {
|
|
|
|
Echo "CLucene build feature not available for $(TARGET_ARCH)" ;
|
|
|
|
} else {
|
|
|
|
# Download the zip archive.
|
|
|
|
local zipFile = [ DownloadFile $(HAIKU_CLUCENE_PACKAGE)
|
|
|
|
: $(HAIKU_CLUCENE_URL) ] ;
|
2010-07-16 01:23:45 +04:00
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
# zip file and output directory
|
|
|
|
HAIKU_CLUCENE_ZIP_FILE = $(zipFile) ;
|
|
|
|
HAIKU_CLUCENE_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_CLUCENE_PACKAGE:B) ] ;
|
2010-07-16 01:23:45 +04:00
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
# extract headers and libraries
|
|
|
|
HAIKU_CLUCENE_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_CLUCENE_DIR)
|
2011-07-10 19:18:52 +04:00
|
|
|
: common/include/ : $(zipFile) : extracted-clucene
|
2010-10-29 00:57:11 +04:00
|
|
|
] ;
|
|
|
|
|
|
|
|
HAIKU_CLUCENE_LIBS = [ ExtractArchive $(HAIKU_CLUCENE_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libclucene.a
|
|
|
|
: $(zipFile)
|
2011-07-10 19:18:52 +04:00
|
|
|
: extracted-clucene
|
2010-10-29 00:57:11 +04:00
|
|
|
] ;
|
|
|
|
|
|
|
|
HAIKU_CLUCENE_HEADERS
|
|
|
|
= [ FDirName $(HAIKU_CLUCENE_DIR) common include ] ;
|
|
|
|
}
|
|
|
|
}
|
2010-10-29 17:00:19 +04:00
|
|
|
|
|
|
|
|
2012-01-08 10:22:07 +04:00
|
|
|
# Mesa
|
2012-01-17 18:57:49 +04:00
|
|
|
local mesaBaseURL = http://haiku-files.org/files/optional-packages ;
|
2012-01-08 10:22:07 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
2012-01-17 18:57:49 +04:00
|
|
|
local glslObject ;
|
|
|
|
local galliumObjects ;
|
2012-01-08 10:22:07 +04:00
|
|
|
local zipFile ;
|
|
|
|
if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
2012-02-20 22:47:53 +04:00
|
|
|
HAIKU_MESA_FILE = mesa-8.0devel-x86-gcc4-2012-02-20.zip ;
|
|
|
|
#HAIKU_MESA_FILE = mesa-8.0develdbg-x86-gcc4-2012-02-20.zip ;
|
2012-01-17 18:57:49 +04:00
|
|
|
glslObject = lib.haiku/libglsl.a ;
|
|
|
|
galliumObjects = lib.haiku/libgallium.a ;
|
2012-01-08 10:22:07 +04:00
|
|
|
} else {
|
2012-01-17 18:57:49 +04:00
|
|
|
HAIKU_MESA_FILE = mesa-7.8.2-x86-gcc2-2012-01-17.zip ;
|
2012-01-08 10:22:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
zipFile = [ DownloadFile $(HAIKU_MESA_FILE)
|
|
|
|
: $(mesaBaseURL)/$(HAIKU_MESA_FILE) ] ;
|
|
|
|
|
|
|
|
HAIKU_MESA_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_MESA_FILE:B) ] ;
|
|
|
|
|
|
|
|
HAIKU_MESA_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_MESA_DIR)
|
|
|
|
: include/ : $(zipFile) : extracted-mesa ] ;
|
|
|
|
|
2012-01-17 18:57:49 +04:00
|
|
|
HAIKU_MESA_LIBS = [ ExtractArchive $(HAIKU_MESA_DIR)
|
2012-01-08 10:22:07 +04:00
|
|
|
:
|
2012-01-17 18:57:49 +04:00
|
|
|
lib.haiku/libglu.a
|
|
|
|
$(galliumObjects)
|
|
|
|
lib.haiku/libglapi.a
|
|
|
|
$(glslObject)
|
|
|
|
lib.haiku/libmesa.a
|
2012-01-08 10:22:07 +04:00
|
|
|
: $(zipFile)
|
|
|
|
: extracted-mesa ] ;
|
|
|
|
|
|
|
|
HAIKU_MESA_HEADERS = [ FDirName $(HAIKU_MESA_DIR) include ] ;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
Echo "Mesa 3D rendering support not available on $(TARGET_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-07 04:41:23 +04:00
|
|
|
# FFmpeg
|
2012-03-13 00:22:54 +04:00
|
|
|
local ffmpegBaseURL = http://haiku-files.org/files/optional-packages/lib ;
|
2012-03-07 04:41:23 +04:00
|
|
|
if $(TARGET_ARCH) = x86 {
|
|
|
|
if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
2012-03-19 04:13:41 +04:00
|
|
|
HAIKU_FFMPEG_FILE = ffmpeg-0.10-x86-gcc4-2012-03-19.zip ;
|
2012-03-13 00:22:54 +04:00
|
|
|
HAIKU_SPEEX_FILE = speex-1.2rc1-x86-gcc4-2012-03-12.zip ;
|
|
|
|
HAIKU_LIBTHEORA_FILE = libtheora-1.1.1-x86-gcc4-2012-03-12.zip ;
|
|
|
|
HAIKU_LIBVORBIS_FILE = libvorbis-1.3.2-x86-gcc4-2012-03-12.zip ;
|
|
|
|
HAIKU_LIBOGG_FILE = libogg-1.3.0-x86-gcc4-2012-03-12.zip ;
|
2012-03-14 04:56:15 +04:00
|
|
|
HAIKU_LIBVPX_FILE = libvpx-1.0.0-x86-gcc4-2012-03-14.zip ;
|
2012-03-07 04:41:23 +04:00
|
|
|
} else {
|
2012-03-22 04:20:06 +04:00
|
|
|
HAIKU_FFMPEG_FILE = ffmpeg-0.10-x86-gcc2-2012-03-22.zip ;
|
2012-03-13 00:22:54 +04:00
|
|
|
HAIKU_SPEEX_FILE = speex-1.2rc1-x86-gcc2-2012-03-11.zip ;
|
|
|
|
HAIKU_LIBTHEORA_FILE = libtheora-1.1.1-x86-gcc2-2012-03-11.zip ;
|
|
|
|
HAIKU_LIBVORBIS_FILE = libvorbis-1.3.2-x86-gcc2-2012-03-11.zip ;
|
|
|
|
HAIKU_LIBOGG_FILE = libogg-1.3.0-x86-gcc2-2012-03-11.zip ;
|
2012-03-14 04:56:15 +04:00
|
|
|
HAIKU_LIBVPX_FILE = libvpx-1.0.0-x86-gcc2-2012-03-14.zip ;
|
2012-03-07 04:41:23 +04:00
|
|
|
}
|
|
|
|
|
2012-03-13 00:22:54 +04:00
|
|
|
local ffmpegZipFile = [ DownloadFile $(HAIKU_FFMPEG_FILE)
|
2012-03-07 04:41:23 +04:00
|
|
|
: $(ffmpegBaseURL)/$(HAIKU_FFMPEG_FILE) ] ;
|
2012-03-13 00:22:54 +04:00
|
|
|
local speexZipFile = [ DownloadFile $(HAIKU_SPEEX_FILE)
|
|
|
|
: $(ffmpegBaseURL)/$(HAIKU_SPEEX_FILE) ] ;
|
|
|
|
local libtheoraZipFile = [ DownloadFile $(HAIKU_LIBTHEORA_FILE)
|
|
|
|
: $(ffmpegBaseURL)/$(HAIKU_LIBTHEORA_FILE) ] ;
|
|
|
|
local libvorbisZipFile = [ DownloadFile $(HAIKU_LIBVORBIS_FILE)
|
|
|
|
: $(ffmpegBaseURL)/$(HAIKU_LIBVORBIS_FILE) ] ;
|
|
|
|
local liboggZipFile = [ DownloadFile $(HAIKU_LIBOGG_FILE)
|
|
|
|
: $(ffmpegBaseURL)/$(HAIKU_LIBOGG_FILE) ] ;
|
2012-03-14 04:56:15 +04:00
|
|
|
local libvpxZipFile = [ DownloadFile $(HAIKU_LIBVPX_FILE)
|
|
|
|
: $(ffmpegBaseURL)/$(HAIKU_LIBVPX_FILE) ] ;
|
2012-03-07 04:41:23 +04:00
|
|
|
|
|
|
|
HAIKU_FFMPEG_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_FFMPEG_FILE:B) ] ;
|
2012-03-13 00:22:54 +04:00
|
|
|
HAIKU_SPEEX_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_SPEEX_FILE:B) ] ;
|
|
|
|
HAIKU_LIBTHEORA_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_LIBTHEORA_FILE:B) ] ;
|
|
|
|
HAIKU_LIBVORBIS_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_LIBVORBIS_FILE:B) ] ;
|
|
|
|
HAIKU_LIBOGG_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_LIBOGG_FILE:B) ] ;
|
2012-03-14 04:56:15 +04:00
|
|
|
HAIKU_LIBVPX_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_LIBVPX_FILE:B) ] ;
|
2012-03-07 04:41:23 +04:00
|
|
|
|
|
|
|
HAIKU_FFMPEG_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_FFMPEG_DIR)
|
2012-03-13 00:22:54 +04:00
|
|
|
: common/include/ : $(ffmpegZipFile) : extracted-ffmpeg ] ;
|
|
|
|
HAIKU_SPEEX_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_SPEEX_DIR)
|
|
|
|
: common/include/ : $(speexZipFile) : extracted-speex ] ;
|
|
|
|
HAIKU_LIBTHEORA_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_LIBTHEORA_DIR)
|
|
|
|
: common/include/ : $(libtheoraZipFile) : extracted-libtheora ] ;
|
|
|
|
HAIKU_LIBVORBIS_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_LIBVORBIS_DIR)
|
|
|
|
: common/include/ : $(libvorbisZipFile) : extracted-libvorbis ] ;
|
|
|
|
HAIKU_LIBOGG_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_LIBOGG_DIR)
|
|
|
|
: common/include/ : $(liboggZipFile) : extracted-libogg ] ;
|
2012-03-14 04:56:15 +04:00
|
|
|
HAIKU_LIBVPX_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_LIBVPX_DIR)
|
|
|
|
: common/include/ : $(libvpxZipFile) : extracted-libvpx ] ;
|
2012-03-07 04:41:23 +04:00
|
|
|
|
|
|
|
HAIKU_FFMPEG_LIBS = [ ExtractArchive $(HAIKU_FFMPEG_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libavformat.a
|
|
|
|
common/lib/libavcodec.a
|
|
|
|
common/lib/libavdevice.a
|
|
|
|
common/lib/libavfilter.a
|
|
|
|
common/lib/libswscale.a
|
|
|
|
common/lib/libavutil.a
|
2012-03-13 00:22:54 +04:00
|
|
|
: $(ffmpegZipFile)
|
2012-03-07 04:41:23 +04:00
|
|
|
: extracted-ffmpeg ] ;
|
2012-03-13 00:22:54 +04:00
|
|
|
Depends $(HAIKU_FFMPEG_LIBS) : $(HAIKU_FFMPEG_HEADERS_DEPENDENCY) ;
|
|
|
|
|
|
|
|
HAIKU_SPEEX_LIBS = [ ExtractArchive $(HAIKU_SPEEX_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libspeex.a
|
|
|
|
: $(speexZipFile)
|
|
|
|
: extracted-speex ] ;
|
|
|
|
Depends $(HAIKU_SPEEX_LIBS) : $(HAIKU_SPEEX_HEADERS_DEPENDENCY) ;
|
|
|
|
|
|
|
|
HAIKU_LIBTHEORA_LIBS = [ ExtractArchive $(HAIKU_LIBTHEORA_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libtheora.a
|
|
|
|
common/lib/libtheoradec.a
|
|
|
|
common/lib/libtheoraenc.a
|
|
|
|
: $(libtheoraZipFile)
|
|
|
|
: extracted-libtheora ] ;
|
|
|
|
Depends $(HAIKU_LIBTHEORA_LIBS) : $(HAIKU_LIBTHEORA_HEADERS_DEPENDENCY) ;
|
|
|
|
|
|
|
|
|
|
|
|
HAIKU_LIBVORBIS_LIBS = [ ExtractArchive $(HAIKU_LIBVORBIS_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libvorbis.a
|
|
|
|
common/lib/libvorbisenc.a
|
|
|
|
: $(libvorbisZipFile)
|
|
|
|
: extracted-libvorbis ] ;
|
|
|
|
Depends $(HAIKU_LIBVORBIS_LIBS) : $(HAIKU_LIBVORBIS_HEADERS_DEPENDENCY) ;
|
|
|
|
|
|
|
|
|
|
|
|
HAIKU_LIBOGG_LIBS = [ ExtractArchive $(HAIKU_LIBOGG_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libogg.a
|
|
|
|
: $(liboggZipFile)
|
|
|
|
: extracted-libogg ] ;
|
|
|
|
Depends $(HAIKU_LIBOGG_LIBS) : $(HAIKU_LIBOGG_HEADERS_DEPENDENCY) ;
|
|
|
|
|
2012-03-14 04:56:15 +04:00
|
|
|
HAIKU_LIBVPX_LIBS = [ ExtractArchive $(HAIKU_LIBVPX_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libvpx.a
|
|
|
|
: $(libvpxZipFile)
|
|
|
|
: extracted-libvpx ] ;
|
|
|
|
Depends $(HAIKU_LIBVPX_LIBS) : $(HAIKU_LIBVPX_HEADERS_DEPENDENCY) ;
|
2012-03-07 04:41:23 +04:00
|
|
|
|
|
|
|
HAIKU_FFMPEG_HEADERS = [ FDirName $(HAIKU_FFMPEG_DIR) common include ] ;
|
2012-03-13 00:22:54 +04:00
|
|
|
HAIKU_SPEEX_HEADERS = [ FDirName $(HAIKU_SPEEX_DIR) common include ] ;
|
|
|
|
HAIKU_LIBTHEORA_HEADERS = [ FDirName $(HAIKU_LIBTHEORA_DIR) common include ] ;
|
|
|
|
HAIKU_LIBVORBIS_HEADERS = [ FDirName $(HAIKU_LIBVORBIS_DIR) common include ] ;
|
|
|
|
HAIKU_LIBOGG_HEADERS = [ FDirName $(HAIKU_LIBOGG_DIR) common include ] ;
|
2012-03-14 04:56:15 +04:00
|
|
|
HAIKU_LIBVPX_HEADERS = [ FDirName $(HAIKU_LIBVPX_DIR) common include ] ;
|
2012-03-07 04:41:23 +04:00
|
|
|
|
|
|
|
} else {
|
|
|
|
Echo "FFMpeg support not available on $(TARGET_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-17 23:09:32 +04:00
|
|
|
# Freetype
|
|
|
|
local freetypeBaseURL = http://haiku-files.org/files/optional-packages/lib ;
|
|
|
|
if $(TARGET_ARCH) = ppc || $(TARGET_ARCH) = x86 {
|
|
|
|
if $(TARGET_ARCH) = ppc {
|
|
|
|
HAIKU_FREETYPE_FILE = freetype-2.4.6-ppc-gcc4-2012-03-17.zip ;
|
|
|
|
} else if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
|
|
|
HAIKU_FREETYPE_FILE = freetype-2.4.6-x86-gcc4-2012-03-15.zip ;
|
|
|
|
} else {
|
|
|
|
HAIKU_FREETYPE_FILE = freetype-2.4.6-x86-gcc2-2012-03-15.zip ;
|
|
|
|
}
|
|
|
|
|
|
|
|
local freetypeZipFile = [ DownloadFile $(HAIKU_FREETYPE_FILE)
|
|
|
|
: $(freetypeBaseURL)/$(HAIKU_FREETYPE_FILE) ] ;
|
|
|
|
|
|
|
|
HAIKU_FREETYPE_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_FREETYPE_FILE:B) ] ;
|
|
|
|
|
|
|
|
HAIKU_FREETYPE_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_FREETYPE_DIR)
|
|
|
|
: develop/headers/3rdparty/freetype2 : $(freetypeZipFile)
|
|
|
|
: extracted-freetype ] ;
|
|
|
|
|
|
|
|
HAIKU_FREETYPE_LIB = [ ExtractArchive $(HAIKU_FREETYPE_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libfreetype.so
|
|
|
|
: $(freetypeZipFile)
|
|
|
|
: extracted-freetype ] ;
|
|
|
|
HAIKU_FREETYPE_CURRENT_LIB = [ ExtractArchive $(HAIKU_FREETYPE_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libfreetype.so.6.7.1
|
|
|
|
: $(freetypeZipFile)
|
|
|
|
: extracted-freetype ] ;
|
|
|
|
Depends $(HAIKU_FREETYPE_LIBS) : $(HAIKU_FREETYPE_HEADERS_DEPENDENCY) ;
|
|
|
|
|
|
|
|
HAIKU_FREETYPE_CURRENT_LINK = libfreetype.so.6 ;
|
|
|
|
|
|
|
|
HAIKU_FREETYPE_HEADERS = [ FDirName $(HAIKU_FREETYPE_DIR) develop
|
|
|
|
headers 3rdparty ] [ FDirName $(HAIKU_FREETYPE_DIR) develop
|
|
|
|
headers 3rdparty freetype2 ] ;
|
|
|
|
} else {
|
|
|
|
Echo "Freetype support not available on $(TARGET_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-29 17:00:19 +04:00
|
|
|
# TagLib
|
|
|
|
|
|
|
|
# Automatically install the TagLib feature, when the optional TagLib optional
|
|
|
|
# package is enabled.
|
|
|
|
if [ IsOptionalHaikuImagePackageAdded TagLib ] {
|
|
|
|
HAIKU_BUILD_FEATURE_TAGLIB = 1 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
local baseURL = http://haiku-files.org/files/optional-packages ;
|
|
|
|
HAIKU_TAGLIB_PACKAGE = taglib-1.6.3-r1a2-x86-gcc2-2010-04-25.zip ;
|
|
|
|
HAIKU_TAGLIB_URL = $(baseURL)/$(HAIKU_TAGLIB_PACKAGE) ;
|
|
|
|
|
|
|
|
if $(HAIKU_BUILD_FEATURE_TAGLIB) {
|
|
|
|
if $(TARGET_ARCH) != x86 {
|
|
|
|
Echo "TagLib build feature not available for $(TARGET_ARCH)" ;
|
|
|
|
} else {
|
|
|
|
# Download the zip archive.
|
|
|
|
local zipFile = [ DownloadFile $(HAIKU_TAGLIB_PACKAGE)
|
|
|
|
: $(HAIKU_TAGLIB_URL) ] ;
|
|
|
|
|
|
|
|
# zip file and output directory
|
|
|
|
HAIKU_TAGLIB_ZIP_FILE = $(zipFile) ;
|
|
|
|
HAIKU_TAGLIB_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_TAGLIB_PACKAGE:B) ] ;
|
|
|
|
|
|
|
|
# extract headers and libraries
|
|
|
|
HAIKU_TAGLIB_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_TAGLIB_DIR)
|
2011-07-10 19:18:52 +04:00
|
|
|
: common/include/ : $(zipFile) : extracted-taglib
|
2010-10-29 17:00:19 +04:00
|
|
|
] ;
|
|
|
|
|
|
|
|
HAIKU_TAGLIB_LIBS = [ ExtractArchive $(HAIKU_TAGLIB_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libtag.so
|
|
|
|
common/lib/libtag_c.so
|
|
|
|
: $(zipFile)
|
2011-07-10 19:18:52 +04:00
|
|
|
: extracted-taglib
|
2010-10-29 17:00:19 +04:00
|
|
|
] ;
|
|
|
|
|
|
|
|
HAIKU_TAGLIB_HEADERS
|
|
|
|
= [ FDirName $(HAIKU_TAGLIB_DIR) common include taglib ] ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|