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) ] ;
|
2014-07-25 20:37:14 +04:00
|
|
|
local libDir = lib$(secondaryArchSubDir) ;
|
2013-08-05 09:09:45 +04:00
|
|
|
local developLibDir = develop/lib$(secondaryArchSubDir) ;
|
|
|
|
local developHeadersDir = develop/headers$(secondaryArchSubDir) ;
|
2012-07-09 00:04:18 +04:00
|
|
|
|
2019-02-26 00:11:39 +03:00
|
|
|
local unavailableBuildFeatures ;
|
|
|
|
|
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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += openssl ;
|
2009-04-08 14:07:17 +04:00
|
|
|
}
|
|
|
|
}
|
2010-07-13 23:04:40 +04:00
|
|
|
|
|
|
|
|
2014-07-25 20:37:14 +04:00
|
|
|
# gcc_syslibs
|
|
|
|
|
|
|
|
if $(TARGET_PACKAGING_ARCH) != x86_gcc2 {
|
|
|
|
if [ IsPackageAvailable gcc_syslibs ] {
|
|
|
|
ExtractBuildFeatureArchives gcc_syslibs :
|
|
|
|
file: base gcc_syslibs
|
2018-08-26 20:35:40 +03:00
|
|
|
libgcc_s.so.1: $(libDir)/libgcc_s.so.1
|
2014-07-25 20:37:14 +04:00
|
|
|
libstdc++.so: $(libDir)/libstdc++.so
|
|
|
|
libsupc++.so: $(libDir)/libsupc++.so
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures gcc_syslibs ;
|
2018-05-07 03:54:32 +03:00
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += gcc_syslibs ;
|
2014-07-25 20:37:14 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# gcc_syslibs_devel
|
|
|
|
|
|
|
|
if [ IsPackageAvailable gcc_syslibs_devel ] {
|
|
|
|
if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
|
|
|
ExtractBuildFeatureArchives gcc_syslibs_devel :
|
|
|
|
file: base gcc_syslibs_devel
|
|
|
|
libgcc.a: $(developLibDir)/libgcc.a
|
|
|
|
libgcc_eh.a:
|
|
|
|
libgcc-kernel.a: $(developLibDir)/libgcc.a
|
|
|
|
libgcc_eh-kernel.a:
|
|
|
|
libstdc++.a:
|
|
|
|
libsupc++.a:
|
|
|
|
libsupc++-kernel.a:
|
|
|
|
;
|
|
|
|
} else {
|
|
|
|
ExtractBuildFeatureArchives gcc_syslibs_devel :
|
|
|
|
file: base gcc_syslibs_devel
|
|
|
|
libgcc.a: $(developLibDir)/libgcc.a
|
|
|
|
libgcc_eh.a: $(developLibDir)/libgcc_eh.a
|
|
|
|
libgcc-kernel.a: $(developLibDir)/libgcc-kernel.a
|
|
|
|
libgcc_eh-kernel.a: $(developLibDir)/libgcc_eh.a
|
|
|
|
libstdc++.a: $(developLibDir)/libstdc++.a
|
|
|
|
libsupc++.a: $(developLibDir)/libsupc++.a
|
|
|
|
libsupc++-kernel.a: $(developLibDir)/libsupc++-kernel.a
|
|
|
|
c++-headers: $(developHeadersDir)/c++
|
|
|
|
gcc-headers: $(developHeadersDir)/gcc
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
EnableBuildFeatures gcc_syslibs_devel ;
|
2018-05-07 03:54:32 +03:00
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += gcc_syslibs_devel ;
|
2014-07-25 20:37:14 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-07-13 23:04:40 +04:00
|
|
|
# ICU
|
|
|
|
|
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 ;
|
2018-05-07 03:54:32 +03:00
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += icu ;
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2014-08-25 22:24:04 +04:00
|
|
|
# Giflib
|
|
|
|
if [ IsPackageAvailable giflib_devel ] {
|
|
|
|
ExtractBuildFeatureArchives giflib :
|
|
|
|
file: base giflib
|
|
|
|
runtime: lib
|
|
|
|
file: devel giflib_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libgif.so.7
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures giflib ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += giflib ;
|
2014-08-25 22:24:04 +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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += glu ;
|
2012-11-13 20:52:06 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-12-23 09:36:02 +04:00
|
|
|
# GL (GL Kit, Mesa3D)
|
2013-07-05 12:51:42 +04:00
|
|
|
if [ IsPackageAvailable mesa_devel ] {
|
2013-12-23 09:36:02 +04:00
|
|
|
ExtractBuildFeatureArchives mesa :
|
|
|
|
file: base mesa
|
|
|
|
runtime: lib
|
2013-07-05 12:51:42 +04:00
|
|
|
file: devel mesa_devel
|
2013-12-23 09:36:02 +04:00
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libGL.so
|
|
|
|
headers: $(developHeadersDir)/os/opengl
|
|
|
|
;
|
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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += mesa ;
|
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 ] {
|
2017-12-24 18:39:23 +03:00
|
|
|
local ffmpegLibs = libavformat.so libavcodec.so libavfilter.so libswscale.so
|
|
|
|
libavutil.so libswresample.so ;
|
2014-05-01 14:50:11 +04:00
|
|
|
|
2013-12-05 21:02:29 +04:00
|
|
|
ExtractBuildFeatureArchives ffmpeg :
|
|
|
|
file: base ffmpeg
|
|
|
|
runtime: lib
|
|
|
|
file: devel ffmpeg_devel
|
|
|
|
depends: base
|
|
|
|
libraries: $(developLibDir)/$(ffmpegLibs)
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
2013-06-13 23:31:44 +04:00
|
|
|
|
2013-12-05 21:02:29 +04:00
|
|
|
EnableBuildFeatures ffmpeg ;
|
2014-05-01 14:50:11 +04:00
|
|
|
|
2012-03-07 04:41:23 +04:00
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += ffmpeg ;
|
2012-03-07 04:41:23 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-11-01 10:48:13 +03:00
|
|
|
# Fluidlite
|
|
|
|
if [ IsPackageAvailable fluidlite_devel ] && [ IsPackageAvailable libvorbis_devel ] {
|
|
|
|
ExtractBuildFeatureArchives fluidlite :
|
|
|
|
file: devel fluidlite_devel
|
|
|
|
library: $(developLibDir)/libfluidlite.a
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures fluidlite ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += fluidlite ;
|
2016-11-01 10:48:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Libvorbis
|
|
|
|
if [ IsPackageAvailable libvorbis_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libvorbis :
|
|
|
|
file: base libvorbis
|
|
|
|
runtime: lib
|
|
|
|
file: devel libvorbis_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libvorbisfile.so.3
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libvorbis ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libvorbis ;
|
2016-11-01 10:48:13 +03: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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += freetype ;
|
2012-03-17 23:09:32 +04:00
|
|
|
}
|
|
|
|
|
2016-03-11 08:38:32 +03:00
|
|
|
# fontconfig
|
|
|
|
if [ IsPackageAvailable fontconfig_devel ] {
|
|
|
|
ExtractBuildFeatureArchives fontconfig :
|
|
|
|
file: base fontconfig
|
|
|
|
runtime: lib
|
|
|
|
file: devel fontconfig_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libfontconfig.so
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/fontconfig
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures fontconfig ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += fontconfig ;
|
2016-03-11 08:38:32 +03:00
|
|
|
}
|
2012-03-17 23:09:32 +04:00
|
|
|
|
2014-05-09 22:19:35 +04:00
|
|
|
# Gutenprint
|
|
|
|
if [ IsPackageAvailable gutenprint_devel ] {
|
|
|
|
ExtractBuildFeatureArchives gutenprint :
|
|
|
|
file: base gutenprint
|
|
|
|
runtime: lib
|
|
|
|
file: devel gutenprint_devel
|
|
|
|
depends: base
|
2014-05-10 15:08:35 +04:00
|
|
|
library: $(developLibDir)/libgutenprint.so
|
2014-05-09 22:19:35 +04:00
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/gutenprint
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures gutenprint ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += gutenprint ;
|
2014-05-09 22:19:35 +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 ] {
|
2018-06-17 15:37:12 +03:00
|
|
|
ExtractBuildFeatureArchives webkit :
|
|
|
|
file: base haikuwebkit
|
|
|
|
runtime: lib
|
|
|
|
file: devel haikuwebkit_devel
|
|
|
|
depends: base
|
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libWebKitLegacy.so
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
2013-07-05 12:51:42 +04:00
|
|
|
|
2013-08-10 17:05:51 +04:00
|
|
|
EnableBuildFeatures webkit ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += webkit ;
|
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
|
2015-10-18 00:02:56 +03:00
|
|
|
if [ IsPackageAvailable libpng16_devel ] {
|
2013-06-14 00:48:00 +04:00
|
|
|
ExtractBuildFeatureArchives libpng :
|
2014-11-13 00:59:26 +03:00
|
|
|
file: base libpng16
|
2013-06-14 00:48:00 +04:00
|
|
|
runtime: lib
|
2014-11-13 00:59:26 +03:00
|
|
|
file: devel libpng16_devel
|
2013-06-14 00:48:00 +04:00
|
|
|
depends: base
|
2014-11-13 00:59:26 +03:00
|
|
|
library: $(developLibDir)/libpng16.so
|
2013-08-05 09:09:45 +04:00
|
|
|
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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libpng ;
|
2012-08-24 01:52:11 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-26 22:26:31 +04:00
|
|
|
# libicns
|
|
|
|
if [ IsPackageAvailable libicns_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libicns :
|
|
|
|
file: base libicns
|
|
|
|
runtime: lib
|
|
|
|
file: devel libicns_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libicns.so.1
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libicns ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libicns ;
|
2014-08-26 22:26:31 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-25 22:24:04 +04:00
|
|
|
# Jasper
|
|
|
|
if [ IsPackageAvailable jasper_devel ] {
|
2017-11-25 14:01:30 +03:00
|
|
|
ExtractBuildFeatureArchives jasper :
|
|
|
|
file: base jasper
|
|
|
|
runtime: lib
|
|
|
|
file: devel jasper_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libjasper.so.4
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/jasper
|
|
|
|
;
|
|
|
|
|
2014-08-25 22:24:04 +04:00
|
|
|
EnableBuildFeatures jasper ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += jasper ;
|
2014-08-25 22:24:04 +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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += jpeg ;
|
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
|
2014-09-02 11:16:54 +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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += zlib ;
|
2012-10-31 00:18:36 +04:00
|
|
|
}
|
2012-12-09 07:07:29 +04:00
|
|
|
|
|
|
|
|
2015-07-04 23:29:05 +03:00
|
|
|
# libedit
|
|
|
|
if [ IsPackageAvailable libedit_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libedit :
|
|
|
|
file: base libedit
|
|
|
|
runtime: lib
|
|
|
|
file: devel libedit_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libedit.so
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libedit ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libedit ;
|
2015-07-04 23:29:05 +03: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 {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libsolv ;
|
2013-05-05 17:02:57 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-18 20:10:57 +04:00
|
|
|
# qrencode
|
2014-10-20 02:38:14 +04:00
|
|
|
if [ IsPackageAvailable qrencode_kdl_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libqrencode_kdl :
|
|
|
|
file: devel qrencode_kdl_devel
|
|
|
|
library: $(developLibDir)/libqrencode_kdl.a
|
2014-04-18 20:10:57 +04:00
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
2014-10-20 02:38:14 +04:00
|
|
|
EnableBuildFeatures libqrencode_kdl ;
|
2014-04-18 20:10:57 +04:00
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += qrencode_kdl ;
|
2014-04-18 20:10:57 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-06-03 01:45:19 +04:00
|
|
|
# tiff
|
2015-10-18 11:00:02 +03:00
|
|
|
if [ IsPackageAvailable tiff4_devel ] {
|
2014-06-03 01:45:19 +04:00
|
|
|
ExtractBuildFeatureArchives tiff :
|
2015-10-18 11:00:02 +03:00
|
|
|
file: base tiff4
|
2014-06-03 01:45:19 +04:00
|
|
|
runtime: lib
|
2015-10-18 11:00:02 +03:00
|
|
|
file: devel tiff4_devel
|
2014-06-03 01:45:19 +04:00
|
|
|
depends: base
|
2015-10-18 11:00:02 +03:00
|
|
|
library: $(developLibDir)/libtiff.so.5
|
2014-06-03 01:45:19 +04:00
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/tiff
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures tiff ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += tiff ;
|
2017-12-17 17:37:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# openexr
|
|
|
|
if [ IsPackageAvailable openexr_devel ]
|
|
|
|
&& [ IsPackageAvailable ilmbase_devel ] {
|
|
|
|
ExtractBuildFeatureArchives openexr :
|
|
|
|
file: base openexr
|
|
|
|
runtime: lib
|
|
|
|
file: devel openexr_devel
|
|
|
|
depends: base
|
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libIlmImf.so
|
|
|
|
$(developLibDir)/libIlmImfUtil.so
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/OpenEXR
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures openexr ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += openexr ;
|
2017-12-17 17:37:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# ilmbase
|
|
|
|
if [ IsPackageAvailable ilmbase_devel ] {
|
|
|
|
ExtractBuildFeatureArchives ilmbase :
|
|
|
|
file: base ilmbase
|
|
|
|
runtime: lib
|
|
|
|
file: devel ilmbase_devel
|
|
|
|
depends: base
|
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libHalf.so
|
|
|
|
$(developLibDir)/libIex.so
|
|
|
|
$(developLibDir)/libIexMath.so
|
|
|
|
$(developLibDir)/libIlmThread.so
|
|
|
|
$(developLibDir)/libImath.so
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/OpenEXR
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures ilmbase ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += ilmbase ;
|
2014-06-03 01:45:19 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-02-19 01:19:29 +03:00
|
|
|
# libdvdread
|
|
|
|
if [ IsPackageAvailable libdvdread_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libdvdread :
|
|
|
|
file: base libdvdread
|
|
|
|
runtime: lib
|
|
|
|
file: devel libdvdread_devel
|
|
|
|
depends: base
|
|
|
|
libraries: $(developLibDir)/libdvdread.so.4
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libdvdread ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libdvdread ;
|
2019-02-19 01:19:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# libdvdnav
|
|
|
|
if [ IsPackageAvailable libdvdnav_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libdvdnav :
|
|
|
|
file: base libdvdnav
|
|
|
|
runtime: lib
|
|
|
|
file: devel libdvdnav_devel
|
|
|
|
depends: base
|
|
|
|
libraries: $(developLibDir)/libdvdnav.so.4
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libdvdnav ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libdvdnav ;
|
2019-02-19 01:19:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-25 22:24:04 +04:00
|
|
|
# libwebp
|
|
|
|
if [ IsPackageAvailable libwebp_devel ] {
|
2017-04-28 18:38:51 +03:00
|
|
|
if $(HAIKU_PACKAGING_ARCH) = x86 && $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
|
2017-04-08 13:09:13 +03:00
|
|
|
ExtractBuildFeatureArchives libwebp :
|
|
|
|
file: base libwebp
|
|
|
|
runtime: lib
|
|
|
|
file: devel libwebp_devel
|
|
|
|
depends: base
|
2017-04-08 14:35:37 +03:00
|
|
|
library: $(developLibDir)/libwebp.so.6
|
2017-04-08 13:09:13 +03:00
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/webp
|
|
|
|
;
|
|
|
|
} else {
|
|
|
|
ExtractBuildFeatureArchives libwebp :
|
|
|
|
file: base libwebp
|
|
|
|
runtime: lib
|
|
|
|
file: devel libwebp_devel
|
|
|
|
depends: base
|
2017-04-08 14:35:37 +03:00
|
|
|
library: $(developLibDir)/libwebp.so.7
|
2017-04-08 13:09:13 +03:00
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/webp
|
|
|
|
;
|
|
|
|
}
|
2014-08-25 22:24:04 +04:00
|
|
|
|
|
|
|
EnableBuildFeatures libwebp ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += libwebp ;
|
2014-08-25 22:24:04 +04:00
|
|
|
}
|
|
|
|
|
2014-04-18 20:10:57 +04:00
|
|
|
|
2016-05-24 21:12:55 +03:00
|
|
|
# live555
|
|
|
|
if [ IsPackageAvailable live555_devel ] {
|
|
|
|
ExtractBuildFeatureArchives live555 :
|
|
|
|
file: devel live555_devel
|
|
|
|
libraries:
|
|
|
|
$(developLibDir)/libliveMedia.a
|
2016-06-02 18:28:38 +03:00
|
|
|
$(developLibDir)/libBasicUsageEnvironment.a
|
2016-05-24 21:12:55 +03:00
|
|
|
$(developLibDir)/libgroupsock.a
|
|
|
|
$(developLibDir)/libUsageEnvironment.a
|
|
|
|
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
$(developHeadersDir)/liveMedia
|
2016-06-02 18:28:38 +03:00
|
|
|
$(developHeadersDir)/BasicUsageEnvironment
|
2016-05-24 21:12:55 +03:00
|
|
|
$(developHeadersDir)/groupsock
|
|
|
|
$(developHeadersDir)/UsageEnvironment
|
|
|
|
;
|
|
|
|
EnableBuildFeatures live555 ;
|
2018-05-07 03:54:32 +03:00
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += live555 ;
|
2016-05-24 21:12:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-12-18 12:06:24 +03:00
|
|
|
# ncurses
|
2015-10-18 00:02:56 +03:00
|
|
|
if [ IsPackageAvailable ncurses6_devel ] {
|
2014-12-18 12:06:24 +03:00
|
|
|
ExtractBuildFeatureArchives ncurses :
|
2015-10-18 00:02:56 +03:00
|
|
|
file: base ncurses6
|
2014-12-18 12:06:24 +03:00
|
|
|
runtime: lib
|
2015-10-18 00:02:56 +03:00
|
|
|
file: devel ncurses6_devel
|
2014-12-18 12:06:24 +03:00
|
|
|
depends: base
|
2015-10-18 00:02:56 +03:00
|
|
|
library: $(developLibDir)/libncurses.so.6
|
2015-01-27 13:07:50 +03:00
|
|
|
headers: $(developHeadersDir)
|
2014-12-18 12:06:24 +03:00
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures ncurses ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += ncurses6 ;
|
2014-12-18 12:06:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-06-11 00:28:53 +03:00
|
|
|
# expat
|
|
|
|
if [ IsPackageAvailable expat_devel ] {
|
|
|
|
ExtractBuildFeatureArchives expat :
|
|
|
|
file: base expat
|
|
|
|
runtime: lib
|
|
|
|
file: devel expat_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libexpat.so.1
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures expat ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += expat ;
|
2015-06-11 00:28:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-04-14 10:15:55 +03:00
|
|
|
# gnu-efi
|
2018-08-08 18:18:06 +03:00
|
|
|
if [ IsPackageAvailable gnu_efi_kernel ] {
|
|
|
|
ExtractBuildFeatureArchives gnuefi :
|
|
|
|
file: base gnu_efi_kernel
|
|
|
|
headers: develop/headers/gnuefi
|
|
|
|
headersProtocol: develop/headers/gnuefi/protocol
|
|
|
|
headersArch: develop/headers/gnuefi/$(TARGET_ARCH)
|
|
|
|
libdir: develop/lib/gnuefi
|
|
|
|
;
|
2016-04-14 10:15:55 +03:00
|
|
|
|
2018-08-08 18:18:06 +03:00
|
|
|
EnableBuildFeatures gnuefi ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += gnu_efi_kernel ;
|
2016-04-14 10:15:55 +03:00
|
|
|
}
|
|
|
|
|
2017-11-23 21:15:56 +03:00
|
|
|
|
|
|
|
# zstd
|
|
|
|
if [ IsPackageAvailable zstd_devel ] {
|
|
|
|
ExtractBuildFeatureArchives zstd :
|
|
|
|
file: base zstd
|
|
|
|
runtime: lib
|
|
|
|
file: devel zstd_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libzstd.so
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
# sources are required for the primary architecture only
|
|
|
|
primary @{
|
|
|
|
file: source zstd_source
|
|
|
|
sources: develop/sources/%portRevisionedName%/sources
|
|
|
|
}@
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures zstd ;
|
|
|
|
} else {
|
2019-02-26 00:11:39 +03:00
|
|
|
unavailableBuildFeatures += zstd ;
|
2017-11-23 21:15:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-02-26 00:11:39 +03:00
|
|
|
# Print a diagnostic message with build features not presently available.
|
|
|
|
if $(unavailableBuildFeatures) {
|
|
|
|
Echo "build-feature packages unavailable on $(TARGET_PACKAGING_ARCH):"
|
|
|
|
"$(unavailableBuildFeatures)" ;
|
|
|
|
}
|