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.
 
 
 
 
 
 

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