Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37560639
en ru br
ALT Linux repositórios
S:3.3.0-alt3
3.0: 2.7-alt3

Group :: Sistema/Bibliotecas
RPM: libcdf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libcdf-autotools.patch
Download


From 60cda2b0310c3c583d6cb97de2b39d68a10a2f38 Mon Sep 17 00:00:00 2001
From: Vitaly Lipatov <lav@etersoft.ru>
Date: Thu, 28 Oct 2010 01:26:01 +0400
Subject: [PATCH] add autotools build
---
 libcdf/Makefile.am             |    2 ++
 libcdf/configure.ac            |   38 ++++++++++++++++++++++++++++++++++++++
 libcdf/src/Makefile.am         |    2 ++
 libcdf/src/help/Makefile.am    |    8 ++++++++
 libcdf/src/include/Makefile.am |    1 +
 libcdf/src/lib/Makefile.am     |   36 ++++++++++++++++++++++++++++++++++++
 libcdf/src/tools/Makefile.am   |   25 +++++++++++++++++++++++++
 7 files changed, 112 insertions(+), 0 deletions(-)
 create mode 100644 libcdf/Makefile.am
 create mode 100644 libcdf/configure.ac
 create mode 100644 libcdf/src/Makefile.am
 create mode 100644 libcdf/src/help/Makefile.am
 create mode 100644 libcdf/src/include/Makefile.am
 create mode 100644 libcdf/src/lib/Makefile.am
 create mode 100644 libcdf/src/tools/Makefile.am
