1 |
mgorny 11/01/04 23:19:48 |
2 |
|
3 |
Added: 0001-Add-autotools-files.patch |
4 |
Log: |
5 |
Importing zpaq archiver from Sunrise as per bug #278021. The ebuild was updated to install latest libzpaq & zpaq. It also patches in an autotools-based build system to avoid build difficulties. |
6 |
|
7 |
(Portage version: 2.2.0_alpha12_p8/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-arch/zpaq/files/0001-Add-autotools-files.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq/files/0001-Add-autotools-files.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/zpaq/files/0001-Add-autotools-files.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 0001-Add-autotools-files.patch |
16 |
=================================================================== |
17 |
From 518123ca0f682ec617c2bab16bdb953380b5352c Mon Sep 17 00:00:00 2001 |
18 |
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
19 |
Date: Tue, 4 Jan 2011 21:04:53 +0100 |
20 |
Subject: [PATCH] Add autotools files. |
21 |
|
22 |
--- |
23 |
Makefile.am | 22 ++++++++++++++++++++++ |
24 |
configure.ac | 28 ++++++++++++++++++++++++++++ |
25 |
2 files changed, 50 insertions(+), 0 deletions(-) |
26 |
create mode 100644 Makefile.am |
27 |
create mode 100644 configure.ac |
28 |
|
29 |
diff --git a/Makefile.am b/Makefile.am |
30 |
new file mode 100644 |
31 |
index 0000000..3c71e01 |
32 |
--- /dev/null |
33 |
+++ b/Makefile.am |
34 |
@@ -0,0 +1,22 @@ |
35 |
+bin_PROGRAMS = zpaq |
36 |
+lib_LIBRARIES = libzpaq.a libzpaqstub.a |
37 |
+include_HEADERS = libzpaq.h |
38 |
+ |
39 |
+if HAVE_POD2MAN |
40 |
+man1_MANS = zpaq.1 |
41 |
+ |
42 |
+zpaq.1: zpaq.1.pod |
43 |
+ $(POD2MAN) $< > $@ |
44 |
+endif |
45 |
+ |
46 |
+libzpaq_a_SOURCES = libzpaq.cpp libzpaqo.cpp libzpaq.h |
47 |
+libzpaqstub_a_SOURCES = libzpaq.cpp zpaq.cpp libzpaq.h |
48 |
+ |
49 |
+zpaq_SOURCES = zpaq.cpp libzpaq.h |
50 |
+zpaq_LDADD = libzpaq.a |
51 |
+zpaq_CPPFLAGS = $(AM_CPPFLAGS) -DOPT='"$(CXX) $(CXXFLAGS) zpaqopt.cpp $(LDFLAGS) @RUNTIME_LDFLAGS@ -o zpaqopt.exe -lzpaqstub"' |
52 |
+ |
53 |
+AM_CPPFLAGS = -DNDEBUG |
54 |
+ |
55 |
+MOSTLYCLEANFILES = zpaq.1 |
56 |
+EXTRA_DIST = zpaq.1.pod libzpaq.txt |
57 |
diff --git a/configure.ac b/configure.ac |
58 |
new file mode 100644 |
59 |
index 0000000..d3565e2 |
60 |
--- /dev/null |
61 |
+++ b/configure.ac |
62 |
@@ -0,0 +1,28 @@ |
63 |
+AC_PREREQ([2.60]) |
64 |
+AC_INIT([zpaq], [2.04]) |
65 |
+AC_CONFIG_AUX_DIR([build-aux]) |
66 |
+AM_INIT_AUTOMAKE([1.6 foreign no-dependencies]) |
67 |
+ |
68 |
+AC_LANG([C++]) |
69 |
+AC_PROG_CXX |
70 |
+AC_PROG_RANLIB |
71 |
+ |
72 |
+runtime_LDFLAGS='-Wl,--strip-all' |
73 |
+AC_MSG_CHECKING([whether the linker supports $runtime_LDFLAGS]) |
74 |
+save_LDFLAGS=$LDFLAGS |
75 |
+LDFLAGS="$LDFLAGS $runtime_LDFLAGS" |
76 |
+AC_LINK_IFELSE( |
77 |
+ [AC_LANG_PROGRAM([], [])], |
78 |
+ [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) |
79 |
+runtime_LDFLAGS=]) |
80 |
+LDFLAGS=$save_LDFLAGS |
81 |
+AC_SUBST([RUNTIME_LDFLAGS], [$runtime_LDFLAGS]) |
82 |
+ |
83 |
+AC_CHECK_PROG([POD2MAN], [pod2man], [pod2man]) |
84 |
+AM_CONDITIONAL([HAVE_POD2MAN], [test x"$POD2MAN" != x""]) |
85 |
+AS_IF([test "x$POD2MAN" = x], [ |
86 |
+ AC_MSG_WARN([Unable to find pod2man, manpage will not be generated]) |
87 |
+]) |
88 |
+ |
89 |
+AC_CONFIG_FILES([Makefile]) |
90 |
+AC_OUTPUT |
91 |
-- |
92 |
1.7.3.4 |