mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
libhttp-parser: fix build error on macos
Maintainer: @ageekymonk, me Compile tested: head r10622-e09da01,ath79,arm_cortex-a9+vfpv3,mipsel Run tested: mipsel Description: fix build error on macos https://github.com/openwrt/packages/issues/9587 Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=libhttp-parser
|
||||
PKG_VERSION:=2.9.2
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/nodejs/http-parser/tar.gz/v$(PKG_VERSION)?
|
||||
@@ -41,18 +41,19 @@ define Package/libhttp-parser/description
|
||||
(in a web server that is per connection).
|
||||
endef
|
||||
|
||||
MAKE_FLAGS+=library
|
||||
MAKE_FLAGS+=library \
|
||||
PREFIX=/usr
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/include
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/local/include/http_parser.h $(1)/usr/include/
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/http_parser.h $(1)/usr/include/
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libhttp_parser.so* $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttp_parser.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/libhttp-parser/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/local/lib/libhttp_parser.so* $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttp_parser.so* $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,libhttp-parser))
|
||||
|
||||
Reference in New Issue
Block a user