Update openssl package
Also use the new build feature rules
This commit is contained in:
parent
5ce950ae76
commit
ebb78dd9b7
@ -24,44 +24,32 @@ if [ IsOptionalHaikuImagePackageAdded OpenSSL ] {
|
|||||||
HAIKU_BUILD_FEATURE_SSL = 1 ;
|
HAIKU_BUILD_FEATURE_SSL = 1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
|
||||||
if $(TARGET_ARCH) = x86_64 {
|
|
||||||
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0j-x86_64-2012-12-18.zip ;
|
|
||||||
} else {
|
|
||||||
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0j-r1a4-x86-gcc4-2012-08-29.zip ;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0j-1-x86_gcc2.hpkg ;
|
|
||||||
}
|
|
||||||
|
|
||||||
HAIKU_OPENSSL_URL = $(hpkgBaseURL)/$(HAIKU_OPENSSL_PACKAGE) ;
|
|
||||||
|
|
||||||
if $(HAIKU_BUILD_FEATURE_SSL) {
|
if $(HAIKU_BUILD_FEATURE_SSL) {
|
||||||
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
|
if $(TARGET_ARCH) in x86 x86_64 {
|
||||||
# Download the package.
|
if $(HAIKU_GCC_VERSION[1]) >= 4 {
|
||||||
local zipFile = [ DownloadFile $(HAIKU_OPENSSL_PACKAGE)
|
if $(TARGET_ARCH) = x86_64 {
|
||||||
: $(HAIKU_OPENSSL_URL) ] ;
|
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0j-x86_64-2012-12-18.zip ;
|
||||||
|
} else {
|
||||||
|
HAIKU_OPENSSL_PACKAGE
|
||||||
|
= openssl-1.0.0j-r1a4-x86-gcc4-2012-08-29.zip ;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
HAIKU_OPENSSL_PACKAGE = openssl-1.0.0j-2-x86_gcc2.hpkg ;
|
||||||
|
HAIKU_OPENSSL_DEVEL_PACKAGE = openssl_devel-1.0.0j-2-x86_gcc2.hpkg ;
|
||||||
|
}
|
||||||
|
|
||||||
# zip file and output directory
|
HAIKU_OPENSSL_URL = $(hpkgBaseURL)/$(HAIKU_OPENSSL_PACKAGE) ;
|
||||||
HAIKU_OPENSSL_ZIP_FILE = $(zipFile) ;
|
HAIKU_OPENSSL_DEVEL_URL
|
||||||
HAIKU_OPENSSL_DIR = [ FDirName $(HAIKU_OPTIONAL_BUILD_PACKAGES_DIR)
|
= $(hpkgBaseURL)/$(HAIKU_OPENSSL_DEVEL_PACKAGE) ;
|
||||||
$(HAIKU_OPENSSL_PACKAGE:B) ] ;
|
|
||||||
|
|
||||||
# extract headers and libraries
|
ExtractBuildFeatureArchives openssl :
|
||||||
HAIKU_OPENSSL_HEADERS_DEPENDENCY = [ ExtractArchive $(HAIKU_OPENSSL_DIR)
|
file: base $(HAIKU_OPENSSL_URL)
|
||||||
: develop/headers/ : $(zipFile) : extracted-openssl
|
runtime: lib
|
||||||
] ;
|
file: devel $(HAIKU_OPENSSL_DEVEL_URL)
|
||||||
|
depends: base
|
||||||
HAIKU_OPENSSL_LIBS = [ ExtractArchive $(HAIKU_OPENSSL_DIR)
|
libraries: develop/lib/libcrypto.so develop/lib/libssl.so
|
||||||
:
|
headers: develop/headers
|
||||||
develop/lib/libcrypto.so
|
;
|
||||||
develop/lib/libssl.so
|
|
||||||
: $(zipFile)
|
|
||||||
: extracted-openssl
|
|
||||||
] ;
|
|
||||||
|
|
||||||
HAIKU_OPENSSL_HEADERS
|
|
||||||
= [ FDirName $(HAIKU_OPENSSL_DIR) develop/headers ] ;
|
|
||||||
|
|
||||||
EnableBuildFeatures openssl ;
|
EnableBuildFeatures openssl ;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1478,6 +1478,9 @@ if [ IsOptionalHaikuImagePackageAdded OpenSSH ] {
|
|||||||
if [ IsOptionalHaikuImagePackageAdded OpenSSL ] {
|
if [ IsOptionalHaikuImagePackageAdded OpenSSL ] {
|
||||||
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
|
if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
|
||||||
InstallOptionalHaikuImagePackage $(HAIKU_OPENSSL_URL) ;
|
InstallOptionalHaikuImagePackage $(HAIKU_OPENSSL_URL) ;
|
||||||
|
if [ IsOptionalHaikuImagePackageAdded DevelopmentBase ] {
|
||||||
|
InstallOptionalHaikuImagePackage $(HAIKU_OPENSSL_DEVEL_URL) ;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Echo "No optional package OpenSSL available for $(TARGET_ARCH)" ;
|
Echo "No optional package OpenSSL available for $(TARGET_ARCH)" ;
|
||||||
}
|
}
|
||||||
|
@ -17,10 +17,11 @@ local sources =
|
|||||||
;
|
;
|
||||||
|
|
||||||
# use OpenSSL, if enabled
|
# use OpenSSL, if enabled
|
||||||
if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
|
if [ FIsBuildFeatureEnabled openssl ] {
|
||||||
SubDirC++Flags -DUSE_SSL ;
|
SubDirC++Flags -DUSE_SSL ;
|
||||||
SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
|
UseBuildFeatureHeaders openssl ;
|
||||||
Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
|
Includes [ FGristFiles $(sources) ]
|
||||||
|
: [ BuildFeatureAttribute openssl : headers ] ;
|
||||||
# Dependency needed to trigger downloading/unzipping the package before
|
# Dependency needed to trigger downloading/unzipping the package before
|
||||||
# compiling the files.
|
# compiling the files.
|
||||||
SetupFeatureObjectsDir ssl ;
|
SetupFeatureObjectsDir ssl ;
|
||||||
@ -33,7 +34,8 @@ AddResources POP3 : POP3.rdef ;
|
|||||||
Addon POP3
|
Addon POP3
|
||||||
: $(sources)
|
: $(sources)
|
||||||
: be libbnetapi.so libmail.so $(HAIKU_LOCALE_LIBS)
|
: be libbnetapi.so libmail.so $(HAIKU_LOCALE_LIBS)
|
||||||
$(HAIKU_OPENSSL_LIBS) $(TARGET_LIBSUPC++) $(TARGET_NETWORK_LIBS)
|
[ BuildFeatureAttribute openssl : libraries ] $(TARGET_LIBSUPC++)
|
||||||
|
$(TARGET_NETWORK_LIBS)
|
||||||
;
|
;
|
||||||
|
|
||||||
Package haiku-maildaemon-cvs :
|
Package haiku-maildaemon-cvs :
|
||||||
|
@ -13,10 +13,11 @@ local sources =
|
|||||||
;
|
;
|
||||||
|
|
||||||
# use OpenSSL, if enabled
|
# use OpenSSL, if enabled
|
||||||
if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
|
if [ FIsBuildFeatureEnabled openssl ] {
|
||||||
SubDirC++Flags -DUSE_SSL ;
|
SubDirC++Flags -DUSE_SSL ;
|
||||||
SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
|
UseBuildFeatureHeaders openssl ;
|
||||||
Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
|
Includes [ FGristFiles $(sources) ]
|
||||||
|
: [ BuildFeatureAttribute openssl : headers ] ;
|
||||||
# Dependency needed to trigger downloading/unzipping the package before
|
# Dependency needed to trigger downloading/unzipping the package before
|
||||||
# compiling the files.
|
# compiling the files.
|
||||||
SetupFeatureObjectsDir ssl ;
|
SetupFeatureObjectsDir ssl ;
|
||||||
@ -29,7 +30,7 @@ AddResources SMTP : SMTP.rdef ;
|
|||||||
Addon SMTP
|
Addon SMTP
|
||||||
: $(sources)
|
: $(sources)
|
||||||
: be libmail.so $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++)
|
: be libmail.so $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++)
|
||||||
$(HAIKU_LOCALE_LIBS) $(HAIKU_OPENSSL_LIBS)
|
$(HAIKU_LOCALE_LIBS) [ BuildFeatureAttribute openssl : libraries ]
|
||||||
;
|
;
|
||||||
|
|
||||||
DoCatalogs SMTP :
|
DoCatalogs SMTP :
|
||||||
|
@ -12,12 +12,12 @@ SubDirSysHdrs [ FDirName $(SUBDIR) md5 ] ;
|
|||||||
# use OpenSSL, if enabled
|
# use OpenSSL, if enabled
|
||||||
local sslSources ;
|
local sslSources ;
|
||||||
|
|
||||||
if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
|
if [ FIsBuildFeatureEnabled openssl ] {
|
||||||
SubDirCcFlags -DHAVE_LIBSSL ;
|
SubDirCcFlags -DHAVE_LIBSSL ;
|
||||||
SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
|
UseBuildFeatureHeaders openssl ;
|
||||||
sslSources = openssl.c ;
|
sslSources = openssl.c ;
|
||||||
Includes [ FGristFiles $(sslSources) ]
|
Includes [ FGristFiles $(sslSources) ]
|
||||||
: $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
|
: [ BuildFeatureAttribute openssl : headers ] ;
|
||||||
# Dependency needed to trigger downloading/unzipping the package before
|
# Dependency needed to trigger downloading/unzipping the package before
|
||||||
# compiling the files.
|
# compiling the files.
|
||||||
SetupFeatureObjectsDir ssl ;
|
SetupFeatureObjectsDir ssl ;
|
||||||
@ -75,5 +75,5 @@ BinCommand wget :
|
|||||||
xmalloc.c
|
xmalloc.c
|
||||||
xalloc-die.c
|
xalloc-die.c
|
||||||
$(sslSources)
|
$(sslSources)
|
||||||
: $(TARGET_NETWORK_LIBS) $(HAIKU_OPENSSL_LIBS)
|
: $(TARGET_NETWORK_LIBS) [ BuildFeatureAttribute openssl : libraries ]
|
||||||
;
|
;
|
||||||
|
@ -36,10 +36,11 @@ local sources =
|
|||||||
|
|
||||||
|
|
||||||
# use OpenSSL, if enabled
|
# use OpenSSL, if enabled
|
||||||
if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
|
if [ FIsBuildFeatureEnabled openssl ] {
|
||||||
SubDirC++Flags -DUSE_SSL ;
|
SubDirC++Flags -DUSE_SSL ;
|
||||||
SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
|
UseBuildFeatureHeaders openssl ;
|
||||||
Includes [ FGristFiles $(sources) ] : $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
|
Includes [ FGristFiles $(sources) ]
|
||||||
|
: [ BuildFeatureAttribute openssl : headers ] ;
|
||||||
# Dependency needed to trigger downloading/unzipping the package before
|
# Dependency needed to trigger downloading/unzipping the package before
|
||||||
# compiling the files.
|
# compiling the files.
|
||||||
SetupFeatureObjectsDir ssl ;
|
SetupFeatureObjectsDir ssl ;
|
||||||
@ -56,7 +57,7 @@ SharedLibrary libmail.so :
|
|||||||
$(TARGET_LIBSTDC++)
|
$(TARGET_LIBSTDC++)
|
||||||
$(TARGET_NETWORK_LIBS)
|
$(TARGET_NETWORK_LIBS)
|
||||||
$(TARGET_SELECT_UNAME_ETC_LIB)
|
$(TARGET_SELECT_UNAME_ETC_LIB)
|
||||||
$(HAIKU_OPENSSL_LIBS)
|
[ BuildFeatureAttribute openssl : libraries ]
|
||||||
$(HAIKU_LOCALE_LIBS)
|
$(HAIKU_LOCALE_LIBS)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -8,13 +8,14 @@ UseHeaders [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] : true ;
|
|||||||
|
|
||||||
local sslSources ;
|
local sslSources ;
|
||||||
local md5Sources ;
|
local md5Sources ;
|
||||||
if $(HAIKU_BUILD_FEATURE_OPENSSL_ENABLED) {
|
if [ FIsBuildFeatureEnabled openssl ] {
|
||||||
SubDirC++Flags -DOPENSSL_ENABLED ;
|
SubDirC++Flags -DOPENSSL_ENABLED ;
|
||||||
SubDirSysHdrs $(HAIKU_OPENSSL_HEADERS) ;
|
UseBuildFeatureHeaders openssl ;
|
||||||
sslSources = SSL.cpp ;
|
sslSources = SSL.cpp ;
|
||||||
md5Sources = ;
|
md5Sources = ;
|
||||||
Includes [ FGristFiles $(sslSources) SecureSocket.cpp HttpAuthentication.cpp ]
|
Includes [ FGristFiles $(sslSources) SecureSocket.cpp
|
||||||
: $(HAIKU_OPENSSL_HEADERS_DEPENDENCY) ;
|
HttpAuthentication.cpp ]
|
||||||
|
: [ BuildFeatureAttribute openssl : headers ] ;
|
||||||
# Dependency needed to trigger downloading/unzipping the package before
|
# Dependency needed to trigger downloading/unzipping the package before
|
||||||
# compiling the files.
|
# compiling the files.
|
||||||
SetupFeatureObjectsDir ssl ;
|
SetupFeatureObjectsDir ssl ;
|
||||||
@ -71,6 +72,7 @@ SharedLibrary libbnetapi.so :
|
|||||||
UrlSynchronousRequest.cpp
|
UrlSynchronousRequest.cpp
|
||||||
|
|
||||||
:
|
:
|
||||||
be $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++) $(TARGET_LIBSUPC++) $(HAIKU_OPENSSL_LIBS)
|
be $(TARGET_NETWORK_LIBS) $(TARGET_LIBSTDC++) $(TARGET_LIBSUPC++)
|
||||||
|
[ BuildFeatureAttribute openssl : libraries ]
|
||||||
libshared.a
|
libshared.a
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user