OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 1 | # Copyright (C) 2008 OpenWrt.org |
| 2 | # |
| 3 | # This is free software, licensed under the GNU General Public License v2. |
| 4 | # |
| 5 | |
| 6 | include $(TOPDIR)/rules.mk |
| 7 | |
| 8 | PKG_NAME:=libncurses-dev |
| 9 | PKG_VERSION:=5.7 |
| 10 | PKG_RELEASE:=1 |
| 11 | |
| 12 | NCURSES_BUILD_DIR:=$(BUILD_DIR)/ncurses-$(PKG_VERSION) |
| 13 | |
| 14 | include $(INCLUDE_DIR)/package.mk |
| 15 | |
| 16 | define Package/libncurses-dev |
| 17 | TITLE:=Files required to develop with ncurses |
| 18 | SECTION:=development |
| 19 | CATEGORY:=Development |
| 20 | URL:=http://www.gnu.org/software/ncurses/ncurses.html |
| 21 | DEPENDS:=+libncurses |
| 22 | endef |
| 23 | |
| 24 | define Package/libncurses-dev/description |
| 25 | Header files needed to compile ncurses programs along with man pages for the API |
| 26 | endef |
| 27 | |
| 28 | # There is nothing to compile: |
| 29 | define Build/Compile |
| 30 | endef |
| 31 | |
| 32 | define Package/libncurses-dev/install |
| 33 | $(INSTALL_DIR) \ |
| 34 | $(1)/usr/include \ |
| 35 | $(1)/usr/share/man/man3 |
| 36 | |
| 37 | $(INSTALL_DATA) \ |
| 38 | $(NCURSES_BUILD_DIR)/include/*.h \ |
| 39 | $(1)/usr/include |
| 40 | |
| 41 | $(INSTALL_DATA) \ |
| 42 | $(NCURSES_BUILD_DIR)/man/*.3x \ |
| 43 | $(1)/usr/share/man/man3 |
| 44 | |
| 45 | rename "s/\\.3x/.3/" $(1)/usr/share/man/man3/*.3x |
| 46 | endef |
| 47 | |
| 48 | $(eval $(call BuildPackage,libncurses-dev)) |
| 49 |
