2 # Copyright (C) 2010-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/$(PKG_NAME
)
16 PKG_HASH
:=096e4be3f83878ccf70e1fdb62ad1c178715ef8c0d244254c29e2f9f0c1afa70
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Daniel Golle
<daniel@makrotopia.org
>
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/libglpk
29 TITLE
:=The GNU Linear Programming Kit
30 URL
:=http
://www.gnu.org
/software
/glpk
/
33 define Package
/libglpk
/description
34 The GLPK
(GNU Linear Programming Kit
) package is intended for solving
35 large-scale linear programming
(LP
), mixed integer programming
(MIP
),
36 and other related problems. It is a set of routines written in ANSI C
37 and organized in the form of a callable library.
43 TITLE
:=The GNU Linear Programming Kit
(glpsol
)
44 URL
:=http
://www.gnu.org
/software
/glpk
/
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)/usr
/include/
50 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
51 $(INSTALL_DIR
) $(1)/usr
/lib
/
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{so
*,a
,la
} $(1)/usr
/lib
/
55 define Package
/libglpk
/install
56 $(INSTALL_DIR
) $(1)/usr
/lib
/
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
60 define Package
/glpsol
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/glpsol
$(1)/usr
/bin
65 $(eval
$(call BuildPackage
,libglpk
))
66 $(eval
$(call BuildPackage
,glpsol
))