PKG_NAME = Python
VER = 2.5.1
-ICONV = iconvmodule-1.0-ipfire-1
-DBUSPY = dbus-python-0.82.0
-
THISAPP = $(PKG_NAME)-$(VER)
DL_FILE = $(THISAPP).tar.bz2
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
-MODULES = $(DIR_SRC)/$(ICONV) $(DIR_SRC)/$(DBUSPY)
-
###############################################################################
# Top-level Rules
###############################################################################
-objects = $(DL_FILE) $(ICONV).tar.bz2 $(DBUSPY).tar.gz
+objects = $(DL_FILE)
install: $(TARGET)
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
- @rm -rf $(DIR_APP) $(MODULES) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+ @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && OPT="$(CFLAGS)" ./configure --prefix=/usr --enable-shared
cd $(DIR_APP) && make -j $(PARALLELISM)
cd $(DIR_APP) && make install
-
- ### Building optional modules
- #
- cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(ICONV).tar.bz2
- cd $(DIR_SRC)/$(ICONV) && make install
-
- cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DBUSPY).tar.gz
- cd $(DIR_SRC)/$(DBUSPY) && ./configure --prefix=/usr
- cd $(DIR_SRC)/$(DBUSPY) && make
- cd $(DIR_SRC)/$(DBUSPY) && make install
-
- @rm -rf $(DIR_APP) $(MODULES)
+ @rm -rf $(DIR_APP)
@$(POSTBUILD)
--- /dev/null
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+PKG_NAME = python-modules
+VER = ipfire
+
+THISAPP = $(PKG_NAME)-$(VER)
+ICONV = iconvmodule-1.0-ipfire-1
+DBUSPY = dbus-python-0.82.0
+URLGRABBER = urlgrabber-3.1.0
+
+TARGET = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
+
+DIR_MOD = $(DIR_SRC)/$(THISAPP)
+MODULES = $(DIR_SRC)/$(ICONV) $(DIR_SRC)/$(DBUSPY) $(DIR_SRC)/$(URLGRABBER)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(ICONV).tar.bz2 $(DBUSPY).tar.gz $(URLGRABBER).tar.gz
+
+install: $(TARGET)
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+ @$(LOAD)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+ @$(PREBUILD)
+ @rm -rf $(DIR_MOD)
+ @mkdir -p $(DIR_MOD)
+
+ cd $(DIR_MOD) && tar jxf $(DIR_DL)/$(ICONV).tar.bz2
+ cd $(DIR_MOD)/$(ICONV) && make install
+
+ cd $(DIR_MOD) && tar zxf $(DIR_DL)/$(DBUSPY).tar.gz
+ cd $(DIR_MOD)/$(DBUSPY) && ./configure --prefix=/usr
+ cd $(DIR_MOD)/$(DBUSPY) && make
+ cd $(DIR_MOD)/$(DBUSPY) && make install
+
+ cd $(DIR_MOD) && tar zxf $(DIR_DL)/$(URLGRABBER).tar.gz
+ cd $(DIR_MOD)/$(URLGRABBER) && python setup.py install
+
+ @rm -rf $(DIR_MOD)
+ @$(POSTBUILD)