1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 19:44:17 +02:00

plplot: fix package generation errors (created copies of libs instead of links)

add plplot-python package (not yet working, not oven compiling!)
This commit is contained in:
David Kühling 2011-01-22 11:28:15 +01:00
parent 15513ea8a1
commit e75033d2e6

View File

@ -149,6 +149,17 @@ $(call Package/plplot/Default/description)
This package contains the Plplot bindings for Lua This package contains the Plplot bindings for Lua
endef endef
define Package/plplot-python
$(call Package/plplot/Default)
DEPENDS:= +plplot +python
TITLE+= (Python bindings)
endef
define Package/plplot-python/description
$(call Package/plplot/Default/description)
This package contains the Plplot bindings for Python
endef
define Package/plplot-octave define Package/plplot-octave
$(call Package/plplot/Default) $(call Package/plplot/Default)
DEPENDS:= +plplot +octave DEPENDS:= +plplot +octave
@ -167,6 +178,7 @@ CMAKE_FLAGS := \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_TOOLCHAIN_FILE=$(PKG_BUILD_DIR)/toolchain.cmake \ -DCMAKE_TOOLCHAIN_FILE=$(PKG_BUILD_DIR)/toolchain.cmake \
-DPKG_CONFIG_EXECUTABLE=$(STAGING_DIR_HOST)/bin/pkg-config \ -DPKG_CONFIG_EXECUTABLE=$(STAGING_DIR_HOST)/bin/pkg-config \
-DSWIG_EXECUTABLE=$(STAGING_DIR_HOST)/bin/swig \
-DDEFAULT_NO_DEVICES=ON \ -DDEFAULT_NO_DEVICES=ON \
-DUSE_RPATH=OFF \ -DUSE_RPATH=OFF \
-DPLD_ps=ON \ -DPLD_ps=ON \
@ -203,9 +215,11 @@ ifdef CONFIG_PACKAGE_plplot-linuxvga
endif endif
ifdef CONFIG_PACKAGE_plplot-lua ifdef CONFIG_PACKAGE_plplot-lua
CMAKE_FLAGS += \ CMAKE_FLAGS += -DENABLE_lua=ON
-DSWIG_EXECUTABLE=$(STAGING_DIR_HOST)/bin/swig \ endif
-DENABLE_lua=ON
ifdef CONFIG_PACKAGE_plplot-python
CMAKE_FLAGS += -DENABLE_python=ON
endif endif
ifdef CONFIG_PACKAGE_plplot-tcl ifdef CONFIG_PACKAGE_plplot-tcl
@ -279,7 +293,7 @@ endef
define Package/plplot/install define Package/plplot/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libplplotd.so* \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplotd.so* \
$(1)/usr/lib/ $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/plplot$(PKG_VERSION)/driversd $(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} \ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/plplot$(PKG_VERSION)/driversd/{mem,null,ps,svg}.{so,rc} \
@ -306,13 +320,13 @@ endef
define Package/plplot-cxx/install define Package/plplot-cxx/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libplplotcxxd.so* \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplotcxxd.so* \
$(1)/usr/lib/ $(1)/usr/lib/
endef endef
define Package/plplot-qt/install define Package/plplot-qt/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libplplotqtd.so* \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplotqtd.so* \
$(1)/usr/lib/ $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/plplot$(PKG_VERSION)/driversd $(INSTALL_DIR) $(1)/usr/lib/plplot$(PKG_VERSION)/driversd
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/plplot$(PKG_VERSION)/driversd/qt.{so,rc} \ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/plplot$(PKG_VERSION)/driversd/qt.{so,rc} \
@ -326,28 +340,27 @@ define Package/plplot-linuxvga/install
$(1)/usr/lib/plplot$(PKG_VERSION)/driversd/ $(1)/usr/lib/plplot$(PKG_VERSION)/driversd/
endef endef
define Package/plplot-tcl/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libplplottcltkd.so* \
$(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtclmatrixd.so* \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/share/plplot$(PKG_VERSION)/tcl
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/pkgIndex.tcl \
$(1)/usr/share/plplot$(PKG_VERSION)/
$(CP) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/tcl/*\
$(1)/usr/share/plplot$(PKG_VERSION)/tcl/
endef
define Package/plplot-lua/install define Package/plplot-lua/install
$(INSTALL_DIR) $(1)/usr/lib/lua $(INSTALL_DIR) $(1)/usr/lib/lua
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/*/plplot/plplotluac.so $(1)/usr/lib/lua/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/*/plplot/plplotluac.so $(1)/usr/lib/lua/
endef endef
define Package/plplot-tcl/install define Package/plplot-python/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib/python
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libplplottcltkd.so* \ $(CP) $(PKG_INSTALL_DIR)/usr/lib/python/*/plplot/*.so* $(1)/usr/lib/python/
$(1)/usr/lib/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libtclmatrixd.so* \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/share/plplot$(PKG_VERSION)/tcl
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/pkgIndex.tcl \
$(1)/usr/share/plplot$(PKG_VERSION)/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/plplot$(PKG_VERSION)/tcl/*\
$(1)/usr/share/plplot$(PKG_VERSION)/tcl/
endef
define Package/plplot-tcl/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libplplottcltkd.so* \
$(1)/usr/lib/
endef endef
define Package/plplot-octave/install define Package/plplot-octave/install
@ -373,6 +386,7 @@ $(eval $(call BuildPackage,plplot-qt))
$(eval $(call BuildPackage,plplot-linuxvga)) $(eval $(call BuildPackage,plplot-linuxvga))
$(eval $(call BuildPackage,plplot-tcl)) $(eval $(call BuildPackage,plplot-tcl))
$(eval $(call BuildPackage,plplot-lua)) $(eval $(call BuildPackage,plplot-lua))
$(eval $(call BuildPackage,plplot-python))
$(eval $(call BuildPackage,plplot-octave)) $(eval $(call BuildPackage,plplot-octave))