Makefile (1316B)
1 # 2 # Copyright (C) 2009-2010 OpenWrt.org 3 # Copyright (C) 2009 Jakob Pfeiffer 4 # 5 # This is free software, licensed under the GNU General Public License v2. 6 # See /LICENSE for more information. 7 # 8 9 include $(TOPDIR)/rules.mk 10 11 PKG_NAME:=c-ares 12 PKG_VERSION:=1.11.0 13 PKG_RELEASE:=1 14 PKG_LICENSE:=MIT 15 16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 17 PKG_SOURCE_URL:=http://c-ares.haxx.se/download 18 PKG_MD5SUM:=d5c6d522cfc54bb6f215a0b7912d46be 19 20 PKG_FIXUP:=autoreconf 21 PKG_INSTALL:=1 22 23 include $(INCLUDE_DIR)/package.mk 24 25 TARGET_CPPFLAGS += $(filter -D%,$(TARGET_CFLAGS)) 26 TARGET_CFLAGS := $(filter-out -D%,$(TARGET_CFLAGS)) 27 28 define Package/libcares 29 SECTION:=libs 30 CATEGORY:=Libraries 31 TITLE:=Library for asyncronous DNS Requests (including name resolves) 32 URL:=http://c-ares.haxx.se/ 33 MAINTAINER:=Karl Palsson <karlp@remake.is> 34 endef 35 36 define Package/libcares/description 37 c-ares is a C library for asynchronous DNS requests (including name resolves) 38 39 C89 compatibility, MIT licensed, builds for and runs on POSIX, Windows, 40 Netware, Android and many more operating systems. 41 42 endef 43 44 define Package/libcares/install 45 $(INSTALL_DIR) $(1)/usr/lib 46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/ 47 endef 48 49 define Build/InstallDev 50 $(INSTALL_DIR) $(1) 51 $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 52 endef 53 54 $(eval $(call BuildPackage,libcares))