pjproject_bundled: Remove usage of tar's --strip-components option

Older versions of tar don't support the --strip-components option so
instead of doing 'tar --strip-components=1 -C source', we now just
untar to the tarball's root directory (pjproject-<version>) and
rename that directory to 'source'.

Also fixed an issue where the pjproject source directory is a hard
coded absolute pathname.

ASTERISK-26510 #close
ASTERISK-22480 #close

Change-Id: I9ec92952507a91ff4e4d01e0149e09fd8e8f32b0
This commit is contained in:
George Joseph
2016-10-26 17:48:24 -06:00
parent 211a1003e4
commit 4f45d62653
2 changed files with 9 additions and 3 deletions

View File

@@ -2,6 +2,11 @@ diff --git a/build.mak.in b/build.mak.in
index 802211c..006d887 100644
--- a/build.mak.in
+++ b/build.mak.in
@@ -1,4 +1,3 @@
-export PJDIR := @ac_pjdir@
include $(PJDIR)/version.mak
export PJ_DIR := $(PJDIR)
@@ -9,7 +9,7 @@ export HOST_NAME := unix
export CC_NAME := gcc
export TARGET_NAME := @target@