2011-01-03 23:10:15 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
|
|
|
|
#
|
|
|
|
# License GPLv2 or later. NO WARRANTY.
|
|
|
|
#
|
|
|
|
# OpenWRT package for the Plplot
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=plplot
|
|
|
|
PKG_VERSION:=5.9.7
|
2011-01-22 13:54:08 +02:00
|
|
|
PKG_RELEASE:=4
|
2011-01-03 23:10:15 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_VERSION)%20Source
|
|
|
|
PKG_MD5SUM:=c53c484ed93ce8446513c31707551b5b
|
|
|
|
PKG_INSTALL:=1
|
2011-02-28 23:13:48 +02:00
|
|
|
|
2011-01-15 17:35:56 +02:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2011-01-03 23:10:15 +02:00
|
|
|
|
2011-02-28 23:13:48 +02:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_REMOVE_FILES:=
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:= plplot/host libltdl swig/host
|
2011-01-03 23:10:15 +02:00
|
|
|
#@INSTALL_GFORTRAN
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
CMAKE_HOST_FLAGS=-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DDEFAULT_NO_DEVICES=ON \
|
|
|
|
-DPKG_CONFIG_EXECUTABLE=Not-Found -DDEFAULT_NO_BINDINGS=ON
|
|
|
|
|
2011-01-03 23:10:15 +02:00
|
|
|
## Need host-compiled plplot build dir for cmake to work for the target
|
|
|
|
define Host/Configure
|
2011-01-04 18:49:15 +02:00
|
|
|
mkdir -p $(HOST_BUILD_DIR)/build_dir
|
2011-01-03 23:10:15 +02:00
|
|
|
cd $(HOST_BUILD_DIR)/build_dir && \
|
2011-01-04 18:49:15 +02:00
|
|
|
cmake $(CMAKE_HOST_FLAGS) \
|
2011-01-03 23:10:15 +02:00
|
|
|
$(HOST_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Host/Compile/Octave
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/bindings/octave massage
|
|
|
|
endef
|
|
|
|
|
2011-01-03 23:10:15 +02:00
|
|
|
define Host/Compile
|
2011-01-04 18:49:15 +02:00
|
|
|
$(if $(CONFIG_PACKAGE_plplot-octave),$(Host/Compile/Octave),)
|
2011-02-15 23:39:58 +02:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR)/build_dir VERBOSE=1 -j4
|
2011-01-04 18:49:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install/Octave
|
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
|
|
|
|
$(CP) $(HOST_BUILD_DIR)/bindings/octave/massage \
|
|
|
|
$(STAGING_DIR_HOST)/bin/plplot-massage
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2011-01-04 18:49:15 +02:00
|
|
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/lib/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
$(CP) $(HOST_BUILD_DIR)/build_dir \
|
|
|
|
$(STAGING_DIR_HOST)/lib/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
$(if $(CONFIG_PACKAGE_plplot-octave),$(Host/Install/Octave),)
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot/Default
|
2011-01-04 18:49:15 +02:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2011-01-03 23:10:15 +02:00
|
|
|
|
|
|
|
TITLE:=PLplot plotting library
|
|
|
|
URL:=http://plplot.sourceforge.net/
|
2011-01-04 18:49:15 +02:00
|
|
|
SUBMENU:=PLplot
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot/Default/description
|
|
|
|
PLplot is a cross-platform software package for creating scientific plots. It
|
|
|
|
comes with language bindings for many interpreter languages like Lua, Tcl,
|
|
|
|
Python. Also it can be used as plooting backend for GNU Octave.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot
|
|
|
|
$(call Package/plplot/Default)
|
2011-01-08 12:47:26 +02:00
|
|
|
DEPENDS:=+libltdl +zlib +libfreetype
|
2011-01-03 23:10:15 +02:00
|
|
|
TITLE+=
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot/description
|
|
|
|
$(call Package/plplot/Default/description)
|
2011-01-04 18:49:15 +02:00
|
|
|
This package contains the Plplot library with a few file output devices.
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
define Package/plplot-demo
|
|
|
|
$(call Package/plplot/Default)
|
|
|
|
DEPENDS:= +plplot
|
|
|
|
TITLE+= (Example Programs)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-demo/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the Plplot example programs.
|
|
|
|
endef
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-cxx
|
|
|
|
$(call Package/plplot/Default)
|
|
|
|
DEPENDS:= +plplot +libstdcpp
|
|
|
|
TITLE+= (C++ bindings)
|
|
|
|
endef
|
2011-01-03 23:10:15 +02:00
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-cxx/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the Plplot C++ bindings.
|
|
|
|
endef
|
2011-01-03 23:10:15 +02:00
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-qt
|
|
|
|
$(call Package/plplot/Default)
|
|
|
|
DEPENDS:= +plplot +qt4 +qt4-gui
|
|
|
|
TITLE+= (Qt bindings&device)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-qt/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the Plplot Qt visualization driver and Qt bindings.
|
|
|
|
endef
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
define Package/plplot-linuxvga
|
|
|
|
$(call Package/plplot/Default)
|
2011-01-08 15:24:37 +02:00
|
|
|
DEPENDS:= +plplot +svgalib
|
2011-01-08 12:47:26 +02:00
|
|
|
TITLE+= (svgalib driver)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-linuxvga/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the SVGAlib based visualization driver for PLplot.
|
|
|
|
endef
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-tcl
|
|
|
|
$(call Package/plplot/Default)
|
|
|
|
DEPENDS:= +plplot +tcl
|
|
|
|
TITLE+= (Tcl bindings)
|
2011-03-02 01:01:15 +02:00
|
|
|
$(eval $(call RequireCommand,tclsh,Please install tcl.))
|
2011-01-04 18:49:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-tcl/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the Plplot bindings for Tcl
|
|
|
|
endef
|
|
|
|
|
2011-01-15 17:35:56 +02:00
|
|
|
define Package/plplot-lua
|
|
|
|
$(call Package/plplot/Default)
|
|
|
|
DEPENDS:= +plplot +liblua
|
|
|
|
TITLE+= (Lua bindings)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-lua/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the Plplot bindings for Lua
|
|
|
|
endef
|
2011-01-04 18:49:15 +02:00
|
|
|
|
2011-03-02 01:01:15 +02:00
|
|
|
# note: plplot-python needs some numeric support library for python ('numpy'?)
|
|
|
|
# not currently present on openwrt.
|
2011-01-22 12:28:15 +02:00
|
|
|
define Package/plplot-python
|
|
|
|
$(call Package/plplot/Default)
|
2011-03-02 01:01:15 +02:00
|
|
|
DEPENDS:= +plplot +python @BROKEN
|
|
|
|
TITLE+= (Python bindings)
|
2011-01-22 12:28:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-python/description
|
|
|
|
$(call Package/plplot/Default/description)
|
2011-01-22 14:27:24 +02:00
|
|
|
This package contains the Plplot bindings for Python.
|
|
|
|
Note that this needs either the Pythnon-Numpy or Python-Numeric library
|
|
|
|
to work. Both haven\'t been ported yet, so plplot-python is
|
|
|
|
disfunctional!
|
2011-01-22 12:28:15 +02:00
|
|
|
endef
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-octave
|
|
|
|
$(call Package/plplot/Default)
|
|
|
|
DEPENDS:= +plplot +octave
|
|
|
|
TITLE+= (Octave bindings)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-octave/description
|
|
|
|
$(call Package/plplot/Default/description)
|
|
|
|
This package contains the Plplot bindings for GNU Octave
|
|
|
|
endef
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
TARGET_CFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
CMAKE_FLAGS := \
|
2011-01-15 17:35:56 +02:00
|
|
|
-Wdev \
|
2011-01-04 18:49:15 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=$(PKG_BUILD_DIR)/toolchain.cmake \
|
|
|
|
-DPKG_CONFIG_EXECUTABLE=$(STAGING_DIR_HOST)/bin/pkg-config \
|
2011-01-22 12:28:15 +02:00
|
|
|
-DSWIG_EXECUTABLE=$(STAGING_DIR_HOST)/bin/swig \
|
2011-01-04 18:49:15 +02:00
|
|
|
-DDEFAULT_NO_DEVICES=ON \
|
2011-01-08 12:47:26 +02:00
|
|
|
-DUSE_RPATH=OFF \
|
2011-01-04 18:49:15 +02:00
|
|
|
-DPLD_ps=ON \
|
|
|
|
-DPLD_svg=ON \
|
|
|
|
-DPLD_mem=ON \
|
|
|
|
-DPLD_null=ON \
|
|
|
|
-DDEFAULT_NO_BINDINGS=ON \
|
|
|
|
-DNaNAwareCCompiler=ON \
|
|
|
|
-DCMAKE_USE_NAMESPACE=ON \
|
|
|
|
-DCMAKE_NATIVE_BINARY_DIR=$(STAGING_DIR_HOST)/lib/$(PKG_NAME)-$(PKG_VERSION)/build_dir
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
# everything done under unstall target!
|
|
|
|
ifdef CONFIG_PACKAGE_plplot-demo
|
|
|
|
endif
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
ifdef CONFIG_PACKAGE_plplot-cxx
|
|
|
|
CMAKE_FLAGS += -DENABLE_cxx=ON
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_PACKAGE_plplot-qt
|
|
|
|
CMAKE_FLAGS += \
|
|
|
|
-DPLD_qtwidget=ON \
|
|
|
|
-DPLD_extqt=ON \
|
|
|
|
-DENABLE_qt=ON \
|
|
|
|
-DQT_QMAKE_EXECUTABLE=$(STAGING_DIR_HOST)/bin/qmake \
|
|
|
|
-DQT_MOC_EXECUTABLE=$(STAGING_DIR_HOST)/bin/moc \
|
|
|
|
-DQT_UIC_EXECUTABLE=$(STAGING_DIR_HOST)/bin/uic \
|
|
|
|
-DQT_RCC_EXECUTABLE=$(STAGING_DIR_HOST)/bin/rcc
|
|
|
|
endif
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
ifdef CONFIG_PACKAGE_plplot-linuxvga
|
|
|
|
CMAKE_FLAGS += \
|
|
|
|
-DPLD_linuxvga=ON
|
|
|
|
endif
|
|
|
|
|
2011-01-15 17:35:56 +02:00
|
|
|
ifdef CONFIG_PACKAGE_plplot-lua
|
2011-01-22 12:28:15 +02:00
|
|
|
CMAKE_FLAGS += -DENABLE_lua=ON
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_PACKAGE_plplot-python
|
|
|
|
CMAKE_FLAGS += -DENABLE_python=ON
|
2011-01-15 17:35:56 +02:00
|
|
|
endif
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
ifdef CONFIG_PACKAGE_plplot-tcl
|
|
|
|
CMAKE_FLAGS += -DENABLE_tcl=ON
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_PACKAGE_plplot-octave
|
|
|
|
CMAKE_FLAGS += \
|
|
|
|
-DENABLE_octave=ON \
|
|
|
|
-DMKOCTFILE=$(STAGING_DIR)/usr/bin/mkoctfile \
|
|
|
|
-DOCTAVE_OCT_DIR=/usr/lib/octave/site/oct/$(OPTIMIZE_FOR_CPU)-openwrt-linux-gnu \
|
|
|
|
-Dmassage_LOCATION=$(STAGING_DIR_HOST)/lib/$(PKG_NAME)-$(PKG_VERSION)/build_dir/bindings/octave/massage
|
|
|
|
endif
|
|
|
|
|
|
|
|
# $(if $(CONFIG_PACKAGE_libX11),FEATURE_XLOCK=y,FEATURE_XLOCK=n) \
|
2011-01-03 23:10:15 +02:00
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
echo "SET(CMAKE_SYSTEM_NAME Linux)" > $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_SYSTEM_VERSION 1)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_BUILD_TYPE None)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_C_COMPILER $(TARGET_CC:ccache=))" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_CXX_COMPILER $(TARGET_CC:ccache=))" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_C_FLAGS \"$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)\" CACHE STRING \"\" FORCE)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_CXX_FLAGS \"$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS) $(TARGET_CFLAGS) $(EXTRA_CFLAGS)\" CACHE STRING \"\" FORCE)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_VERBOSE_MAKEFILE ON)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
|
|
|
|
# where is the target environment
|
|
|
|
echo "SET(CMAKE_FIND_ROOT_PATH $(STAGING_DIR))" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
2011-01-29 13:47:30 +02:00
|
|
|
# echo "SET(CMAKE_PREFIX_PATH /usr)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
2011-01-03 23:10:15 +02:00
|
|
|
echo "SET(CMAKE_LIBRARY_PATH $(STAGING_DIR)/usr/lib $(STAGING_DIR)/lib $(STAGING_DIR_ROOT)/lib)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
2011-01-08 12:47:26 +02:00
|
|
|
echo "SET(CMAKE_SKIP_BUILD_RPATH ON)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
# echo "SET(CMAKE_INSTALL_RPATH /usr/lib;/lib)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
|
2011-01-29 13:47:30 +02:00
|
|
|
echo "SET(CMAKE_INCLUDE_PATH /usr/include)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_SYSTEM_INCLUDE_PATH /include)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
2011-01-03 23:10:15 +02:00
|
|
|
# search for programs in the build host directories
|
|
|
|
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
2011-01-29 13:47:30 +02:00
|
|
|
echo "SET(CMAKE_PROGRAM_PATH $(STAGING_DIR_HOST)/bin $(STAGING_DIR)/usr/bin)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
2011-01-03 23:10:15 +02:00
|
|
|
|
|
|
|
# for libraries and headers in the target directories
|
|
|
|
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
echo "SET(PL_USE_NAMESPACE 1)" >> $(PKG_BUILD_DIR)/toolchain.cmake
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
cd $(PKG_BUILD_DIR) && cmake $(CMAKE_FLAGS)
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2011-01-15 17:35:56 +02:00
|
|
|
$(call Build/Compile/Default, VERBOSE=1 -j4)
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
|
2011-01-03 23:10:15 +02:00
|
|
|
define Build/Install
|
|
|
|
$(call Build/Install/Default)
|
|
|
|
# $(INSTALL_DATA) ./files/... $(PKG_INSTALL_DIR)/usr/share/plplot/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/plplot
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/plplot/*.h \
|
|
|
|
$(1)/usr/include/plplot/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
|
|
|
|
$(1)/usr/lib/
|
2011-01-08 12:47:26 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
# $(SED) 's,-I$$$${includedir},,g' $(1)/usr/lib/pkgconfig/plplotd.pc
|
|
|
|
# $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/plplotd.pc
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot/install
|
2011-01-04 18:49:15 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-01-22 13:54:08 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{plplotd,csirocsa,qsastime}.so* \
|
2011-01-04 18:49:15 +02:00
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/plplot$(PKG_VERSION)/driversd
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/plplot$(PKG_VERSION)/driversd/{mem,null,ps,svg}.{so,rc} \
|
|
|
|
$(1)/usr/lib/plplot$(PKG_VERSION)/driversd/
|
2011-01-03 23:10:15 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/plplot$(PKG_VERSION)
|
2011-01-04 18:49:15 +02:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/*.{map,pal,fnt} \
|
|
|
|
$(1)/usr/share/plplot$(PKG_VERSION)/
|
|
|
|
endef
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
# ugly, but necessary: compiling demo-programs on install, using the just
|
|
|
|
# installed libs.
|
|
|
|
define Package/plplot-demo/install
|
|
|
|
$(SED) 's;/usr/lib/pkgconfig;$(STAGING_DIR)/usr/lib/pkgconfig;g' \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/examples/c/Makefile
|
|
|
|
$(MAKE) -C $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/examples/c/ \
|
|
|
|
C_INCLUDE_PATH=$(STAGING_DIR)/usr/include/plplot \
|
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS) $(TARGET_LDFLAGS)"\
|
|
|
|
RPATHCMD=
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/examples/c/x??c \
|
|
|
|
$(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-cxx/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-01-22 12:28:15 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplotcxxd.so* \
|
2011-01-04 18:49:15 +02:00
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-qt/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-01-22 12:28:15 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplotqtd.so* \
|
2011-01-04 18:49:15 +02:00
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/plplot$(PKG_VERSION)/driversd
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/plplot$(PKG_VERSION)/driversd/qt.{so,rc} \
|
|
|
|
$(1)/usr/lib/plplot$(PKG_VERSION)/driversd/
|
|
|
|
endef
|
|
|
|
|
2011-01-08 12:47:26 +02:00
|
|
|
define Package/plplot-linuxvga/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/plplot$(PKG_VERSION)/driversd
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/plplot$(PKG_VERSION)/driversd/linuxvga.{so,rc} \
|
|
|
|
$(1)/usr/lib/plplot$(PKG_VERSION)/driversd/
|
|
|
|
endef
|
|
|
|
|
2011-01-04 18:49:15 +02:00
|
|
|
define Package/plplot-tcl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2011-01-22 12:28:15 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplottcltkd.so* \
|
2011-01-04 18:49:15 +02:00
|
|
|
$(1)/usr/lib/
|
2011-01-22 12:28:15 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtclmatrixd.so* \
|
2011-01-04 18:49:15 +02:00
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/plplot$(PKG_VERSION)/tcl
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/pkgIndex.tcl \
|
2011-01-03 23:10:15 +02:00
|
|
|
$(1)/usr/share/plplot$(PKG_VERSION)/
|
2011-01-22 12:28:15 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/tcl/*\
|
2011-01-04 18:49:15 +02:00
|
|
|
$(1)/usr/share/plplot$(PKG_VERSION)/tcl/
|
|
|
|
endef
|
|
|
|
|
2011-01-22 12:28:15 +02:00
|
|
|
define Package/plplot-lua/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/*/plplot/plplotluac.so $(1)/usr/lib/lua/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/plplot-python/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/python
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python/*/plplot/*.so* $(1)/usr/lib/python/
|
2011-01-15 17:35:56 +02:00
|
|
|
endef
|
2011-01-04 18:49:15 +02:00
|
|
|
|
|
|
|
define Package/plplot-octave/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/octave \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/share/{octave,plplot_octave} \
|
|
|
|
$(1)/usr/share/
|
2011-01-03 23:10:15 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
# define Package/plplot-data/install
|
|
|
|
# $(INSTALL_DIR) $(1)/
|
|
|
|
# (cd $(PKG_INSTALL_DIR)/ && tar -cf - usr/share) \
|
|
|
|
# | (cd $(1)/ && tar -xvf -)
|
|
|
|
# endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|
|
|
|
$(eval $(call BuildPackage,plplot))
|
2011-01-08 12:47:26 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-demo))
|
2011-01-04 18:49:15 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-cxx))
|
|
|
|
$(eval $(call BuildPackage,plplot-qt))
|
2011-01-08 12:47:26 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-linuxvga))
|
2011-01-04 18:49:15 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-tcl))
|
2011-01-15 17:35:56 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-lua))
|
2011-01-22 12:28:15 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-python))
|
2011-01-04 18:49:15 +02:00
|
|
|
$(eval $(call BuildPackage,plplot-octave))
|
2011-01-03 23:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
# The following comments configure the Emacs editor. Just ignore them.
|
|
|
|
# Local Variables:
|
|
|
|
# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/plplot/compile -j2 V=99"
|
|
|
|
# End:
|