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
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
libgcc_s.so: $(libDir)/libgcc_s.so
|
|
|
|
libstdc++.so: $(libDir)/libstdc++.so
|
|
|
|
libsupc++.so: $(libDir)/libsupc++.so
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures gcc_syslibs ;
|
|
|
|
} else {
|
|
|
|
Echo "gcc_syslibs not available for $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# 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 ;
|
|
|
|
} else {
|
|
|
|
Echo "gcc_syslibs_devel not available for $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 ;
|
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
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "Giflib support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
2013-12-23 09:36:02 +04:00
|
|
|
Echo "GL not yet 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
|
2015-11-20 21:39:42 +03:00
|
|
|
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 {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "Gutenprint support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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:
|
2013-11-15 21:39:07 +04:00
|
|
|
$(developLibDir)/libWebKit.so
|
2013-08-10 17:05:51 +04:00
|
|
|
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
|
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 {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "libicns support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-25 22:24:04 +04:00
|
|
|
# Jasper
|
|
|
|
if [ IsPackageAvailable jasper_devel ] {
|
|
|
|
ExtractBuildFeatureArchives jasper :
|
|
|
|
file: base jasper
|
|
|
|
runtime: lib
|
|
|
|
file: devel jasper_devel
|
|
|
|
depends: base
|
|
|
|
library: $(developLibDir)/libjasper.so.1
|
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/jasper
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures jasper ;
|
|
|
|
} else {
|
|
|
|
Echo "Jasper support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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
|
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 {
|
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
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "libedit support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "qrencode support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "Tiff support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-08-25 22:24:04 +04:00
|
|
|
# libwebp
|
|
|
|
if [ IsPackageAvailable libwebp_devel ] {
|
|
|
|
ExtractBuildFeatureArchives libwebp :
|
|
|
|
file: base libwebp
|
|
|
|
runtime: lib
|
|
|
|
file: devel libwebp_devel
|
|
|
|
depends: base
|
2016-01-10 21:24:16 +03:00
|
|
|
library: $(developLibDir)/libwebp.so.6
|
2014-08-25 22:24:04 +04:00
|
|
|
headers: $(developHeadersDir) $(developHeadersDir)/webp
|
|
|
|
;
|
|
|
|
|
|
|
|
EnableBuildFeatures libwebp ;
|
|
|
|
} else {
|
|
|
|
Echo "Libwebp support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
$(developLibDir)/libgroupsock.a
|
|
|
|
$(developLibDir)/libUsageEnvironment.a
|
|
|
|
$(developLibDir)/libBasicUsageEnvironment.a
|
|
|
|
|
|
|
|
headers: $(developHeadersDir)
|
|
|
|
$(developHeadersDir)/liveMedia
|
|
|
|
$(developHeadersDir)/groupsock
|
|
|
|
$(developHeadersDir)/UsageEnvironment
|
|
|
|
$(developHeadersDir)/BasicUsageEnvironment
|
|
|
|
;
|
|
|
|
EnableBuildFeatures live555 ;
|
|
|
|
} else {
|
|
|
|
Echo "live555 not available for $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "ncurses support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
|
|
|
Echo "expat support not available on $(TARGET_PACKAGING_ARCH)" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 ;
|
|
|
|
}
|