[PD-cvs] pd/src makefile.darwin_pkg,1.1.2.1,1.1.2.2
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Thu Mar 18 16:19:00 CET 2004
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25123
Modified Files:
Tag: devel_0_37
makefile.darwin_pkg
Log Message:
assembles Pd.app in /Applications now, but the app doesn't work yet
Index: makefile.darwin_pkg
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/makefile.darwin_pkg,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** makefile.darwin_pkg 14 Mar 2004 23:15:47 -0000 1.1.2.1
--- makefile.darwin_pkg 18 Mar 2004 15:18:58 -0000 1.1.2.2
***************
*** 10,16 ****
PACKAGE_NAME = pd-$(PD_VERSION)
-
DMG_NAME = $(PACKAGE_NAME)
darwin_pkg_clean:
-sudo rm -Rf ../installroot ../$(PACKAGE_NAME)*
--- 10,21 ----
PACKAGE_NAME = pd-$(PD_VERSION)
DMG_NAME = $(PACKAGE_NAME)
+ PD_APP_NAME = Pd
+
+ UNIX_PACKAGE_NAME = $(PD_APP_NAME)-UNIX-$(PD_VERSION)
+ UNIX_INSTALL_PREFIX = /usr/local
+ UNIX_DESTDIR = ../pd-unix-root
+
darwin_pkg_clean:
-sudo rm -Rf ../installroot ../$(PACKAGE_NAME)*
***************
*** 18,21 ****
--- 23,31 ----
+ darwin_app_clean: darwin_pkg_clean
+ -sudo rm -Rf $(UNIX_DESTDIR)
+ -rm -f ../$(PD_APP_NAME)
+
+
darwin_pkg_license:
# generate HTML version of License
***************
*** 42,46 ****
! dmg:
cd .. && mkdir "$(DMG_NAME)"
cd .. && mv $(PACKAGE_NAME).pkg "$(DMG_NAME)"
--- 52,95 ----
! darwin_app: DESTDIR = ../installroot
! darwin_app: INSTALL_PREFIX = /Applications/$(PD_APP_NAME).app/pd
! darwin_app: MANDIR = $(UNIX_DESTDIR)$(UNIX_INSTALL_PREFIX)/man
! darwin_app: GFLAGS = -DINSTALL_PREFIX=\"$(INSTALL_PREFIX)\"
! darwin_app: install darwin_pkg_license
! # create app wrapper launch script
! echo "#!/bin/sh" > ../$(PD_APP_NAME)
! echo "/usr/bin/open \"/Applications/Pd.app/Contents/MacOS/Pd.term\"; exit" \ >> ../$(PD_APP_NAME)
! chmod 0555 ../$(PD_APP_NAME)
! # set up app wrapper
! install -d "$(DESTDIR)$(INSTALL_PREFIX)/../Contents/MacOS"
! install -m555 ../darwin_pkg/Pd.term ../$(PD_APP_NAME) \
! "$(DESTDIR)$(INSTALL_PREFIX)/../Contents/MacOS"
! install -m444 ../darwin_pkg//Info.plist \
! "$(DESTDIR)$(INSTALL_PREFIX)/../Contents"
! install -d "$(DESTDIR)$(INSTALL_PREFIX)/../Contents/Resources"
! install -m444 ../darwin_pkg/*.icns \
! "$(DESTDIR)$(INSTALL_PREFIX)/../Contents/Resources"
! # mk the unix dir
! mkdir -p $(UNIX_DESTDIR)$(UNIX_INSTALL_PREFIX)
! # copy stuff to UNIX dirs
! cp -Rp $(DESTDIR)$(INSTALL_PREFIX)/bin \
! $(DESTDIR)$(INSTALL_PREFIX)/include \
! $(UNIX_DESTDIR)$(UNIX_INSTALL_PREFIX)
! cd .. && cp -f pd-unix.info $(UNIX_PACKAGE_NAME).info
! #
! # delete cruft
! -find $(DESTDIR) -name .DS_Store -delete
! -find $(UNIX_DESTDIR) -name .DS_Store -delete
! -rm -f 1
! # set proper permissions
! sudo chown -R root:staff $(UNIX_DESTDIR)/$(UNIX_INSTALL_PREFIX)
! cd .. && sudo package pd-unix-root $(UNIX_PACKAGE_NAME).info -d . -ignoreDSStore
! # install pkg docs
! sudo install -m 644 License.html ../$(UNIX_PACKAGE_NAME).pkg/Contents/Resources
! sudo chown -R root:staff ../$(UNIX_PACKAGE_NAME).pkg/Contents/Resources
!
! dmg: app_dmg
!
! pkg_dmg:
cd .. && mkdir "$(DMG_NAME)"
cd .. && mv $(PACKAGE_NAME).pkg "$(DMG_NAME)"
***************
*** 48,52 ****
cd .. && /bin/sh mkdmg "$(DMG_NAME)"
!
!
!
--- 97,105 ----
cd .. && /bin/sh mkdmg "$(DMG_NAME)"
! app_dmg: DESTDIR = ../installroot
! app_dmg: darwin_pkg_license
! cd .. && mkdir "$(DMG_NAME)"
! cd .. && mv $(UNIX_PACKAGE_NAME).pkg "$(DMG_NAME)"
! cd $(DESTDIR)/Applications && mv $(PD_APP_NAME).app ../../"$(DMG_NAME)"
! cd .. && cp README.txt LICENSE.txt "$(DMG_NAME)"
! cd .. && /bin/sh ../packages/darwin-pkg/mkdmg "$(DMG_NAME)"
More information about the Pd-cvs
mailing list