-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
android-arm64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
android-arm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
openssl-android (1.1.1d-1) stable; urgency=medium | ||
|
||
* Initial Release. | ||
|
||
-- Tobias Junghans <tobydox@veyon.io> Wed, 22 Jan 2020 15:09:42 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Source: openssl-android | ||
Section: devel | ||
Priority: optional | ||
Maintainer: Tobias Junghans <tobydox@veyon.io> | ||
Build-Depends: debhelper (>= 9) | ||
Standards-Version: 3.9.7 | ||
|
||
Package: openssl-android | ||
Architecture: all | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: OpenSSL library - Android runtime and headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/make -f | ||
|
||
# This has to be exported to make some magic below work. | ||
export DH_OPTIONS | ||
|
||
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) | ||
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) | ||
else | ||
NUMJOBS = 1 | ||
endif | ||
|
||
TARGETS := arm-linux-androideabi aarch64-linux-android | ||
DESTDIR=$(CURDIR)/debian/openssl-android | ||
|
||
export ANDROID_NDK_HOME=/opt/android/ndk | ||
export PATH := $(ANDROID_NDK_HOME)/toolchains/llvm/prebuilt/linux-x86_64/bin/:$(PATH) | ||
|
||
%: | ||
dh $@ --parallel | ||
|
||
override_dh_auto_clean: | ||
for target in $(TARGETS); do \ | ||
rm -rf build-$$target; \ | ||
done | ||
dh_auto_clean | ||
|
||
override_dh_auto_configure: | ||
for target in $(TARGETS); do \ | ||
OPENSSL_ARCH=$$(cat debian/arch/$$target); \ | ||
echo $(OPENSSL_ARCH); \ | ||
mkdir build-$$target; \ | ||
cd build-$$target; \ | ||
../openssl/Configure --cross-compile-prefix=$$target --prefix=/usr/$$target --openssldir=/usr/$$target $$OPENSSL_ARCH no-asm no-unit-test -mthumb -fPIC -latomic -D__ANDROID_API__=21; \ | ||
cd ..; \ | ||
done | ||
|
||
override_dh_auto_build: | ||
for target in $(TARGETS); do \ | ||
cd build-$$target; \ | ||
$(MAKE) SHLIB_VERSION_NUMBER= SHLIB_EXT=.so -j$(NUMJOBS); \ | ||
cd ..; \ | ||
done | ||
|
||
override_dh_auto_install: | ||
for target in $(TARGETS); do \ | ||
cd build-$$target; \ | ||
$(MAKE) SHLIB_VERSION_NUMBER= SHLIB_EXT=.so DESTDIR=$(DESTDIR) install; \ | ||
rm $(DESTDIR)/usr/$$target/lib/*.a; \ | ||
cd ..; \ | ||
done | ||
|
||
override_dh_auto_test: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tar-ignore = .git |