Makefile
changeset 1 edaf97f39e5d
parent 0 7bc9d95b92bc
child 2 2d6e92fb19e9
equal deleted inserted replaced
0:7bc9d95b92bc 1:edaf97f39e5d
    24 mkdir $(1)
    24 mkdir $(1)
    25 tar --strip-components=1 -C $(1) -xvjf $(tmp)/`basename $(1)`.tar.bz2
    25 tar --strip-components=1 -C $(1) -xvjf $(tmp)/`basename $(1)`.tar.bz2
    26 endef
    26 endef
    27 
    27 
    28 define get_src_http
    28 define get_src_http
    29 dld=$(distfiles)/$(2);[ -f $$dld ] && echo "Exists :" $(2) || wget $(1)/$(2) -O $$dld;
    29 dld=$(distfiles)/$(2);( ( [ -f $$dld ] || wget $(1)/$(2) -O $$dld ) && ( [ ! -f $$dld.md5 ] && md5sum $$dld > $$dld.md5 || md5sum -c $$dld.md5 ) ) &&
    30 endef
    30 endef
    31 
    31 
    32 define get_src_pypi
    32 define get_src_pypi
    33 $(call get_src_http,http://pypi.python.org/packages/$(1),$(2))
    33 $(call get_src_http,http://pypi.python.org/packages/$(1),$(2))
    34 endef
    34 endef
    92 python: $(bin_collect_dir)
    92 python: $(bin_collect_dir)
    93 	# Python
    93 	# Python
    94 	$(call get_src_http,http://www.python.org/ftp/python/2.7.2,python-2.7.2.msi)\
    94 	$(call get_src_http,http://www.python.org/ftp/python/2.7.2,python-2.7.2.msi)\
    95 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
    95 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
    96 	cp $(tmp)/drive_c/windows/system32/msvcr71.dll $(bin_collect_dir)
    96 	cp $(tmp)/drive_c/windows/system32/msvcr71.dll $(bin_collect_dir)
    97 	cp $(pydir)/python27.dll $(bin_collect_dir)
    97 	mv $(pydir)/python27.dll $(bin_collect_dir)
    98 	
    98 	
    99 	# WxPython (needs running inno unpacker in wine)
    99 	# WxPython (needs running inno unpacker in wine)
   100 	$(call get_src_sf,innounp/innounp/innounp%200.36,innounp036.rar)\
   100 	$(call get_src_sf,innounp/innounp/innounp%200.36,innounp036.rar)\
   101 	unrar e $$dld innounp.exe $(tmp)
   101 	unrar e $$dld innounp.exe $(tmp)
   102 	$(call get_src_sf,wxpython/wxPython/2.8.12.1,wxPython2.8-win32-unicode-2.8.12.1-py27.exe)\
   102 	$(call get_src_sf,wxpython/wxPython/2.8.12.1,wxPython2.8-win32-unicode-2.8.12.1-py27.exe)\
   103 	$(wine) $(tmp)/innounp.exe -d$(tmp) -x $$dld
   103 	$(wine) $(tmp)/innounp.exe -d$(tmp) -x $$dld
   104 	cp -R $(tmp)/\{code_GetPythonDir\}/* $(pydir)
   104 	cp -R $(tmp)/\{code_GetPythonDir\}/* $(pydir)
   105 	cp -R $(tmp)/\{app\}/* $(pysite)
   105 	cp -R $(tmp)/\{app\}/* $(pysite)
       
   106 	mv $(pysite)/wx-2.8-msw-unicode/wx/*.dll $(bin_collect_dir)
   106 	
   107 	
   107 	# pywin32
   108 	# pywin32
   108 	$(call get_src_sf,pywin32/pywin32/Build216,pywin32-216.win32-py2.7.exe)\
   109 	$(call get_src_sf,pywin32/pywin32/Build216,pywin32-216.win32-py2.7.exe)\
   109 	unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   110 	unzip -d $(tmp)/pw32 $$dld ; [ $$? -eq 1 ] #silence error unziping .exe
   110 	cp -R $(tmp)/pw32/PLATLIB/* $(pysite)
   111 	cp -R $(tmp)/pw32/PLATLIB/* $(pysite)
   111 	cp $(pysite)/pywin32_system32/*.dll $(bin_collect_dir)
   112 	mv $(pysite)/pywin32_system32/*.dll $(bin_collect_dir)
   112 	
   113 	
   113 	# Twisted
   114 	# Twisted
   114 	$(call get_src_pypi,2.7/T/Twisted,Twisted-11.0.0.winxp32-py2.7.msi)\
   115 	$(call get_src_pypi,2.7/T/Twisted,Twisted-11.0.0.winxp32-py2.7.msi)\
   115 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
   116 	$(msiexec) /qn /a $$dld TARGETDIR=.\\$(pydir)
   116 	
   117