summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-19 01:57:19 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-19 01:57:19 +0100
commit19d6e2179bcf9b2747ddf61eda6a55861de242b5 (patch)
treea772a836267c2635c4f98d7af2dff63a0b6cefd5
parent530ba72be38719c9857afecea9e77fe1c5df3137 (diff)
downloadxine-lib-19d6e2179bcf9b2747ddf61eda6a55861de242b5.tar.gz
xine-lib-19d6e2179bcf9b2747ddf61eda6a55861de242b5.tar.bz2
Don't change the whole xine.h.in into xine.h, just split out the version information in xine/version.h.
--HG-- rename : include/xine.h.in => include/xine.h
-rw-r--r--.hgignore2
-rw-r--r--configure.ac3
-rw-r--r--include/Makefile.am13
-rw-r--r--include/xine.h (renamed from include/xine.h.in)7
-rw-r--r--include/xine/Makefile.am4
-rw-r--r--include/xine/version.h.in25
6 files changed, 36 insertions, 18 deletions
diff --git a/.hgignore b/.hgignore
index fc33e55c8..38db51c92 100644
--- a/.hgignore
+++ b/.hgignore
@@ -65,7 +65,7 @@ doc/hackersguide/*.png
doc/hackersguide/hackersguide.html
doc/Doxyfile
-include/xine.h
+include/xine/version.h
misc/SlackBuild
misc/build_rpms.sh
diff --git a/configure.ac b/configure.ac
index 9c6c52302..5b067077f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1152,7 +1152,8 @@ contrib/nosefart/Makefile
contrib/vidix/Makefile
contrib/vidix/drivers/Makefile
include/Makefile
-include/xine.h
+include/xine/Makefile
+include/xine/version.h
lib/Makefile
m4/Makefile
m4/gettext/Makefile
diff --git a/include/Makefile.am b/include/Makefile.am
index 673f508fa..2b5a7eeb2 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,4 +1,5 @@
-EXTRA_DIST = xine.h.in
+SUBDIRS = xine
+#EXTRA_DIST = xine.h.in
if GENERATED_INTTYPES_H
inttypes_h = inttypes.h
@@ -8,15 +9,7 @@ include_HEADERS = xine.h
noinst_HEADERS = config.h configure.h
-CONFIG_CLEAN_FILES = xine.h $(inttypes_h)
-
-mostlyclean-generic:
- -rm -f *~ \#* .*~ .\#*
-
-maintainer-clean-generic:
- -@echo "This command is intended for maintainers to use;"
- -@echo "it deletes files that may require special tools to rebuild."
- -rm -f Makefile.in configure.h.in
+CONFIG_CLEAN_FILES = $(inttypes_h)
install-data-local: install-includeHEADERS
sed -e '/^\/\*_x_/d' xine.h > $(DESTDIR)$(includedir)/xine.h
diff --git a/include/xine.h.in b/include/xine.h
index 5a06eab65..4eaccf96c 100644
--- a/include/xine.h.in
+++ b/include/xine.h
@@ -62,6 +62,7 @@ extern "C" {
#include <xine/os_types.h>
#include <xine/attributes.h>
#endif
+#include <xine/version.h>
/* This enables some experimental features. These are not part of the
* official libxine API, so use them only, if you absolutely need them.
@@ -103,12 +104,6 @@ void xine_get_version (int *major, int *minor, int *sub) XINE_PROTECTED;
return 1 if compatible, 0 otherwise */
int xine_check_version (int major, int minor, int sub) XINE_PROTECTED;
-/* static info - which libxine release this header came from */
-#define XINE_MAJOR_VERSION @XINE_MAJOR@
-#define XINE_MINOR_VERSION @XINE_MINOR@
-#define XINE_SUB_VERSION @XINE_SUB@
-#define XINE_VERSION "@VERSION@"
-
/*
* pre-init the xine engine
*
diff --git a/include/xine/Makefile.am b/include/xine/Makefile.am
new file mode 100644
index 000000000..f143d83c4
--- /dev/null
+++ b/include/xine/Makefile.am
@@ -0,0 +1,4 @@
+EXTRA_DIST = version.h.in
+
+xineincludedir = $(includedir)/xine
+xineinclude_HEADERS = version.h
diff --git a/include/xine/version.h.in b/include/xine/version.h.in
new file mode 100644
index 000000000..75072708d
--- /dev/null
+++ b/include/xine/version.h.in
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2007 the xine project
+ *
+ * This file is part of xine, a free video player.
+ *
+ * xine is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * xine is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
+ */
+
+/* static info - which libxine release this header came from */
+#define XINE_MAJOR_VERSION @XINE_MAJOR@
+#define XINE_MINOR_VERSION @XINE_MINOR@
+#define XINE_SUB_VERSION @XINE_SUB@
+#define XINE_VERSION "@VERSION@"