argp-standalone: add host-compile ability
This patch adds host-compile ability to argp-standalone for build hosts without glibc and argp lib, e.g. MacOS. iucode-tool/host can not be built on MacOS due to lack of argp. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
This commit is contained in:
		
				
					committed by
					
						
						Christian Lamparter
					
				
			
			
				
	
			
			
			
						parent
						
							d52bf5a424
						
					
				
				
					commit
					64d159cdad
				
			@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
PKG_NAME:=argp-standalone
 | 
					PKG_NAME:=argp-standalone
 | 
				
			||||||
PKG_VERSION:=1.3
 | 
					PKG_VERSION:=1.3
 | 
				
			||||||
PKG_RELEASE:=1
 | 
					PKG_RELEASE:=2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 | 
					PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 | 
				
			||||||
PKG_SOURCE_URL:=http://www.lysator.liu.se/~nisse/misc/
 | 
					PKG_SOURCE_URL:=http://www.lysator.liu.se/~nisse/misc/
 | 
				
			||||||
@@ -20,6 +20,7 @@ PKG_LICENSE:=LGPL-2.1
 | 
				
			|||||||
PKG_LICENSE:=Makefile.am
 | 
					PKG_LICENSE:=Makefile.am
 | 
				
			||||||
 | 
					
 | 
				
			||||||
include $(INCLUDE_DIR)/package.mk
 | 
					include $(INCLUDE_DIR)/package.mk
 | 
				
			||||||
 | 
					include $(INCLUDE_DIR)/host-build.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Package/argp-standalone
 | 
					define Package/argp-standalone
 | 
				
			||||||
  SECTION:=libs
 | 
					  SECTION:=libs
 | 
				
			||||||
@@ -45,4 +46,14 @@ define Build/InstallDev
 | 
				
			|||||||
		$(1)/usr/lib/
 | 
							$(1)/usr/lib/
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define Host/Install
 | 
				
			||||||
 | 
						$(INSTALL_DIR) $(1)/include
 | 
				
			||||||
 | 
						$(CP)   $(HOST_BUILD_DIR)/argp.h \
 | 
				
			||||||
 | 
							$(1)/include/
 | 
				
			||||||
 | 
						$(INSTALL_DIR) $(1)/lib
 | 
				
			||||||
 | 
						$(CP)   $(HOST_BUILD_DIR)/libargp.a \
 | 
				
			||||||
 | 
							$(1)/lib/
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(eval $(call BuildPackage,argp-standalone))
 | 
					$(eval $(call BuildPackage,argp-standalone))
 | 
				
			||||||
 | 
					$(eval $(call HostBuild))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user