Update of /cvsroot/pure-data/packages/darwin_app In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23126
Modified Files: Makefile Log Message: first attempts at building a package using PackageMaker from the command line
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/packages/darwin_app/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 14 Aug 2004 15:22:18 -0000 1.1 --- Makefile 30 Aug 2004 02:11:24 -0000 1.2 *************** *** 13,16 **** --- 13,18 ---- HELP_DIR = $(PD_FILE_ROOT)/doc
+ # needed for PackageMaker.app since it needs absolute paths + PWD = $(shell pwd)
PD_MAJOR_VERSION = $(shell /usr/bin/grep 'Pd version' ../../pd/src/s_main.c | /usr/bin/cut -d '\' -f 1 | /usr/bin/cut -d ' ' -f 6 | /usr/bin/cut -d '.' -f 1) *************** *** 19,27 **** PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION)
! PACKAGE_NAME = pd-$(PD_VERSION) DMG_NAME = $(PACKAGE_NAME)
! UNIX_PACKAGE_NAME = $(PD_APP_NAME)-UNIX-$(PD_VERSION) UNIX_prefix = /usr/local UNIX_DESTDIR = pd-unix-root --- 21,31 ---- PD_VERSION = $(PD_MAJOR_VERSION).$(PD_MINOR_VERSION).$(PD_BUGFIX_VERSION)
! # release version for this distro ! PACKAGE_VERSION = beta3 ! PACKAGE_NAME = pd-$(PD_VERSION)-$(PACKAGE_VERSION) DMG_NAME = $(PACKAGE_NAME)
! UNIX_PACKAGE_NAME = $(PD_APP_NAME)-UNIX-$(PD_VERSION)-$(PACKAGE_VERSION) UNIX_prefix = /usr/local UNIX_DESTDIR = pd-unix-root *************** *** 339,343 ****
! darwin_unix_pkg: darwin_app_readme darwin_unix_pkg_welcome darwin_app_license # mk the unix dir install -d $(UNIX_DESTDIR)$(UNIX_prefix) --- 343,348 ----
! #darwin_unix_pkg: darwin_app_readme darwin_unix_pkg_welcome darwin_app_license ! darwin_unix_pkg: # mk the unix dir install -d $(UNIX_DESTDIR)$(UNIX_prefix) *************** *** 347,354 **** $(DESTDIR)$(INSTALL_PREFIX)/man \ $(UNIX_DESTDIR)$(UNIX_prefix) ! cd .. && install -p darwin_app/pd-unix.info $(UNIX_PACKAGE_NAME).info ! # ! # the "package" script is deprecated, got to find out the new way... ! # # delete cruft -find $(UNIX_DESTDIR) -name .DS_Store -delete --- 352,368 ---- $(DESTDIR)$(INSTALL_PREFIX)/man \ $(UNIX_DESTDIR)$(UNIX_prefix) ! # cd .. && install -p darwin_app/pd-unix.info $(UNIX_PACKAGE_NAME).info ! # cp text for pkg ! cp $(WELCOME_FILE) $(README_FILE) $(LICENSE_FILE) pkg ! # generate Description.plist ! sed -e 's/PACKAGE_PREFIX/$(PACKAGE_PREFIX)/' pkg/Description.plist.template \ ! | sed -e 's/PACKAGE_VERSION/$(PACKAGE_VERSION)/' \ ! | sed -e 's/PD_VERSION/$(PD_VERSION)/' \ ! > pkg/Description.plist ! # generate Info.plist ! sed -e 's/PACKAGE_PREFIX/$(PACKAGE_PREFIX)/' pkg/Info.plist.template \ ! | sed -e 's/PACKAGE_VERSION/$(PACKAGE_VERSION)/' \ ! | sed -e 's/PD_VERSION/$(PD_VERSION)/' \ ! > pkg/Info.plist # delete cruft -find $(UNIX_DESTDIR) -name .DS_Store -delete *************** *** 356,368 **** # set proper permissions sudo chown -R root:staff $(UNIX_DESTDIR)/$(UNIX_prefix) ! # /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker \ ! # -build \ ! # -p $(UNIX_PACKAGE_NAME).pkg \ ! # -f $(UNIX_DESTDIR) \ ! # -r . ! # cd .. && sudo package pd-unix-root $(UNIX_PACKAGE_NAME).info -d . -ignoreDSStore # install pkg docs ! # sudo install -m 644 $(LICENSE_FILE) ../$(UNIX_PACKAGE_NAME).pkg/Contents/Resources ! # sudo chown -R root:staff ../$(UNIX_PACKAGE_NAME).pkg/Contents/Resources
--- 370,389 ---- # set proper permissions sudo chown -R root:staff $(UNIX_DESTDIR)/$(UNIX_prefix) ! # build package ! /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker \ ! -build \ ! -p $(PWD)/$(UNIX_PACKAGE_NAME).pkg \ ! -f $(PWD)/$(UNIX_DESTDIR) \ ! -r $(PWD)/pkg \ ! -i $(PWD)/pkg/Info.plist \ ! -d $(PWD)/Description.plist ! # generate .info file ! sed -e 's/PACKAGE_PREFIX/$(PACKAGE_PREFIX)/' pkg/pd.info \ ! | sed -e 's/PACKAGE_VERSION/$(PACKAGE_VERSION)/' \ ! | sed -e 's/PD_VERSION/$(PD_VERSION)/' \ ! > $(UNIX_PACKAGE_NAME).pkg/Contents/Resources # install pkg docs ! # sudo install -m 644 $(LICENSE_FILE) $(UNIX_PACKAGE_NAME).pkg/Contents/Resources ! # sudo chown -R root:staff $(UNIX_PACKAGE_NAME).pkg/Contents/Resources