1NAME = py2app 2VERSIONORIG = 0.7.1 3VERSION = $(VERSIONORIG)-noprebuilt 4 5include ../Makefile.inc 6 7afterinstallsrc:: 8 gnutar xozf $(NAME)-$(VERSIONORIG).tar.gz 9 @set -x && \ 10 cd $(NAME)-$(VERSIONORIG) && \ 11 rm -rf examples/PyObjC/TinyTinyEdit/dist* && \ 12 rm -f py2app/apptemplate/prebuilt/* && \ 13 rm -f py2app/bundletemplate/prebuilt/* 14 mv $(NAME)-$(VERSIONORIG) $(NAME)-$(VERSION) 15 gnutar czf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION) 16 rm -f $(NAME)-$(VERSIONORIG).tar.gz 17 rm -rf $(NAME)-$(VERSION) 18 19custompatching: 20 ed - $(DIR)/py2app/bootstrap/site_packages.py < site_packages.py.ed 21 ed - $(DIR)/py2app/apptemplate/setup.py < template_setup.py.ed 22 cd $(DIR)/py2app/apptemplate && ARCHFLAGS='$(RC_CFLAGS)' python setup.py 23 ed - $(DIR)/py2app/bundletemplate/setup.py < template_setup.py.ed 24 cd $(DIR)/py2app/bundletemplate && ARCHFLAGS='$(RC_CFLAGS)' python setup.py 25 ed - $(DIR)/py2app/build_app.py < build_app.py.ed 26 ed - $(DIR)/setup.py < setup.py.ed 27 28postinstall: 29 cp -f $(DIR)/LICENSE.txt $(OSL)/$(NAME)-$(VERSIONORIG).txt 30 cp -f $(NAME).partial $(OSV)/$(NAME)-$(VERSIONORIG).partial 31 ditto $(DIR)/py2app/apptemplate/prebuilt/main $(DSTROOT)$(EXTRASPYTHON)/py2app/apptemplate/prebuilt 32 ditto $(DIR)/py2app/bundletemplate/prebuilt/main $(DSTROOT)$(EXTRASPYTHON)/py2app/bundletemplate/prebuilt 33