nico 2e6784debb add missing install dir creation
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8643 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-06 03:23:21 +00:00

91 lines
2.8 KiB
Makefile

#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=egenix-mx
PKG_VERSION:=2.0.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-base-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.egenix.com/files/python/
PKG_MD5SUM:=66841151728a06f92d0b8dd2ed317a29
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-base-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include ../python/python-package.mk
define PyPackage/egenix-mx
TITLE:=Egenix mxBase
URL:=http://www.egenix.com/products/python/mxBase/
endef
define PyPackage/egenix-mx/description
This package contains a set of base packages from Egenix required by other
python packages.
endef
define Build/Compile
$(call Build/Compile/PyMod,., \
build --build-lib="foo", \
BASECFLAGS="$(TARGET_CFLAGS)" \
OPT="" \
)
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/BeeBase/mxBeeBase
$(CP) \
$(PKG_BUILD_DIR)/mx/BeeBase/mxBeeBase/mxh.h \
$(PKG_BUILD_DIR)/mx/BeeBase/mxBeeBase/btr.h \
$(PKG_BUILD_DIR)/mx/BeeBase/mxBeeBase/mxBeeBase.h \
$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/BeeBase/mxBeeBase/
mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/DateTime/mxDateTime
$(CP) \
$(PKG_BUILD_DIR)/mx/DateTime/mxDateTime/mxh.h \
$(PKG_BUILD_DIR)/mx/DateTime/mxDateTime/mxDateTime.h \
$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/DateTime/mxDateTime/
mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Proxy/mxProxy
$(CP) \
$(PKG_BUILD_DIR)/mx/Proxy/mxProxy/mxh.h \
$(PKG_BUILD_DIR)/mx/Proxy/mxProxy/mxProxy.h \
$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Proxy/mxProxy/
mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Queue/mxQueue
$(CP) \
$(PKG_BUILD_DIR)/mx/Queue/mxQueue/mxh.h \
$(PKG_BUILD_DIR)/mx/Queue/mxQueue/mxQueue.h \
$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Queue/mxQueue/
mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/TextTools/mxTextTools
$(CP) \
$(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxh.h \
$(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxbmse.h \
$(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxte.h \
$(PKG_BUILD_DIR)/mx/TextTools/mxTextTools/mxTextTools.h \
$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/TextTools/mxTextTools/
mkdir -p $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Tools/mxTools
$(CP) \
$(PKG_BUILD_DIR)/mx/Tools/mxTools/mxh.h \
$(PKG_BUILD_DIR)/mx/Tools/mxTools/mxTools.h \
$(STAGING_DIR)$(PYTHON_PKG_DIR)/mx/Tools/mxTools/
endef
define Build/UninstallDev
rm -rf $(STAGING_DIR)$(PYTHON_PKG_DIR)/mx
endef
define PyPackage/egenix-mx/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) $(PKG_BUILD_DIR)/foo/mx $(1)$(PYTHON_PKG_DIR)/
ln -sf $(1)$(PYTHON_PKG_DIR)/mx/BeeBase/ExitFunctions.py \
$(1)$(PYTHON_PKG_DIR)/mx/Misc/
rm -rf $(1)$(PYTHON_PKG_DIR)/mx/*/Examples
endef
$(eval $(call PyPackage,egenix-mx))