openwrt: adapt repository structure to simplify build environment setup
This commit is contained in:
parent
bf0c4948df
commit
93582b14fe
1486 changed files with 42 additions and 20 deletions
58
openwrt/package/expat/Makefile
Normal file
58
openwrt/package/expat/Makefile
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
#
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
# $Id: Makefile 9947 2007-12-27 02:12:04Z nbd $
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=expat
|
||||
PKG_VERSION:=1.95.8
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_MD5SUM:=aff487543845a82fe262e6e2922b4c8e
|
||||
PKG_SOURCE_URL:=@SF/expat
|
||||
|
||||
PKG_FIXUP = libtool
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
define Package/libexpat
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
TITLE:=An XML parsing library
|
||||
URL:=http://expat.sourceforge.net/
|
||||
endef
|
||||
|
||||
define Package/libexpat/description
|
||||
A fast, non-validating, stream-oriented XML parsing library.
|
||||
endef
|
||||
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-shared \
|
||||
--enable-static
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" install
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
mkdir -p $(1)/usr/include
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/expat{,_external}.h $(1)/usr/include/
|
||||
mkdir -p $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.{a,so*} $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libexpat/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libexpat.so.* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
|
||||
$(eval $(call BuildPackage,libexpat))
|
||||
|
||||
45
openwrt/package/expat/patches/001-destdir.patch
Normal file
45
openwrt/package/expat/patches/001-destdir.patch
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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-1/Makefile.in 2005-04-04 22:53:09.000000000 +0200
|
||||
@@ -34,6 +34,8 @@
|
||||
|
||||
top_builddir = .
|
||||
|
||||
+DESTDIR =
|
||||
+
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
@@ -73,22 +75,22 @@
|
||||
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
|
||||
- rm -f $(man1dir)/xmlwf.1
|
||||
+ $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(bindir)/xmlwf
|
||||
+ rm -f $(DESTDIR)$(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:
|
||||
21
openwrt/package/expat/patches/110-avr32_compile_fix.patch
Normal file
21
openwrt/package/expat/patches/110-avr32_compile_fix.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
diff -urN expat-1.95.8.orig/conftools/config.sub expat-1.95.8/conftools/config.sub
|
||||
--- expat-1.95.8.orig/conftools/config.sub 2002-06-02 00:29:30.000000000 +0200
|
||||
+++ expat-1.95.8/conftools/config.sub 2008-04-14 18:27:28.000000000 +0200
|
||||
@@ -251,7 +251,7 @@
|
||||
| a29k \
|
||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
|
||||
| c4x | clipper \
|
||||
| d10v | d30v | dsp16xx \
|
||||
| fr30 \
|
||||
@@ -305,7 +305,7 @@
|
||||
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||
| arm-* | armbe-* | armle-* | armv*-* \
|
||||
- | avr-* \
|
||||
+ | avr-* | avr32-* \
|
||||
| bs2000-* \
|
||||
| c[123]* | c30-* | [cjt]90-* | c54x-* \
|
||||
| clipper-* | cydra-* \
|
||||
Loading…
Add table
Add a link
Reference in a new issue