source: packages/utils/gnuplot/Makefile @ 23758

Last change on this file since 23758 was 23758, checked in by mb, 6 years ago

From: Xiangfu Liu <xiangfu.z@…>
fix gnuplot compile error

File size: 1.4 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=gnuplot
4PKG_VERSION:=4.4.0
5PKG_RELEASE:=2
6
7PKG_INSTALL=1
8
9PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10PKG_SOURCE_URL:=@SF/gnuplot
11PKG_MD5SUM:=e708665bd512153ad5c35252fe499059
12
13include $(INCLUDE_DIR)/package.mk
14
15TARGET_CFLAGS += \
16        -I$(STAGING_DIR)/usr/lib/libintl/include \
17        -I$(STAGING_DIR)/usr/lib/libiconv/include
18
19TARGET_LDFLAGS+= \
20        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
21        -L$(STAGING_DIR)/usr/lib/libintl/lib \
22        -L$(STAGING_DIR)/usr/lib/libiconv/lib
23
24CONFIGURE_VARS += \
25        CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++" \
26        CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
27        LIBS="-nodefaultlibs -luClibc++ -lpthread -lgcc"
28
29define Package/gnuplot
30  SECTION:=utils
31  CATEGORY:=Utilities
32  DEPENDS:=+libncurses +uclibcxx +zlib +libpng +libfreetype +libgd +libintl +libiconv
33  TITLE:=A portable command-line driven graphing utility
34  URL:=http://sourceforge.net/projects/gnuplot/
35endef
36
37define Package/gnuplot/description
38  Gnuplot  is a portable command-line driven graphing utility for linux, OS/2,
39  MS Windows, OSX, VMS, and many other platforms.
40endef
41
42CONFIGURE_ARGS += \
43        --without-x \
44        --disable-mouse \
45        --without-tutorial \
46        --without-row-help \
47        --without-lisp-files
48
49define Package/gnuplot/install
50        $(INSTALL_DIR) $(1)/usr/bin
51        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnuplot $(1)/usr/bin/
52endef
53
54$(eval $(call BuildPackage,gnuplot))
Note: See TracBrowser for help on using the repository browser.