OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # |
| 2 | # Copyright (C) 2008 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=gc |
| 11 | PKG_VERSION:=7.2alpha4 |
| 12 | |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 14 | PKG_SOURCE_URL:=http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ |
| 15 | PKG_MD5SUM:=0a6785ebb61c6e2b50c3952c3bbf9ea1 |
| 16 | |
| 17 | PKG_INSTALL:=1 |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define Package/gc |
| 22 | TITLE:=gc |
| 23 | SECTION:=libs |
| 24 | CATEGORY:=Libraries |
| 25 | URL:=http://www.hpl.hp.com/personal/Hans_Boehm/gc/ |
| 26 | endef |
| 27 | |
| 28 | define Package/gc/description |
| 29 | garbage collector can be used as a garbage collecting replacement for C malloc or C++ new |
| 30 | endef |
| 31 | |
| 32 | TARGET_CFLAGS+="-I./include" |
| 33 | |
| 34 | TARGET_LDFLAGS+=-lpthread |
| 35 | |
| 36 | define Build/Configure |
| 37 | $(call Build/Configure/Default, \ |
| 38 | --disable-gcj-support \ |
| 39 | --disable-java-finalization \ |
| 40 | --disable-atomic-uncollectible \ |
| 41 | ) |
| 42 | endef |
| 43 | |
| 44 | define Build/InstallDev |
| 45 | $(INSTALL_DIR) \ |
| 46 | $(1)/usr/include \ |
| 47 | $(1)/usr/lib \ |
| 48 | $(1)/usr/lib/pkgconfig |
| 49 | $(CP) \ |
| 50 | $(PKG_INSTALL_DIR)/usr/lib/* \ |
| 51 | $(1)/usr/lib/ |
| 52 | $(CP) \ |
| 53 | $(PKG_INSTALL_DIR)/usr/include/* \ |
| 54 | $(1)/usr/include/ |
| 55 | $(CP) \ |
| 56 | $(PKG_INSTALL_DIR)/usr/lib/pkgconfig \ |
| 57 | $(1)/usr/lib/ |
| 58 | endef |
| 59 | |
| 60 | define Package/gc/install |
| 61 | $(INSTALL_DIR) \ |
| 62 | $(1)/usr/lib |
| 63 | $(CP) \ |
| 64 | $(PKG_INSTALL_DIR)/usr/lib/lib{cord,gc}.so* \ |
| 65 | $(1)/usr/lib/ |
| 66 | endef |
| 67 | |
| 68 | $(eval $(call BuildPackage,gc)) |
| 69 |
