You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

338 lines
11 KiB

  1. # GNU Guix --- Functional package management for GNU
  2. # Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
  3. # Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. #
  5. # This file is part of GNU Guix.
  6. #
  7. # GNU Guix is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # GNU Guix is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. bin_SCRIPTS = \
  20. guix-build \
  21. guix-download \
  22. guix-import \
  23. guix-package \
  24. guix-gc
  25. nodist_noinst_SCRIPTS = \
  26. pre-inst-env \
  27. test-env
  28. MODULES = \
  29. guix/base32.scm \
  30. guix/utils.scm \
  31. guix/derivations.scm \
  32. guix/download.scm \
  33. guix/gnu-maintenance.scm \
  34. guix/licenses.scm \
  35. guix/build-system.scm \
  36. guix/build-system/gnu.scm \
  37. guix/build-system/trivial.scm \
  38. guix/ftp-client.scm \
  39. guix/store.scm \
  40. guix/ui.scm \
  41. guix/build/download.scm \
  42. guix/build/gnu-build-system.scm \
  43. guix/build/utils.scm \
  44. guix/build/union.scm \
  45. guix/packages.scm \
  46. guix/snix.scm \
  47. guix.scm \
  48. gnu/packages.scm \
  49. gnu/packages/acl.scm \
  50. gnu/packages/algebra.scm \
  51. gnu/packages/aspell.scm \
  52. gnu/packages/attr.scm \
  53. gnu/packages/autotools.scm \
  54. gnu/packages/base.scm \
  55. gnu/packages/bash.scm \
  56. gnu/packages/bdb.scm \
  57. gnu/packages/bdw-gc.scm \
  58. gnu/packages/bison.scm \
  59. gnu/packages/bootstrap.scm \
  60. gnu/packages/cdrom.scm \
  61. gnu/packages/check.scm \
  62. gnu/packages/compression.scm \
  63. gnu/packages/cpio.scm \
  64. gnu/packages/curl.scm \
  65. gnu/packages/cyrus-sasl.scm \
  66. gnu/packages/dejagnu.scm \
  67. gnu/packages/ddrescue.scm \
  68. gnu/packages/ed.scm \
  69. gnu/packages/emacs.scm \
  70. gnu/packages/file.scm \
  71. gnu/packages/flex.scm \
  72. gnu/packages/fontutils.scm \
  73. gnu/packages/gawk.scm \
  74. gnu/packages/gdb.scm \
  75. gnu/packages/gdbm.scm \
  76. gnu/packages/gettext.scm \
  77. gnu/packages/ghostscript.scm \
  78. gnu/packages/glib.scm \
  79. gnu/packages/global.scm \
  80. gnu/packages/gnupg.scm \
  81. gnu/packages/gnutls.scm \
  82. gnu/packages/gperf.scm \
  83. gnu/packages/gprolog.scm \
  84. gnu/packages/groff.scm \
  85. gnu/packages/grub.scm \
  86. gnu/packages/gsasl.scm \
  87. gnu/packages/guile.scm \
  88. gnu/packages/help2man.scm \
  89. gnu/packages/icu4c.scm \
  90. gnu/packages/idutils.scm \
  91. gnu/packages/indent.scm \
  92. gnu/packages/irssi.scm \
  93. gnu/packages/ld-wrapper.scm \
  94. gnu/packages/less.scm \
  95. gnu/packages/libapr.scm \
  96. gnu/packages/libevent.scm \
  97. gnu/packages/libffi.scm \
  98. gnu/packages/libidn.scm \
  99. gnu/packages/libjpeg.scm \
  100. gnu/packages/libpng.scm \
  101. gnu/packages/libsigsegv.scm \
  102. gnu/packages/libtiff.scm \
  103. gnu/packages/libunistring.scm \
  104. gnu/packages/libusb.scm \
  105. gnu/packages/libunwind.scm \
  106. gnu/packages/linux.scm \
  107. gnu/packages/lout.scm \
  108. gnu/packages/lsh.scm \
  109. gnu/packages/m4.scm \
  110. gnu/packages/mailutils.scm \
  111. gnu/packages/make-bootstrap.scm \
  112. gnu/packages/mit-krb5.scm \
  113. gnu/packages/mp3.scm \
  114. gnu/packages/multiprecision.scm \
  115. gnu/packages/mysql.scm \
  116. gnu/packages/nano.scm \
  117. gnu/packages/ncurses.scm \
  118. gnu/packages/netpbm.scm \
  119. gnu/packages/nettle.scm \
  120. gnu/packages/ocaml.scm \
  121. gnu/packages/oggvorbis.scm \
  122. gnu/packages/openldap.scm \
  123. gnu/packages/openssl.scm \
  124. gnu/packages/parted.scm \
  125. gnu/packages/patchelf.scm \
  126. gnu/packages/pcre.scm \
  127. gnu/packages/pdf.scm \
  128. gnu/packages/perl.scm \
  129. gnu/packages/pkg-config.scm \
  130. gnu/packages/popt.scm \
  131. gnu/packages/pth.scm \
  132. gnu/packages/python.scm \
  133. gnu/packages/qemu.scm \
  134. gnu/packages/readline.scm \
  135. gnu/packages/recutils.scm \
  136. gnu/packages/rsync.scm \
  137. gnu/packages/samba.scm \
  138. gnu/packages/scheme.scm \
  139. gnu/packages/screen.scm \
  140. gnu/packages/shishi.scm \
  141. gnu/packages/smalltalk.scm \
  142. gnu/packages/sqlite.scm \
  143. gnu/packages/ssh.scm \
  144. gnu/packages/subversion.scm \
  145. gnu/packages/system.scm \
  146. gnu/packages/tcl.scm \
  147. gnu/packages/tcsh.scm \
  148. gnu/packages/texinfo.scm \
  149. gnu/packages/texlive.scm \
  150. gnu/packages/time.scm \
  151. gnu/packages/tmux.scm \
  152. gnu/packages/tor.scm \
  153. gnu/packages/vim.scm \
  154. gnu/packages/wdiff.scm \
  155. gnu/packages/wget.scm \
  156. gnu/packages/which.scm \
  157. gnu/packages/xml.scm \
  158. gnu/packages/zile.scm \
  159. gnu/packages/zip.scm
  160. GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
  161. nobase_dist_guilemodule_DATA = $(MODULES)
  162. patchdir = $(guilemoduledir)/gnu/packages/patches
  163. dist_patch_DATA = \
  164. gnu/packages/patches/automake-skip-amhello-tests.patch \
  165. gnu/packages/patches/bigloo-gc-shebangs.patch \
  166. gnu/packages/patches/binutils-ld-new-dtags.patch \
  167. gnu/packages/patches/cpio-gets-undeclared.patch \
  168. gnu/packages/patches/diffutils-gets-undeclared.patch \
  169. gnu/packages/patches/emacs-configure-sh.patch \
  170. gnu/packages/patches/findutils-absolute-paths.patch \
  171. gnu/packages/patches/flac-fix-memcmp-not-declared.patch \
  172. gnu/packages/patches/flex-bison-tests.patch \
  173. gnu/packages/patches/gawk-shell.patch \
  174. gnu/packages/patches/gettext-gets-undeclared.patch \
  175. gnu/packages/patches/glib-tests-desktop.patch \
  176. gnu/packages/patches/glib-tests-homedir.patch \
  177. gnu/packages/patches/glib-tests-timezone.patch \
  178. gnu/packages/patches/glibc-bootstrap-system.patch \
  179. gnu/packages/patches/glibc-no-ld-so-cache.patch \
  180. gnu/packages/patches/grub-gets-undeclared.patch \
  181. gnu/packages/patches/guile-1.8-cpp-4.5.patch \
  182. gnu/packages/patches/guile-default-utf8.patch \
  183. gnu/packages/patches/guile-linux-syscalls.patch \
  184. gnu/packages/patches/guile-relocatable.patch \
  185. gnu/packages/patches/libapr-skip-getservbyname-test.patch \
  186. gnu/packages/patches/libevent-dns-tests.patch \
  187. gnu/packages/patches/libtool-skip-tests.patch \
  188. gnu/packages/patches/lsh-guile-compat.patch \
  189. gnu/packages/patches/lsh-no-root-login.patch \
  190. gnu/packages/patches/lsh-pam-service-name.patch \
  191. gnu/packages/patches/m4-gets-undeclared.patch \
  192. gnu/packages/patches/m4-readlink-EINVAL.patch \
  193. gnu/packages/patches/m4-s_isdir.patch \
  194. gnu/packages/patches/make-impure-dirs.patch \
  195. gnu/packages/patches/mcron-install.patch \
  196. gnu/packages/patches/perl-no-sys-dirs.patch \
  197. gnu/packages/patches/procps-make-3.82.patch \
  198. gnu/packages/patches/qemu-multiple-smb-shares.patch \
  199. gnu/packages/patches/readline-link-ncurses.patch \
  200. gnu/packages/patches/shishi-gets-undeclared.patch \
  201. gnu/packages/patches/tar-gets-undeclared.patch \
  202. gnu/packages/patches/tcsh-fix-autotest.patch \
  203. gnu/packages/patches/teckit-cstdio.patch
  204. bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
  205. bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
  206. bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
  207. dist_bootstrap_x86_64_linux_DATA = \
  208. gnu/packages/bootstrap/x86_64-linux/bash \
  209. gnu/packages/bootstrap/x86_64-linux/mkdir \
  210. gnu/packages/bootstrap/x86_64-linux/tar \
  211. gnu/packages/bootstrap/x86_64-linux/xz
  212. dist_bootstrap_i686_linux_DATA = \
  213. gnu/packages/bootstrap/i686-linux/bash \
  214. gnu/packages/bootstrap/i686-linux/mkdir \
  215. gnu/packages/bootstrap/i686-linux/tar \
  216. gnu/packages/bootstrap/i686-linux/xz
  217. # Big bootstrap binaries are not included in the tarball. Instead, they
  218. # are downloaded.
  219. nodist_bootstrap_x86_64_linux_DATA = \
  220. gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
  221. nodist_bootstrap_i686_linux_DATA = \
  222. gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
  223. # Those files must remain executable, so they remain executable once
  224. # imported into the store.
  225. install-data-hook:
  226. chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
  227. DISTCLEANFILES = \
  228. $(nodist_bootstrap_x86_64_linux_DATA) \
  229. $(nodist_bootstrap_i686_linux_DATA)
  230. # Method to download a file from an external source.
  231. DOWNLOAD_FILE = \
  232. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  233. $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
  234. "$(top_srcdir)/build-aux/download.scm"
  235. gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
  236. $(MKDIR_P) `dirname "$@"`
  237. $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
  238. gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
  239. $(MKDIR_P) `dirname "$@"`
  240. $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
  241. nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
  242. TESTS = \
  243. tests/base32.scm \
  244. tests/builders.scm \
  245. tests/derivations.scm \
  246. tests/ui.scm \
  247. tests/utils.scm \
  248. tests/build-utils.scm \
  249. tests/packages.scm \
  250. tests/snix.scm \
  251. tests/store.scm \
  252. tests/union.scm \
  253. tests/guix-build.sh \
  254. tests/guix-download.sh \
  255. tests/guix-gc.sh \
  256. tests/guix-package.sh
  257. TEST_EXTENSIONS = .scm .sh
  258. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
  259. SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
  260. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  261. SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
  262. AM_SH_LOG_FLAGS = -x -e
  263. EXTRA_DIST = \
  264. HACKING \
  265. ROADMAP \
  266. TODO \
  267. .dir-locals.el \
  268. hydra.scm \
  269. build-aux/download.scm \
  270. srfi/srfi-64.scm \
  271. srfi/srfi-64.upstream.scm \
  272. tests/test.drv \
  273. build-aux/config.rpath \
  274. bootstrap \
  275. release.nix \
  276. $(TESTS)
  277. CLEANFILES = $(GOBJECTS) *.log
  278. # XXX: Use the C locale for when Guile lacks
  279. # <http://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=e2c6bf3866d1186c60bacfbd4fe5037087ee5e3f>.
  280. .scm.go:
  281. $(MKDIR_P) `dirname "$@"`
  282. LC_ALL=C \
  283. $(top_builddir)/pre-inst-env \
  284. $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
  285. -Wformat -Wunbound-variable -Warity-mismatch \
  286. --target="$(host)" \
  287. -o "$@" "$<"
  288. SUFFIXES = .go
  289. # Make sure source files are installed first, so that the mtime of
  290. # installed compiled files is greater than that of installed source
  291. # files. See
  292. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  293. # for details.
  294. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  295. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  296. SUBDIRS = po
  297. info_TEXINFOS = doc/guix.texi
  298. EXTRA_DIST += doc/fdl-1.3.texi
  299. if BUILD_DAEMON
  300. include daemon.am
  301. endif BUILD_DAEMON
  302. ACLOCAL_AMFLAGS = -I m4
  303. AM_DISTCHECK_CONFIGURE_FLAGS = \
  304. --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
  305. --with-nix-prefix="$(NIX_PREFIX)" \
  306. --enable-daemon