2013-08-05 09:09:45 +04:00
|
|
|
# This file contains setup for build features that require external packages. It
|
|
|
|
# is included once for each configured packaging architecture (with
|
|
|
|
# TARGET_PACKAGING_ARCH set accordingly).
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
|
2013-08-01 10:51:16 +04:00
|
|
|
local architecture = $(TARGET_PACKAGING_ARCH) ;
|
2013-08-05 09:09:45 +04:00
|
|
|
local secondaryArchSubDir = [ MultiArchIfPrimary "" : /$(architecture) ] ;
|
|
|
|
local developLibDir = develop/lib$(secondaryArchSubDir) ;
|
|
|
|
local developHeadersDir = develop/headers$(secondaryArchSubDir) ;
|
2012-07-09 00:04:18 +04:00
|
|
|
|
2009-04-08 14:07:17 +04:00
|
|
|
|
|
|
|
# SSL
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# Automatically enable the SSL feature, when the OpenSSL package is enabled.
|
|
|
|
if [ IsHaikuImagePackageAdded openssl ] {
|
2009-04-08 14:07:17 +04:00
|
|
|
HAIKU_BUILD_FEATURE_SSL = 1 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
if $(HAIKU_BUILD_FEATURE_SSL) {
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable openssl_devel ] {
|
2013-06-13 18:43:40 +04:00
|
|
|
ExtractBuildFeatureArchives openssl :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base openssl
|
2013-06-13 18:43:40 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel openssl_devel
|
2013-06-13 18:43:40 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libcrypto.so
|
|
|
|
$(developLibDir)/libssl.so
|
|
|
|
headers: $(developHeadersDir)
|
2013-06-13 18:43:40 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures openssl ;
|
2012-12-18 18:47:02 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "SSL build feature not available for $(TARGET_PACKAGING_ARCH)" ;
|
2009-04-08 14:07:17 +04:00
|
|
|
}
|
|
|
|
}
|
2010-07-13 23:04:40 +04:00
|
|
|
|
|
|
|
|
|
|
|
# ICU
|
|
|
|
|
|
|
|
# Note ICU isn't actually optional, but is still an external package
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable icu_devel ] {
|
2013-06-13 19:07:19 +04:00
|
|
|
ExtractBuildFeatureArchives icu :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base icu
|
2013-06-13 19:07:19 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel icu_devel
|
2013-06-13 19:07:19 +04:00
|
|
|
depends: base
|
|
|
|
libraries:
|
2013-08-05 09:09:45 +04:00
|
|
|
$(developLibDir)/libicudata.so
|
|
|
|
$(developLibDir)/libicui18n.so
|
|
|
|
$(developLibDir)/libicuio.so
|
|
|
|
$(developLibDir)/libicule.so
|
|
|
|
$(developLibDir)/libiculx.so
|
|
|
|
$(developLibDir)/libicutu.so
|
|
|
|
$(developLibDir)/libicuuc.so
|
|
|
|
headers: $(developHeadersDir)
|
2013-06-13 19:07:19 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures icu ;
|
2011-08-23 01:15:34 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "ICU not available for $(TARGET_PACKAGING_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
|
|
|
|
2013-09-25 07:30:54 +04:00
|
|
|
# curl
|
|
|
|
if [ IsPackageAvailable curl_devel ] {
|
|
|
|
ExtractBuildFeatureArchives curl :
|
|
|
|
file: base curl
|
|
|
|
runtime: lib
|
|
|
|
file: devel curl_devel
|
|
|
|
depends: base
|
|
|
|
library:
|
|
|
|
$(developLibDir)/libcurl.so
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/curl
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures curl ;
|
|
|
|
} else {
|
|
|
|
Echo "Curl not available for $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-29 00:57:11 +04:00
|
|
|
# CLucene
|
2010-10-20 11:44:30 +04:00
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# TODO: Update to packages!
|
|
|
|
if ! 1 {
|
|
|
|
|
|
|
|
# Automatically install the CLucene feature, when the CLucene package is
|
|
|
|
# enabled.
|
|
|
|
if [ IsHaikuImagePackageAdded clucene ] {
|
2010-10-29 00:57:11 +04:00
|
|
|
HAIKU_BUILD_FEATURE_CLUCENE = 1 ;
|
2010-10-20 11:44:30 +04:00
|
|
|
}
|
|
|
|
|
2012-07-09 00:04:18 +04:00
|
|
|
|
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 {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "CLucene build feature not available for"
|
|
|
|
"$(TARGET_PACKAGING_ARCH)" ;
|
2010-10-29 00:57:11 +04:00
|
|
|
} 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 ] ;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures clucene ;
|
2010-10-29 00:57:11 +04:00
|
|
|
}
|
|
|
|
}
|
2010-10-29 17:00:19 +04:00
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
} # ! 1
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: Update to packages!
|
|
|
|
if ! 1 {
|
2010-10-29 17:00:19 +04:00
|
|
|
|
2013-01-11 10:44:01 +04:00
|
|
|
# LLVM
|
|
|
|
if $(TARGET_ARCH) = x86 {
|
2013-08-01 10:51:16 +04:00
|
|
|
if $(TARGET_GCC_VERSION_$(architecture)[1]) >= 4 {
|
2013-01-11 10:44:01 +04:00
|
|
|
HAIKU_LLVM_FILE = llvm-3.2-x86-gcc4-2012-12-21.zip ;
|
|
|
|
local zipFile = [ DownloadFile $(HAIKU_LLVM_FILE)
|
|
|
|
: $(baseURL)/$(HAIKU_LLVM_FILE) ] ;
|
|
|
|
|
|
|
|
HAIKU_LLVM_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
|
|
|
$(HAIKU_LLVM_FILE:B) ] ;
|
|
|
|
|
|
|
|
HAIKU_LLVM_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_LLVM_DIR)
|
|
|
|
: common/include/ : $(zipFile) : extracted-llvm ] ;
|
|
|
|
HAIKU_LLVM_HEADERS = [ FDirName $(HAIKU_LLVM_DIR) common include ] ;
|
|
|
|
|
|
|
|
# We can't Glob these because they aren't extracted yet.
|
|
|
|
HAIKU_LLVM_LIBS = [ ExtractArchive $(HAIKU_LLVM_DIR)
|
|
|
|
:
|
|
|
|
common/lib/libLLVMAsmParser.a
|
|
|
|
common/lib/libLLVMInstrumentation.a
|
|
|
|
common/lib/libLLVMLinker.a
|
|
|
|
common/lib/libLLVMArchive.a
|
|
|
|
common/lib/libLLVMBitReader.a
|
|
|
|
common/lib/libLLVMDebugInfo.a
|
|
|
|
common/lib/libLLVMJIT.a
|
|
|
|
common/lib/libLLVMipo.a
|
|
|
|
common/lib/libLLVMVectorize.a
|
|
|
|
common/lib/libLLVMBitWriter.a
|
|
|
|
common/lib/libLLVMTableGen.a
|
|
|
|
#common/lib/libLLVMHexagonCodeGen.a
|
|
|
|
#common/lib/libLLVMHexagonAsmPrinter.a
|
|
|
|
#common/lib/libLLVMHexagonDesc.a
|
|
|
|
#common/lib/libLLVMHexagonInfo.a
|
|
|
|
#common/lib/libLLVMNVPTXCodeGen.a
|
|
|
|
#common/lib/libLLVMNVPTXDesc.a
|
|
|
|
#common/lib/libLLVMNVPTXInfo.a
|
|
|
|
#common/lib/libLLVMNVPTXAsmPrinter.a
|
|
|
|
#common/lib/libLLVMMBlazeCodeGen.a
|
|
|
|
#common/lib/libLLVMMBlazeAsmParser.a
|
|
|
|
#common/lib/libLLVMMBlazeDisassembler.a
|
|
|
|
#common/lib/libLLVMMBlazeDesc.a
|
|
|
|
#common/lib/libLLVMMBlazeInfo.a
|
|
|
|
#common/lib/libLLVMMBlazeAsmPrinter.a
|
|
|
|
common/lib/libLLVMCppBackendCodeGen.a
|
|
|
|
common/lib/libLLVMCppBackendInfo.a
|
|
|
|
#common/lib/libLLVMMSP430CodeGen.a
|
|
|
|
#common/lib/libLLVMMSP430Desc.a
|
|
|
|
#common/lib/libLLVMMSP430AsmPrinter.a
|
|
|
|
#common/lib/libLLVMMSP430Info.a
|
|
|
|
#common/lib/libLLVMXCoreCodeGen.a
|
|
|
|
#common/lib/libLLVMXCoreDesc.a
|
|
|
|
#common/lib/libLLVMXCoreInfo.a
|
|
|
|
#common/lib/libLLVMCellSPUCodeGen.a
|
|
|
|
#common/lib/libLLVMCellSPUDesc.a
|
|
|
|
#common/lib/libLLVMCellSPUInfo.a
|
|
|
|
#common/lib/libLLVMMipsAsmParser.a
|
|
|
|
#common/lib/libLLVMMipsCodeGen.a
|
|
|
|
#common/lib/libLLVMMipsDesc.a
|
|
|
|
#common/lib/libLLVMMipsAsmPrinter.a
|
|
|
|
#common/lib/libLLVMMipsDisassembler.a
|
|
|
|
#common/lib/libLLVMMipsInfo.a
|
|
|
|
#common/lib/libLLVMARMAsmParser.a
|
|
|
|
#common/lib/libLLVMARMCodeGen.a
|
|
|
|
#common/lib/libLLVMARMDisassembler.a
|
|
|
|
#common/lib/libLLVMARMDesc.a
|
|
|
|
#common/lib/libLLVMARMInfo.a
|
|
|
|
#common/lib/libLLVMARMAsmPrinter.a
|
|
|
|
#common/lib/libLLVMPowerPCCodeGen.a
|
|
|
|
#common/lib/libLLVMPowerPCDesc.a
|
|
|
|
#common/lib/libLLVMPowerPCInfo.a
|
|
|
|
#common/lib/libLLVMPowerPCAsmPrinter.a
|
|
|
|
#common/lib/libLLVMSparcCodeGen.a
|
|
|
|
#common/lib/libLLVMSparcDesc.a
|
|
|
|
#common/lib/libLLVMSparcInfo.a
|
|
|
|
common/lib/libLLVMX86AsmParser.a
|
|
|
|
common/lib/libLLVMX86CodeGen.a
|
|
|
|
common/lib/libLLVMSelectionDAG.a
|
|
|
|
common/lib/libLLVMAsmPrinter.a
|
|
|
|
common/lib/libLLVMX86Disassembler.a
|
|
|
|
common/lib/libLLVMX86Desc.a
|
|
|
|
common/lib/libLLVMX86Info.a
|
|
|
|
common/lib/libLLVMX86AsmPrinter.a
|
|
|
|
common/lib/libLLVMX86Utils.a
|
|
|
|
common/lib/libLLVMMCDisassembler.a
|
|
|
|
common/lib/libLLVMMCParser.a
|
|
|
|
common/lib/libLLVMInterpreter.a
|
|
|
|
common/lib/libLLVMCodeGen.a
|
|
|
|
common/lib/libLLVMScalarOpts.a
|
|
|
|
common/lib/libLLVMInstCombine.a
|
|
|
|
common/lib/libLLVMTransformUtils.a
|
|
|
|
common/lib/libLLVMipa.a
|
|
|
|
common/lib/libLLVMAnalysis.a
|
|
|
|
common/lib/libLLVMMCJIT.a
|
|
|
|
common/lib/libLLVMRuntimeDyld.a
|
|
|
|
common/lib/libLLVMExecutionEngine.a
|
|
|
|
common/lib/libLLVMTarget.a
|
|
|
|
common/lib/libLLVMMC.a
|
|
|
|
common/lib/libLLVMObject.a
|
|
|
|
common/lib/libLLVMCore.a
|
|
|
|
common/lib/libLLVMSupport.a
|
|
|
|
: $(zipFile) : extracted-llvm ]
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures llvm ;
|
|
|
|
} else {
|
|
|
|
# Nor will it ever be
|
|
|
|
Echo "LLVM not available on GCC2" ;
|
|
|
|
}
|
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "LLVM not yet available on $(TARGET_PACKAGING_ARCH)" ;
|
2013-01-11 10:44:01 +04:00
|
|
|
}
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
} # ! 1
|
2013-01-11 10:44:01 +04:00
|
|
|
|
2012-11-13 20:52:06 +04:00
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# GLU (GL Utilities)
|
|
|
|
if [ IsPackageAvailable glu_devel ] {
|
2013-06-13 20:46:34 +04:00
|
|
|
ExtractBuildFeatureArchives glu :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base glu
|
2013-06-13 20:46:34 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel glu_devel
|
2013-06-13 20:46:34 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
library: $(developLibDir)/libGLU.so
|
|
|
|
headers: $(developHeadersDir)
|
2013-06-13 20:46:34 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures glu ;
|
2012-11-13 20:52:06 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "GLU not yet available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-11-13 20:52:06 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-01-08 10:22:07 +04:00
|
|
|
# Mesa
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable mesa_devel ] {
|
2013-06-13 20:46:34 +04:00
|
|
|
ExtractBuildFeatureArchives mesa : [ FFilterByBuildFeatures
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel mesa_devel
|
2013-08-05 09:09:45 +04:00
|
|
|
mesaLibrary: $(developLibDir)/libmesa.a
|
|
|
|
glapiLibrary: $(developLibDir)/libglapi.a
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
privateHeaders: $(developHeadersDir)/mesa_private
|
2013-06-13 20:46:34 +04:00
|
|
|
|
|
|
|
!gcc2 @{
|
2013-08-05 09:09:45 +04:00
|
|
|
glslLibrary: $(developLibDir)/libglsl.a
|
|
|
|
galliumLibrary: $(developLibDir)/libgallium.a
|
2013-06-13 20:46:34 +04:00
|
|
|
llvm @{
|
2013-08-05 09:09:45 +04:00
|
|
|
galliumLlvmpipeLibrary: $(developLibDir)/libllvmpipe.a
|
2013-06-13 20:46:34 +04:00
|
|
|
}@
|
|
|
|
!llvm @{
|
2013-08-05 09:09:45 +04:00
|
|
|
galliumSoftpipeLibrary: $(developLibDir)/libsoftpipe.a
|
2013-06-13 20:46:34 +04:00
|
|
|
}@
|
|
|
|
}@ # !gcc2
|
|
|
|
] ;
|
2013-04-28 20:35:38 +04:00
|
|
|
|
2013-06-13 20:46:34 +04:00
|
|
|
Depends [ BuildFeatureAttribute mesa : galliumLlvmpipeLibrary ]
|
|
|
|
: $(HAIKU_LLVM_LIBS) ;
|
2012-11-13 20:52:06 +04:00
|
|
|
|
2012-12-09 07:07:29 +04:00
|
|
|
EnableBuildFeatures mesa ;
|
2012-01-08 10:22:07 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "Mesa 3D rendering support not available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-01-08 10:22:07 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-07 04:41:23 +04:00
|
|
|
# FFmpeg
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable ffmpeg_devel ] {
|
2013-06-13 23:31:44 +04:00
|
|
|
local ffmpegLibs = libavformat.so libavcodec.so libavdevice.so
|
|
|
|
libavfilter.so libswscale.so libavutil.so ;
|
|
|
|
local speexLibs = libspeex.so ;
|
|
|
|
local libtheoraLibs = libtheora.so libtheoradec.so libtheoraenc.so ;
|
|
|
|
local libvorbisLibs = libvorbis.so libvorbisenc.so ;
|
|
|
|
local liboggLibs = libogg.so ;
|
|
|
|
local libvpxLibs = libvpx.so ;
|
|
|
|
|
|
|
|
local feature ;
|
|
|
|
for feature in ffmpeg speex libtheora libvorbis libogg libvpx {
|
|
|
|
ExtractBuildFeatureArchives $(feature) :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base $(feature)
|
2013-06-13 23:31:44 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel $(feature)_devel
|
2013-06-13 23:31:44 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
libraries: $(developLibDir)/$($(feature)Libs)
|
|
|
|
headers: $(developHeadersDir)
|
2013-06-13 23:31:44 +04:00
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures $(feature) ;
|
|
|
|
}
|
2012-03-07 04:41:23 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "FFMpeg support not available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-03-07 04:41:23 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-03-17 23:09:32 +04:00
|
|
|
# Freetype
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable freetype_devel ] {
|
2013-06-14 00:06:29 +04:00
|
|
|
ExtractBuildFeatureArchives freetype :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base freetype
|
2013-06-14 00:06:29 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel freetype_devel
|
2013-06-14 00:06:29 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
library: $(developLibDir)/libfreetype.so
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/freetype2
|
2013-06-14 00:06:29 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures freetype ;
|
2012-03-17 23:09:32 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "Freetype support not available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-03-17 23:09:32 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-10-29 17:00:19 +04:00
|
|
|
# TagLib
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# TODO: Update to packages!
|
|
|
|
if ! 1 {
|
|
|
|
|
2010-10-29 17:00:19 +04:00
|
|
|
# Automatically install the TagLib feature, when the optional TagLib optional
|
|
|
|
# package is enabled.
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsHaikuImagePackageAdded taglib ] {
|
2010-10-29 17:00:19 +04:00
|
|
|
HAIKU_BUILD_FEATURE_TAGLIB = 1 ;
|
|
|
|
}
|
|
|
|
|
2012-09-05 08:19:22 +04:00
|
|
|
HAIKU_TAGLIB_PACKAGE = taglib-1.6.3-r1a4-x86-gcc2-2012-09-03.zip ;
|
2010-10-29 17:00:19 +04:00
|
|
|
HAIKU_TAGLIB_URL = $(baseURL)/$(HAIKU_TAGLIB_PACKAGE) ;
|
|
|
|
|
|
|
|
if $(HAIKU_BUILD_FEATURE_TAGLIB) {
|
|
|
|
if $(TARGET_ARCH) != x86 {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "TagLib build feature not available for $(TARGET_PACKAGING_ARCH)" ;
|
2010-10-29 17:00:19 +04:00
|
|
|
} 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 ] ;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures taglib ;
|
2010-10-29 17:00:19 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
} # ! 1
|
|
|
|
|
2012-07-04 02:58:25 +04:00
|
|
|
|
|
|
|
# WebKit
|
2013-08-10 17:05:51 +04:00
|
|
|
if [ IsPackageAvailable haikuwebkit_devel ] {
|
|
|
|
ExtractBuildFeatureArchives webkit :
|
|
|
|
file: base haikuwebkit
|
|
|
|
runtime: lib
|
|
|
|
file: devel haikuwebkit_devel
|
|
|
|
depends: base
|
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libwtf.so
|
|
|
|
$(developLibDir)/libjavascriptcore.so
|
|
|
|
$(developLibDir)/libwebcore.so
|
|
|
|
$(developLibDir)/libwebkit.so
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
2013-07-05 12:51:42 +04:00
|
|
|
|
2013-08-10 17:05:51 +04:00
|
|
|
EnableBuildFeatures webkit ;
|
|
|
|
} else {
|
|
|
|
Echo "WebKit build feature not available for $(TARGET_PACKAGING_ARCH)" ;
|
2012-07-04 02:58:25 +04:00
|
|
|
}
|
2012-08-24 01:52:11 +04:00
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# libpng
|
|
|
|
if [ IsPackageAvailable libpng_devel ] {
|
2013-06-14 00:48:00 +04:00
|
|
|
ExtractBuildFeatureArchives libpng :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base libpng
|
2013-06-14 00:48:00 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel libpng_devel
|
2013-06-14 00:48:00 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
library: $(developLibDir)/libpng.so
|
|
|
|
headers: $(developHeadersDir)
|
2013-06-14 00:48:00 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures libpng ;
|
2012-08-24 01:52:11 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "libpng support not available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-08-24 01:52:11 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# jpeg
|
|
|
|
if [ IsPackageAvailable jpeg_devel ] {
|
2013-06-14 02:10:37 +04:00
|
|
|
ExtractBuildFeatureArchives jpeg :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base jpeg
|
2013-06-14 02:10:37 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel jpeg_devel
|
2013-06-14 02:10:37 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
library: $(developLibDir)/libjpeg.so
|
|
|
|
headers: $(developHeadersDir)
|
2013-06-14 02:10:37 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
2013-06-14 02:10:37 +04:00
|
|
|
EnableBuildFeatures jpeg ;
|
2012-08-24 01:52:11 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "jpeg support not available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-08-24 01:52:11 +04:00
|
|
|
}
|
2012-10-31 00:18:36 +04:00
|
|
|
|
2013-05-06 06:37:18 +04:00
|
|
|
|
2012-10-31 00:18:36 +04:00
|
|
|
# zlib
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable zlib_devel ] {
|
2013-05-06 06:37:18 +04:00
|
|
|
ExtractBuildFeatureArchives zlib :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base zlib
|
2013-05-06 06:37:18 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel zlib_devel
|
2013-05-06 06:37:18 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
library: $(developLibDir)/libz.so
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
# sources are required for the primary architecture only
|
|
|
|
primary @{
|
|
|
|
file: source zlib_source
|
2013-10-01 02:57:10 +04:00
|
|
|
sources: develop/sources/%portRevisionedName%/sources
|
2013-08-05 09:09:45 +04:00
|
|
|
}@
|
2013-06-13 18:42:36 +04:00
|
|
|
;
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures zlib ;
|
2012-10-31 00:18:36 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "zlib support not available on $(TARGET_PACKAGING_ARCH)" ;
|
2012-10-31 00:18:36 +04:00
|
|
|
}
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
|
2013-07-05 12:51:42 +04:00
|
|
|
# libsolv
|
|
|
|
if [ IsPackageAvailable libsolv_devel ] {
|
2013-06-14 02:33:23 +04:00
|
|
|
ExtractBuildFeatureArchives libsolv :
|
2013-07-05 12:51:42 +04:00
|
|
|
file: base libsolv
|
2013-06-14 02:33:23 +04:00
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel libsolv_devel
|
2013-06-14 02:33:23 +04:00
|
|
|
depends: base
|
2013-08-05 09:09:45 +04:00
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libsolv.so
|
|
|
|
$(developLibDir)/libsolvext.so
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
# sources are required for the primary architecture only
|
|
|
|
primary @{
|
|
|
|
file: source libsolv_source
|
2013-10-01 02:57:10 +04:00
|
|
|
sources: develop/sources/%portRevisionedName%/sources
|
2013-08-05 09:09:45 +04:00
|
|
|
}@
|
2013-06-14 02:33:23 +04:00
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libsolv ;
|
2013-07-05 12:51:42 +04:00
|
|
|
} else {
|
2013-08-10 17:02:02 +04:00
|
|
|
Echo "libsolv package not available for $(TARGET_PACKAGING_ARCH)" ;
|
2013-05-05 17:02:57 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-12-09 07:07:29 +04:00
|
|
|
# GPL add-ons
|
|
|
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
|
|
|
EnableBuildFeatures gpl ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# ATA vs. IDE
|
|
|
|
#HACK: remove when old ide code is removed!
|
|
|
|
if $(HAIKU_ATA_STACK) = 1 {
|
|
|
|
EnableBuildFeatures ata ;
|
|
|
|
} else {
|
|
|
|
EnableBuildFeatures ide ;
|
|
|
|
}
|