diff --git a/libcdf/Makefile.am b/libcdf/Makefile.am
new file mode 100644
index 0000000..f268924
--- /dev/null
+++ b/libcdf/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = src
+
diff --git a/libcdf/configure.ac b/libcdf/configure.ac
new file mode 100644
index 0000000..60d1d85
--- /dev/null
+++ b/libcdf/configure.ac
@@ -0,0 +1,38 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_INIT()
+
+AC_CANONICAL_TARGET
+
+AM_INIT_AUTOMAKE(libcdf, 3.5.3)
+
+AM_CONFIG_HEADER(config.h)
+
+
+AC_PROG_INSTALL
+AC_PROG_CC
+AM_PROG_CC_C_O
+AM_PROG_LIBTOOL
+
+AC_HEADER_STDC
+
+CFLAGS="${CFLAGS} -Wall"
+CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DMALLOC_CHECK_=0"
+
+NCURSES_CFLAGS=$(ncurses5-config --cflags)
+NCURSES_LIBS=$(ncurses5-config --libs)
+AC_SUBST(NCURSES_CFLAGS)
+AC_SUBST(NCURSES_LIBS)
+
+AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
+AC_SUBST(LDFLAGS)
+
+AC_OUTPUT([
+	Makefile
+	src/Makefile
+	src/include/Makefile
+	src/lib/Makefile
+	src/tools/Makefile
+	src/help/Makefile
+])
diff --git a/libcdf/src/Makefile.am b/libcdf/src/Makefile.am
new file mode 100644
index 0000000..7584eee
--- /dev/null
+++ b/libcdf/src/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = include lib tools help
+
diff --git a/libcdf/src/help/Makefile.am b/libcdf/src/help/Makefile.am
new file mode 100644
index 0000000..26d3a33
--- /dev/null
+++ b/libcdf/src/help/Makefile.am
@@ -0,0 +1,8 @@
+pkgdatadir = $(datadir)/cdf/help
+
+pkgdata_DATA = cdf2sktj.olh cdf2skt.olh cdfbrow.ilh \
+	cdfcmpj.olh cdfcmp.olh cdfcvtj.olh cdfcvt.olh \
+	cdfdirj.olh cdfdumpj.olh cdfdump.olh cdfedit.ilh \
+	cdfeditj.olh cdfedit.olh cdfinqj.olh cdfinq.olh \
+	cdfirsdumpj.olh cdfirsdump.olh cdfmergej.olh cdfmerge.olh \
+	cdfstatj.olh cdfstats.olh cdfxp.ilh skt2cdfj.olh skt2cdf.olh
diff --git a/libcdf/src/include/Makefile.am b/libcdf/src/include/Makefile.am
new file mode 100644
index 0000000..7f4ca0b
--- /dev/null
+++ b/libcdf/src/include/Makefile.am
@@ -0,0 +1 @@
+include_HEADERS = cdf.h
diff --git a/libcdf/src/lib/Makefile.am b/libcdf/src/lib/Makefile.am
new file mode 100644
index 0000000..99ffce0
--- /dev/null
+++ b/libcdf/src/lib/Makefile.am
@@ -0,0 +1,36 @@
+lib_LTLIBRARIES = libcdf.la
+
+# Versioning rules ( C:R:A )
+#
+# 1. Start with version 0:0:0.
+# 2. If any of the sources have changed, increment R. This is a new revision
+#    of the current interface.
+# 3. If the interface has changed, increment C and set R to 0. This is the
+#    first revision of a new interface.
+# 4. If the new interface is a superset of the previous interface
+#    (that is, if the previous interface has not been broken by the
+#    changes in this new release), increment A. This release is backwards
+#    compatible with the previous release.
+# 5. If the new interface has removed elements with respect to the
+#    previous interface, then backward compatibility is broken; set A to 0.
+#    This release has a new, but backwards incompatible interface.
+#
+# For more info see section 6.3 of the GNU Libtool Manual.
+
+VERINFO = -version-info 0:0:0
+
+libcdf_la_CFLAGS = -I$(top_srcdir)/src/include @CFLAGS@
+
+libcdf_la_LDFLAGS = $(VERINFO) -no-undefined @LDFLAGS@
+
+libcdf_la_LIBADD = -lm
+
+libcdf_la_SOURCES = cdflib.c cdfcre.c cdfope.c cdfclo.c cdfdel.c cdfsel.c cdfcon.c \
+	cdfget.c cdfmisc2.c cdfread.c cdfwrite.c cdfhyper.c epochuf.c dirutils.c \
+	cdfput1.c cdfput2.c cdfcsi.c cdffsi.c cdffii.c cdftext.c cdfed.c \
+	cdfstr.c cdfvalid.c cdfvalidator.c cdfvalidator64.c cdfmem.c vstream.c epochu.c cdfmisc3.c cdfhuff.c \
+	cdfrle.c cdfmisc1.c cdfalloc.c cdfgzip.c cdfalloc64.c cdfdel64.c cdfmisc2_64.c \
+	cdfread64.c cdfclo64.c cdfget64.c cdfmisc3_64.c cdfsel64.c cdfcon64.c \
+	cdfput1_64.c cdfwrite64.c cdfcre64.c cdfmisc1_64.c cdfput2_64.c vstream64.c \
+	cdfhyper64.c cdfrle64.c cdfhuff64.c cdfgzip64.c cdffsi2.c cdffsi3.c cdfcks.c \
+	cdfmd5.c cdfsav.c
diff --git a/libcdf/src/tools/Makefile.am b/libcdf/src/tools/Makefile.am
new file mode 100644
index 0000000..b3758d5
--- /dev/null
+++ b/libcdf/src/tools/Makefile.am
@@ -0,0 +1,25 @@
+bin_PROGRAMS = cdfcvt cdfstats cdfcmp cdf2skt skt2cdf cdfinq cdfdump cdfirsdump cdfmerge \
+	cdfxp cdfedit 
+
+cdfcvt_SOURCES = cdfcvt.c toolbox1.c toolbox3.c
+cdfstats_SOURCES = cdfstats.c cdfstat1.c cdfstat2.c toolbox1.c toolbox3.c
+cdfcmp_SOURCES = cdfcmp.c toolbox1.c toolbox3.c
+cdf2skt_SOURCES = cdf2skt.c toolbox1.c toolbox3.c
+skt2cdf_SOURCES = skt2cdf.c toolbox1.c toolbox3.c
+cdfinq_SOURCES = cdfinq.c toolbox1.c toolbox3.c
+cdfdump_SOURCES = cdfdump.c toolbox1.c toolbox3.c
+cdfirsdump_SOURCES = cdfirsdump.c toolbox1.c toolbox3.c
+cdfmerge_SOURCES = cdfmerge.c toolbox1.c toolbox3.c
+
+cdfxp_SOURCES = cdfxp.c cdfxp1.c cdfxp2.c windoz.c widgets.c toolbox1.c toolbox3.c
+cdfxp_CFLAGS = @NCURSES_CFLAGS@
+cdfxp_LDADD = @NCURSES_LIBS@ ../lib/libcdf.la
+
+cdfedit_SOURCES = cdfedit.c cdfedit1.c cdfedit2.c cdfedit3.c windoz.c widgets.c toolbox1.c toolbox3.c
+cdfedit_CFLAGS = @NCURSES_CFLAGS@
+cdfedit_LDADD = @NCURSES_LIBS@ ../lib/libcdf.la
+
+CFLAGS = -I$(top_srcdir)/src/include @CFLAGS@
+
+LDADD = ../lib/libcdf.la
+
-- 
1.7.3.1
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009