removed build-linux sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 04 Oct 2019 16:17:41 +0200
branchsync
changeset 41070742fa2654a7
parent 4105 982548344703
child 4109 7200575b3b89
child 4110 e064aa840c9c
removed build-linux
build-linux/Makefile
     1.1 --- a/build-linux/Makefile	Fri Oct 04 16:14:30 2019 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,326 +0,0 @@
     1.4 -# This file is under GNU General Public License 3.0
     1.5 -# see LICENSE.txt
     1.6 -
     1.7 -#------------------------------------------------------------------------------#
     1.8 -# Makefile to build libEtpan GPGME, GnuPG and deps for use with pEpEngine 
     1.9 -#  based on pEpJNIAdapter/android/external/Makefile
    1.10 -#------------------------------------------------------------------------------#
    1.11 -
    1.12 -all:
    1.13 -	@echo use make install to install GnuPG dependencies
    1.14 -	@echo this is not needed for builds with other OpenPGP implementations
    1.15 -	@echo use the Makefile in main directory and depend on README.md there
    1.16 -
    1.17 -install: libetpan-install gnupg-install gpgme-install
    1.18 -
    1.19 -PREFIX ?= $(HOME)
    1.20 -
    1.21 -CFLAGS = 
    1.22 -LDFLAGS = 
    1.23 -
    1.24 -#------------------------------------------------------------------------------#
    1.25 -# libgpg-error
    1.26 -
    1.27 -EXTERNAL_GIT_REPOS += libgpg-error|git://git.gnupg.org/libgpg-error.git?libgpg-error-1.20
    1.28 -
    1.29 -libgpg-error/configure: libgpg-error.src.stamp libgpg-error/configure.ac 
    1.30 -	cd libgpg-error && ./autogen.sh
    1.31 -
    1.32 -libgpg-error/Makefile: libgpg-error/configure 
    1.33 -	cd libgpg-error && \
    1.34 -		./configure \
    1.35 -			CFLAGS="$(CFLAGS)" \
    1.36 -			LDFLAGS="$(LDFLAGS)" \
    1.37 -			--disable-doc \
    1.38 -			--disable-languages \
    1.39 -			--prefix=$(PREFIX)
    1.40 -	ls -l libgpg-error/libtool
    1.41 -
    1.42 -libgpg-error/src/.libs/libgpg-error.so: libgpg-error/Makefile 
    1.43 -	$(MAKE) -C libgpg-error
    1.44 -
    1.45 -libgpg-error-build: libgpg-error/src/.libs/libgpg-error.so
    1.46 -
    1.47 -$(PREFIX)/lib/libgpg-error.so: libgpg-error/src/.libs/libgpg-error.so
    1.48 -	$(MAKE) -C libgpg-error prefix=$(PREFIX) install
    1.49 -	ls -l $(PREFIX)/lib/libgpg-error.so*
    1.50 -
    1.51 -libgpg-error-install: $(PREFIX)/lib/libgpg-error.so
    1.52 -
    1.53 -#------------------------------------------------------------------------------#
    1.54 -# libgcrypt
    1.55 -
    1.56 -EXTERNAL_GIT_REPOS += libgcrypt|git://git.gnupg.org/libgcrypt.git?libgcrypt-1.6.4
    1.57 -
    1.58 -libgcrypt/configure: libgcrypt.src.stamp libgcrypt/configure.ac 
    1.59 -	cd libgcrypt && ./autogen.sh
    1.60 -
    1.61 -libgcrypt/Makefile: libgcrypt/configure 
    1.62 -	cd libgcrypt && \
    1.63 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
    1.64 -			./configure \
    1.65 -				--enable-maintainer-mode \
    1.66 -				--with-gpg-error-prefix=$(PREFIX) \
    1.67 -				--prefix=$(PREFIX)
    1.68 -
    1.69 -libgcrypt/src/.libs/libgcrypt.so: $(PREFIX)/lib/libgpg-error.so libgcrypt/Makefile
    1.70 -	$(MAKE) -C libgcrypt
    1.71 -
    1.72 -$(PREFIX)/lib/libgcrypt.so: libgcrypt/src/.libs/libgcrypt.so
    1.73 -	$(MAKE) -C libgcrypt prefix=$(PREFIX) install
    1.74 -	ls -l $(PREFIX)/lib/libgcrypt.so
    1.75 -
    1.76 -libgcrypt-build: libgcrypt/src/.libs/libgcrypt.so
    1.77 -
    1.78 -libgcrypt-install: $(PREFIX)/lib/libgcrypt.so
    1.79 -
    1.80 -#------------------------------------------------------------------------------#
    1.81 -# libassuan
    1.82 -
    1.83 -EXTERNAL_GIT_REPOS += libassuan|git://git.gnupg.org/libassuan.git?libassuan-2.3.0
    1.84 -
    1.85 -libassuan/configure: libassuan.src.stamp libassuan/configure.ac 
    1.86 -	cd libassuan && ./autogen.sh && autoreconf --install --force --verbose
    1.87 -
    1.88 -libassuan/Makefile: libassuan/configure
    1.89 -	cd libassuan && \
    1.90 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
    1.91 -			./configure \
    1.92 -				--enable-maintainer-mode \
    1.93 -				--with-gpg-error-prefix=$(PREFIX) \
    1.94 -				--prefix=$(PREFIX)
    1.95 -
    1.96 -libassuan/src/.libs/libassuan.so: $(PREFIX)/lib/libgpg-error.so libassuan/Makefile
    1.97 -	$(MAKE) -C libassuan
    1.98 -
    1.99 -$(PREFIX)/lib/libassuan.so: libassuan/src/.libs/libassuan.so
   1.100 -	$(MAKE) -C libassuan prefix=$(PREFIX) install
   1.101 -	ls -l $(PREFIX)/lib/libassuan.so
   1.102 -
   1.103 -libassuan-build: libassuan/src/.libs/libassuan.so
   1.104 -
   1.105 -libassuan-install: $(PREFIX)/lib/libassuan.so
   1.106 -
   1.107 -#------------------------------------------------------------------------------#
   1.108 -# libksba
   1.109 -
   1.110 -EXTERNAL_GIT_REPOS += libksba|git://git.gnupg.org/libksba.git?libksba-1.3.3
   1.111 -
   1.112 -libksba/configure: libksba.src.stamp libksba/configure.ac 
   1.113 -	cd libksba && ./autogen.sh
   1.114 -
   1.115 -libksba/Makefile: $(PREFIX)/lib/libgpg-error.so libksba/configure
   1.116 -	cd libksba && \
   1.117 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
   1.118 -			./configure \
   1.119 -				--enable-maintainer-mode \
   1.120 -				--with-gpg-error-prefix=$(PREFIX) \
   1.121 -				--prefix=$(PREFIX)
   1.122 -
   1.123 -libksba/src/.libs/libksba.so: libksba/Makefile
   1.124 -	$(MAKE) -C libksba
   1.125 -
   1.126 -$(PREFIX)/lib/libksba.so: libksba/src/.libs/libksba.so
   1.127 -	$(MAKE) -C libksba prefix=$(PREFIX) install
   1.128 -	ls -l $(PREFIX)/lib/libksba.so
   1.129 -
   1.130 -libksba-build: libksba/src/.libs/libksba.so
   1.131 -
   1.132 -libksba-install: $(PREFIX)/lib/libksba.so
   1.133 -
   1.134 -#------------------------------------------------------------------------------#
   1.135 -# curl
   1.136 -
   1.137 -EXTERNAL_GIT_REPOS += curl|https://github.com/bagder/curl?curl-7_45_0
   1.138 -
   1.139 -curl/configure: curl.src.stamp curl/configure.ac 
   1.140 -	cd curl && ./buildconf
   1.141 -
   1.142 -curl/Makefile: curl/configure
   1.143 -	cd curl && \
   1.144 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
   1.145 -			./configure \
   1.146 -				--prefix=$(PREFIX) \
   1.147 -				--with-gnu-ld \
   1.148 -				--disable-imap \
   1.149 -				--disable-ldap \
   1.150 -				--disable-pop3 \
   1.151 -				--disable-rtsp \
   1.152 -				--disable-smtp
   1.153 -
   1.154 -curl/lib/.libs/libcurl.so: curl/Makefile
   1.155 -	$(MAKE) -C curl
   1.156 -
   1.157 -$(PREFIX)/lib/libcurl.so: curl/lib/.libs/libcurl.so
   1.158 -	$(MAKE) -C curl prefix=$(PREFIX) install
   1.159 -	ls -l $(PREFIX)/lib/libcurl.so
   1.160 -
   1.161 -curl-build: curl/lib/.libs/libcurl.so
   1.162 -
   1.163 -curl-install: $(PREFIX)/lib/libcurl.so
   1.164 -
   1.165 -
   1.166 -#------------------------------------------------------------------------------#
   1.167 -# gnupg
   1.168 -
   1.169 -EXTERNAL_GIT_REPOS += gnupg|git://git.gnupg.org/gnupg.git?gnupg-2.0.29
   1.170 -
   1.171 -gnupg/configure: gnupg.src.stamp gnupg/configure.ac 
   1.172 -	-sed -i '/^tests/d' gnupg/configure.ac
   1.173 -	-sed -i 's/tests = tests/tests =/' gnupg/Makefile.am
   1.174 -	cd gnupg && ./autogen.sh
   1.175 -
   1.176 -gnupg/Makefile: gnupg/configure
   1.177 -	cd gnupg && \
   1.178 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
   1.179 -			./configure \
   1.180 -				--enable-maintainer-mode \
   1.181 -				--with-gpg-error-prefix=$(PREFIX) \
   1.182 -				--with-libgcrypt-prefix=$(PREFIX) \
   1.183 -				--with-libassuan-prefix=$(PREFIX) \
   1.184 -				--with-ksba-prefix=$(PREFIX) \
   1.185 -				--with-libcurl=$(PREFIX) \
   1.186 -				--disable-agent \
   1.187 -				--disable-scdaemon \
   1.188 -				--disable-ldap \
   1.189 -				--disable-doc \
   1.190 -				--disable-gpgsm \
   1.191 -				--prefix=$(PREFIX)
   1.192 -
   1.193 -gnupg/g10/gpg2: $(PREFIX)/lib/libgpg-error.so $(PREFIX)/lib/libgcrypt.so $(PREFIX)/lib/libksba.so $(PREFIX)/lib/libassuan.so $(PREFIX)/lib/libcurl.so gnupg/Makefile
   1.194 -	$(MAKE) -C gnupg
   1.195 -
   1.196 -$(PREFIX)/bin/gpg2: gnupg/g10/gpg2 gnupg/configure
   1.197 -	$(MAKE) -C gnupg prefix=$(PREFIX) install
   1.198 -	ls -l $(PREFIX)/bin/gpg2
   1.199 -
   1.200 -gnupg-build: gnupg/g10/gpg2
   1.201 -
   1.202 -gnupg-install: $(PREFIX)/bin/gpg2
   1.203 -
   1.204 -#------------------------------------------------------------------------------#
   1.205 -# gpgme
   1.206 -
   1.207 -EXTERNAL_GIT_REPOS += gpgme|git://git.gnupg.org/gpgme.git?gpgme-1.6.0
   1.208 -
   1.209 -gpgme/configure: gpgme.src.stamp gpgme/configure.ac 
   1.210 -	cd gpgme && ./autogen.sh 
   1.211 -
   1.212 -gpgme/Makefile: gpgme/configure
   1.213 -	cd gpgme && \
   1.214 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
   1.215 -			./configure \
   1.216 -				--enable-maintainer-mode \
   1.217 -				--with-gpg-error-prefix=$(PREFIX) \
   1.218 -				--with-libassuan-prefix=$(PREFIX) \
   1.219 -				--enable-fixed-path=$(PREFIX)/bin \
   1.220 -				--without-g13 \
   1.221 -				--disable-glibtest \
   1.222 -				--disable-gpg-test \
   1.223 -				--disable-gpgsm-test \
   1.224 -				--disable-gpgconf-test \
   1.225 -				--disable-parallel-test \
   1.226 -				--disable-g13-test \
   1.227 -				--prefix=$(PREFIX)
   1.228 -
   1.229 -
   1.230 -gpgme/src/.libs/libgpgme.so: gpgme/Makefile
   1.231 -	$(MAKE) -C gpgme
   1.232 -
   1.233 -$(PREFIX)/lib/libgpgme.so: gpgme/src/.libs/libgpgme.so
   1.234 -	$(MAKE) -C gpgme prefix=$(PREFIX) install
   1.235 -
   1.236 -gpgme-build: gpgme/src/.libs/libgpgme.so
   1.237 -
   1.238 -gpgme-install: $(PREFIX)/bin/gpg2 $(PREFIX)/lib/libgpgme.so
   1.239 -
   1.240 -#------------------------------------------------------------------------------#
   1.241 -# libetpan
   1.242 -
   1.243 -EXTERNAL_GIT_REPOS += libetpan|https://github.com/fdik/libetpan.git?HEAD
   1.244 -
   1.245 -libetpan/configure: libetpan.src.stamp
   1.246 -	cd libetpan && ./autogen.sh
   1.247 -
   1.248 -libetpan/Makefile: libetpan/configure
   1.249 -	cd libetpan && \
   1.250 -		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
   1.251 -			./configure \
   1.252 -				--prefix=$(PREFIX)
   1.253 -
   1.254 -libetpan/src/.libs/libetpan.so: libetpan/Makefile
   1.255 -	$(MAKE) -C libetpan
   1.256 -
   1.257 -$(PREFIX)/lib/libetpan.so: libetpan/src/.libs/libetpan.so
   1.258 -	$(MAKE) -C libetpan install
   1.259 -
   1.260 -libetpan-build: libetpan/src/.libs/libetpan.so
   1.261 -
   1.262 -libetpan-install: $(PREFIX)/lib/libetpan.so
   1.263 -
   1.264 -#------------------------------------------------------------------------------#
   1.265 -# Clone update and archive external projects GIT repos
   1.266 -# Local clone is in external/$project.git while 
   1.267 -# selected commit is archived in external/$project
   1.268 -
   1.269 -define per_repo_targets
   1.270 -$(1).git.stamp:
   1.271 -	git clone $(2) $(1).git
   1.272 -	touch $(1).git.stamp
   1.273 -
   1.274 -$(1).git_update: $(1).git.stamp
   1.275 -	cd $(1).git; git pull
   1.276 -	touch $(1).git.stamp
   1.277 -
   1.278 -$(1).src.stamp: $(1).git.stamp
   1.279 -	rm -rf $(1)
   1.280 -	mkdir $(1)
   1.281 -	(cd $(1).git; git archive --format=tar $(3)) | tar -C $(1) -x
   1.282 -	touch $(1).src.stamp
   1.283 -
   1.284 -$(1)-src: $(1).src.stamp
   1.285 -
   1.286 -$(1)-clean: 
   1.287 -	rm -rf $(1)
   1.288 -	rm -f $(1).src.stamp
   1.289 -
   1.290 -EXTERNAL_LOCAL_GITS += $(1).git.stamp
   1.291 -EXTERNAL_LOCAL_GITS_UPDATE += $(1).git_update
   1.292 -EXTERNAL_SRCS += $(1)-src
   1.293 -EXTERNAL_SRCS_CLEAN += $(1)-clean
   1.294 -endef
   1.295 -
   1.296 -define per_repo
   1.297 -$(call per_repo_targets,\
   1.298 -    $(1),\
   1.299 -    $(word 1,$(subst ?, ,$(2))),\
   1.300 -    $(word 2,$(subst ?, ,$(2))))
   1.301 -endef
   1.302 -
   1.303 -$(foreach repo, $(EXTERNAL_GIT_REPOS), $(eval $(call per_repo,\
   1.304 -    $(word 1,$(subst |, ,$(repo))),\
   1.305 -    $(word 2,$(subst |, ,$(repo))))))
   1.306 -
   1.307 -git_clones: $(EXTERNAL_LOCAL_GITS)
   1.308 -
   1.309 -git_update: $(EXTERNAL_LOCAL_GITS_UPDATE)
   1.310 -
   1.311 -#------------------------------------------------------------------------------#
   1.312 -# clean
   1.313 -
   1.314 -clean: $(EXTERNAL_SRCS_CLEAN) clean-install libetpan-cleanzip
   1.315 -
   1.316 -#------------------------------------------------------------------------------#
   1.317 -
   1.318 -.PHONY = clean clean-install libetpan-cleanzip\
   1.319 -	libgpg-error-build libgpg-error-install \
   1.320 -	libgcrypt-build libgcrypt-install \
   1.321 -	libassuan-build libassuan-install \
   1.322 -	libksba-build libksba-install \
   1.323 -	gnupg-build  gnupg-install\
   1.324 -	gpgme-build  gpgme-install\
   1.325 -	curl-build curl-install \
   1.326 -	clean-install \
   1.327 -    $(EXTERNAL_LOCAL_GITS_UPDATE) $(EXTERNAL_SRCS) $(EXTERNAL_SRCS_CLEAN) \
   1.328 -	showsetup
   1.329 -