summaryrefslogtreecommitdiff
path: root/package/expat
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/expat
Initial import
Diffstat (limited to 'package/expat')
-rw-r--r--package/expat/Config.in14
-rw-r--r--package/expat/Makefile27
-rw-r--r--package/expat/ipkg/libexpat.control4
-rw-r--r--package/expat/patches/001-destdir.patch44
4 files changed, 89 insertions, 0 deletions
diff --git a/package/expat/Config.in b/package/expat/Config.in
new file mode 100644
index 000000000..861777a94
--- /dev/null
+++ b/package/expat/Config.in
@@ -0,0 +1,14 @@
+config ADK_COMPILE_EXPAT
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBEXPAT
+
+config ADK_PACKAGE_LIBEXPAT
+ prompt "libexpat.......................... A fast, non-validating, stream-oriented XML parsing library"
+ tristate
+ default n
+ select ADK_COMPILE_EXPAT
+ help
+ A fast, non-validating, stream-oriented XML parsing library
+
+ http://expat.sourceforge.net/
diff --git a/package/expat/Makefile b/package/expat/Makefile
new file mode 100644
index 000000000..bebaaa6f2
--- /dev/null
+++ b/package/expat/Makefile
@@ -0,0 +1,27 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= expat
+PKG_VERSION:= 1.95.8
+PKG_RELEASE:= 1
+PKG_MD5SUM:= aff487543845a82fe262e6e2922b4c8e
+
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=expat/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBEXPAT,libexpat,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBEXPAT}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libexpat.so.* ${IDIR_LIBEXPAT}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/expat/ipkg/libexpat.control b/package/expat/ipkg/libexpat.control
new file mode 100644
index 000000000..9fe78fa63
--- /dev/null
+++ b/package/expat/ipkg/libexpat.control
@@ -0,0 +1,4 @@
+Package: libexpat
+Priority: optional
+Section: net
+Description: a fast, non-validating, stream-oriented XML parsing library
diff --git a/package/expat/patches/001-destdir.patch b/package/expat/patches/001-destdir.patch
new file mode 100644
index 000000000..0116f97f2
--- /dev/null
+++ b/package/expat/patches/001-destdir.patch
@@ -0,0 +1,44 @@
+diff -ruN expat-1.95.8-orig/Makefile.in expat-1.95.8-1/Makefile.in
+--- expat-1.95.8.orig/Makefile.in 2004-05-07 22:00:48.000000000 +0200
++++ expat-1.95.8/Makefile.in 2009-05-09 13:40:57.000000000 +0200
+@@ -34,6 +34,8 @@ man1dir = @mandir@/man1
+
+ top_builddir = .
+
++DESTDIR =
++
+
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -73,22 +75,22 @@ check: tests/runtests
+ tests/runtests
+
+ install: xmlwf/xmlwf installlib
+- $(mkinstalldirs) $(bindir) $(man1dir)
+- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(bindir)/xmlwf
+- $(INSTALL_DATA) $(MANFILE) $(man1dir)
++ $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
++ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) xmlwf/xmlwf $(DESTDIR)$(bindir)/xmlwf
++ $(INSTALL_DATA) $(MANFILE) $(DESTDIR)$(man1dir)
+
+ installlib: $(LIBRARY) $(APIHEADER)
+- $(mkinstalldirs) $(libdir) $(includedir)
+- $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
+- $(INSTALL_DATA) $(APIHEADER) $(includedir)
++ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
++ $(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(DESTDIR)$(libdir)/$(LIBRARY)
++ $(INSTALL_DATA) $(APIHEADER) $(DESTDIR)$(includedir)
+
+ uninstall: uninstalllib
+- $(LIBTOOL) --mode=uninstall rm -f $(bindir)/xmlwf
++ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bindir)/xmlwf
+ rm -f $(man1dir)/xmlwf.1
+
+ uninstalllib:
+- $(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY)
+- rm -f $(includedir)/$(APIHEADER)
++ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(LIBRARY)
++ rm -f $(DESTDIR)$(includedir)/$(APIHEADER)
+
+ # for VPATH builds (invoked by configure)
+ mkdir-init: