[PD-cvs] pd/src makefile.darwin_pkg,NONE,1.1.2.1
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Mon Mar 15 00:15:50 CET 2004
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14634
Added Files:
Tag: devel_0_37
makefile.darwin_pkg
Log Message:
added darwin_pkg section of makefile.in to a separate file, this is what creates the MacOS X installer
--- NEW FILE: makefile.darwin_pkg ---
#
# added by Hans-Christoph Steiner <hans at eds.org>
# to generate MacOS X packages
#
PD_MAJOR_VERSION = $(shell grep 'Pd version' s_main.c | cut -d '\\' -f 1 | cut -d ' ' -f 6 | cut -d '.' -f 1)
PD_MINOR_VERSION = $(shell grep 'Pd version' s_main.c | cut -d '\\' -f 1 | cut -d ' ' -f 6 | cut -d '.' -f 2)
PD_BUGFIX_VERSION = $(shell grep 'Pd version' s_main.c | cut -d '\\' -f 1 | cut -d ' ' -f 6 | cut -d '.' -f 3)
PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION)
PACKAGE_NAME = pd-$(PD_VERSION)
DMG_NAME = $(PACKAGE_NAME)
darwin_pkg_clean:
-sudo rm -Rf ../installroot ../$(PACKAGE_NAME)*
-rm -f ../$(PACKAGE_NAME)*.info *~ ../1 License.html
darwin_pkg_license:
# generate HTML version of License
echo "<HTML><BODY><FONT SIZE="-1">" > License.html
cat ../LICENSE.txt | sed -e 's/^$$/\<P\>/g' >> License.html
echo "</FONT></BODY></HTML>" >> License.html
darwin_pkg: DESTDIR = ../installroot
darwin_pkg: INSTALL_PREFIX = /usr/local
darwin_pkg: MANDIR = /usr/local
darwin_pkg: GFLAGS = -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\"
darwin_pkg: install darwin_pkg_license
cd .. && cp -f pd.info $(PACKAGE_NAME).info
# delete cruft
-find ../installroot -name .DS_Store -delete
-rm -f 1
# set proper permissions
sudo chown -R root:staff ../installroot/$(INSTALL_PREFIX)
cd .. && sudo package installroot $(PACKAGE_NAME).info -d . -ignoreDSStore
# install pkg docs
sudo install -m 644 License.html ../$(PACKAGE_NAME).pkg/Contents/Resources
sudo chown -R root:staff ../$(PACKAGE_NAME).pkg/Contents/Resources
dmg:
cd .. && mkdir "$(DMG_NAME)"
cd .. && mv $(PACKAGE_NAME).pkg "$(DMG_NAME)"
cd .. && cp README.txt LICENSE.txt "$(DMG_NAME)"
cd .. && /bin/sh mkdmg "$(DMG_NAME)"
More information about the Pd-cvs
mailing list