git.iko.soy/typeable/pandoc
on master help sign in
Removed osx package targets in Makefile, and documentation for

them in INSTALL. osx packaging was not working well, because of the binary's dependency on a dynamic library GMP. A MacPorts port will be provided instead. git-svn-id: https://pandoc.googlecode.com/svn/trunk@905 788f1e2b-df1e-0410-8736-df70ead52e1b

commitbdb55edd1845d2963a3b06316e5cdb25a3ca0a15 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 26 Aug 2007, 15:43 (19 years ago) parent3462d2d
2 files changed−59
INSTALL−5 Makefile−54
INSTALL−5
@@ -142,11 +142,6 @@ but are documented here for packagers and developers:
142142* `deb`: Creates debian packages in `..` directory.
143143* `macport`: Creates MacPorts Portfile in `macports` directory.
144144* `freebsd`: Creates freebsd Makefile and distinfo in `freebsd` directory.
145−* `osx-pkg-prep`: Prepares for building a MacOS X package.
146−* `osx-pkg`: Builds a MacOS X package (must be run as root, and on OS X).
147− You should make `osx-pkg-prep` first (not as root).
148−* `osx-dmg`: Creates a compressed disk image containing Mac OS X package
149− (must be run on OS X). You should make `osx-pkg` first.
150145* `win-pkg`: Creates a Windows binary package (presupposes `pandoc.exe`,
151146 which must be created by building Pandoc on a Windows machine).
152147* `website`: Creates Pandoc's website in `web/pandoc` directory.
Makefile−54
@@ -263,60 +263,6 @@ $(portfile) : $(portfile_template) $(tarball)
263263 sed -e 's/@TARBALLMD5SUM@/$(word 2, $(shell openssl md5 $(tarball)))/' > \
264264 $(portfile)
265265
266−# OSX packages: make osx-pkg-prep, then (as root) make osx-pkg
267−.PHONY: osx-pkg osx-pkg-prep
268−osx_dest:=osx-pkg-tmp
269−osx_src:=osx
270−doc_more:=COPYRIGHT.rtf $(osx_src)/Welcome.rtf
271−osx_pkg_name:=$(RELNAME).pkg
272−cleanup_files+=$(osx_dest) $(doc_more) $(osx_pkg_name)
273−osx-pkg-prep: $(osx_dest)
274−$(osx_dest)/: build-program $(doc_more)
275− -rm -rf $(osx_dest)
276− $(INSTALL) -d $(osx_dest)
277− DESTDIR=$(osx_dest)/Package_root $(MAKE) install-program
278− cp $(osx_src)/uninstall-pandoc $(osx_dest)/Package_root/usr/local/bin/
279− find $(osx_dest) -type f -regex ".*bin/.*" | xargs chmod +x
280− find $(osx_dest) -type f -regex ".*bin/$(notdir $(MAIN))" | xargs $(STRIP)
281− $(INSTALL) -d $(osx_dest)/Resources
282− ./$(MAIN) -s -S README -o $(osx_dest)/Resources/ReadMe.html
283− cp COPYRIGHT.rtf $(osx_dest)/Resources/License.rtf
284− sed -e 's#@PREFIX@#$(PREFIX)#g' $(osx_src)/Welcome.rtf > $(osx_dest)/Resources/Welcome.rtf
285− sed -e 's/@VERSION@/$(VERSION)/g' $(osx_src)/Info.plist > $(osx_dest)/Info.plist
286− cp $(osx_src)/Description.plist $(osx_dest)/
287−osx-pkg: $(osx_pkg_name)
288−$(osx_pkg_name)/: $(osx_dest)
289− if [ "`id -u`" != 0 ]; then \
290− echo "Root permissions needed to create OSX package!"; \
291− exit 1; \
292− fi
293− find $(osx_dest) | xargs chown root:wheel
294− PackageMaker -build -p $(osx_pkg_name) \
295− -f $(osx_dest)/Package_root \
296− -r $(osx_dest)/Resources \
297− -i $(osx_dest)/Info.plist \
298− -d $(osx_dest)/Description.plist
299− chgrp admin $(osx_pkg_name)
300− -rm -rf $(osx_dest)
301−
302−.PHONY: osx-dmg
303−osx_dmg_name:=$(RELNAME).dmg
304−cleanup_files+=$(osx_dmg_name)
305−osx_udzo_name:=$(RELNAME).udzo.dmg
306−osx_dmg_volume:="$(NAME) $(VERSION)"
307−osx-dmg: $(osx_dmg_name)
308−$(osx_dmg_name): $(osx_pkg_name)
309− -rm -f $(osx_dmg_name)
310− hdiutil create $(osx_dmg_name) -size 05m -fs HFS+ -volname $(osx_dmg_volume)
311− dev_handle=`hdid $(osx_dmg_name) | grep Apple_HFS | \
312− perl -e '\$$_=<>; /^\\/dev\\/(disk.)/; print \$$1'`; \
313− ditto $(osx_pkg_name) /Volumes/$(osx_dmg_volume)/$(osx_pkg_name); \
314− hdiutil detach $$dev_handle
315− hdiutil convert $(osx_dmg_name) -format UDZO -o $(osx_udzo_name)
316− -rm -f $(osx_dmg_name)
317− mv $(osx_udzo_name) $(osx_dmg_name)
318−
319−
320266.PHONY: win-pkg
321267win_pkg_name:=$(RELNAME).zip
322268win_docs:=COPYING.txt COPYRIGHT.txt BUGS.txt README.txt README.html