[PD-cvs] pd/src makefile.in,1.1.1.3.2.7,1.1.1.3.2.8
eighthave at users.sourceforge.net
eighthave at users.sourceforge.net
Sun Oct 12 17:15:43 CEST 2003
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1:/tmp/cvs-serv27211
Modified Files:
Tag: devel_0_37
makefile.in
Log Message:
appended MacOS X pkg creation targets
Index: makefile.in
===================================================================
RCS file: /cvsroot/pure-data/pd/src/makefile.in,v
retrieving revision 1.1.1.3.2.7
retrieving revision 1.1.1.3.2.8
diff -C2 -d -r1.1.1.3.2.7 -r1.1.1.3.2.8
*** makefile.in 10 Oct 2003 11:25:28 -0000 1.1.1.3.2.7
--- makefile.in 12 Oct 2003 15:15:41 -0000 1.1.1.3.2.8
***************
*** 181,187 ****
--- 181,232 ----
+ #
+ # added by Hans-Christoph Steiner <hans at eds.org>
+ # to generate MacOS X packages
+ #
+ PD_MAJOR_VERSION = $(shell grep PD_MAJOR_VERSION m_pd.h | cut -d ' ' -f 3)
+ PD_MINOR_VERSION = $(shell grep PD_MINOR_VERSION m_pd.h | cut -d ' ' -f 3)
+ PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION)
+ PACKAGE_NAME = pd-$(PD_VERSION)-test10
+ 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
+ test -d ../installroot/Applications || mkdir -p ../installroot/Applications
+ cd .. && install -m555 Pd.command installroot/Applications
+ cd .. && cp -f pd.info $(PACKAGE_NAME).info
+ # delete cruft
+ -find ../installroot -name .DS_Store -delete
+ -rm -f 1
+ # set proper permissions
+ sudo chmod 4555 ../installroot/$(INSTALL_PREFIX)/bin/pd
+ 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: darwin_pkg
+ 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