Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.60
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  13. PKG_MD5SUM:=eda7965907f6919ffc69801646f13c3e
  14. PKG_LICENSE:=GPL-3.0
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libglpk
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=The GNU Linear Programming Kit
  23. URL:=http://www.gnu.org/software/glpk/
  24. endef
  25. define Package/libglpk/description
  26. The GLPK (GNU Linear Programming Kit) package is intended for solving
  27. large-scale linear programming (LP), mixed integer programming (MIP),
  28. and other related problems. It is a set of routines written in ANSI C
  29. and organized in the form of a callable library.
  30. endef
  31. define Package/glpsol
  32. SECTION:=libs
  33. CATEGORY:=Libraries
  34. TITLE:=The GNU Linear Programming Kit (glpsol)
  35. URL:=http://www.gnu.org/software/glpk/
  36. DEPENDS:=libglpk
  37. endef
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/
  40. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/
  43. endef
  44. define Package/libglpk/install
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  47. endef
  48. define Package/glpsol/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(CP) $(PKG_INSTALL_DIR)/usr/bin/glpsol $(1)/usr/bin
  51. endef
  52. $(eval $(call BuildPackage,libglpk))
  53. $(eval $(call BuildPackage,glpsol))