blob: 6490f0a8e452a4f1922d9c57b7d9cd0f9080f508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# created by Hans-Christoph Steiner <hans@eds.org> to generate MacOS X packages
# Hopefully, others will be coming soon.
current: darwin_package
PDDP_VERSION = 0.1
PACKAGE_NAME = pd-pddp-$(PDDP_VERSION)
clean:
-rm -Rf installroot *~
darwin_pkg_license:
# generate HTML version of License
# echo "<HTML><BODY><FONT SIZE="-1">" > License.html
# cat ../../creb/COPYING | sed -e 's/^$$/\<P\>/g' >> License.html
# echo "</FONT></BODY></HTML>" >> License.html
darwin_pkg_welcome:
# generate Welcome.html from ../README.txt
darwin_pkg_clean:
-sudo rm -Rf installroot/ $(PACKAGE_NAME)*.pkg/
-rm -f $(PACKAGE_NAME)*.info 1 License.html Welcome.???*
# install into MSP's default: /usr/local/lib
darwin_pkg: darwin_pkg_clean darwin_pkg_license darwin_pkg_welcome
# set up installroot dir
test -d installroot/pd/doc/5.reference/ || mkdir -p installroot/pd/doc/5.reference/
install -m644 --group=staff *.pd installroot/pd/doc/5.reference/
cp -f pd-pddp.info $(PACKAGE_NAME).info
# delete cruft
-find installroot -name .DS_Store -delete
-rm -f 1
# set proper permissions
sudo chown -R root:staff installroot
package installroot $(PACKAGE_NAME).info -d . -ignoreDSStore
# install pkg docs
# install -m 644 License.html Welcome.txt $(PACKAGE_NAME).pkg/Contents/Resources
sudo chown -R root:staff $(PACKAGE_NAME).pkg/Contents/Resources
darwin_altpkg: darwin_pkg_clean darwin_pkg_license darwin_pkg_welcome
test -d installroot/Help || mkdir -p installroot/Help
install -m644 --group=staff *.pd installroot/Help
sed -e 's/\/usr\/local\/lib/\/Library\/Pd/' pd-pddp.info \
| sed -e 's/MSP standard paths/MacOS X-style Paths/' \
> $(PACKAGE_NAME)-alt.info
# delete cruft
-find installroot -name .DS_Store -delete
-rm -f 1
# set proper permissions
sudo chown -R root:staff installroot
package installroot $(PACKAGE_NAME)-alt.info -d . -ignoreDSStore
# install pkg docs
# install -m 644 License.html Welcome.txt $(PACKAGE_NAME)-alt.pkg/Contents/Resources
sudo chown -R root:staff $(PACKAGE_NAME)-alt.pkg/Contents/Resources
|