You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2010-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=glpk
  9. PKG_VERSION:=4.62
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_HASH:=096e4be3f83878ccf70e1fdb62ad1c178715ef8c0d244254c29e2f9f0c1afa70
  14. PKG_MD5SUM:=ad4f681463db1b78ad88b956b736fa25
  15. PKG_LICENSE:=GPL-3.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libglpk
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=The GNU Linear Programming Kit
  24. URL:=http://www.gnu.org/software/glpk/
  25. endef
  26. define Package/libglpk/description
  27. The GLPK (GNU Linear Programming Kit) package is intended for solving
  28. large-scale linear programming (LP), mixed integer programming (MIP),
  29. and other related problems. It is a set of routines written in ANSI C
  30. and organized in the form of a callable library.
  31. endef
  32. define Package/glpsol
  33. SECTION:=libs
  34. CATEGORY:=Libraries
  35. TITLE:=The GNU Linear Programming Kit (glpsol)
  36. URL:=http://www.gnu.org/software/glpk/
  37. DEPENDS:=libglpk
  38. endef
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include/
  41. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  44. endef
  45. define Package/libglpk/install
  46. $(INSTALL_DIR) $(1)/usr/lib/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  48. endef
  49. define Package/glpsol/install
  50. $(INSTALL_DIR) $(1)/usr/bin
  51. $(CP) $(PKG_INSTALL_DIR)/usr/bin/glpsol $(1)/usr/bin
  52. endef
  53. $(eval $(call BuildPackage,libglpk))
  54. $(eval $(call BuildPackage,glpsol))