New upstream version 1.0.5
This commit is contained in:
74
packaging/MacOSX/Makefile.am
Normal file
74
packaging/MacOSX/Makefile.am
Normal file
@@ -0,0 +1,74 @@
|
||||
BUILDUSR = $(shell id -u):$(shell id -g)
|
||||
SUBDIRS = pulse
|
||||
|
||||
dmg: pkg
|
||||
rm -rf dmgroot
|
||||
mkdir dmgroot
|
||||
sudo cp -R OpenNX.pkg dmgroot
|
||||
cp $(srcdir)/OpenSC.webloc dmgroot
|
||||
$(srcdir)/mkdmg -o \
|
||||
-b $(srcdir)/folderbg.jpg \
|
||||
-f $(srcdir)/fileopts \
|
||||
-i $(srcdir)/volicon.icns \
|
||||
$(top_builddir)/OpenNX-$(FULLVERSION).dmg dmgroot
|
||||
sudo rm -rf dmgroot
|
||||
touch $@
|
||||
|
||||
createpkgroot: opennx.plist opennx-main.plist
|
||||
sudo rm -rf pkgroot
|
||||
mkdir -p pkgroot/Applications/OpenNX
|
||||
mkdir -p pkgroot$(prefix)
|
||||
$(srcdir)/mkbundle pkgroot/Applications/OpenNX/OpenNX.app OpenNXapp \
|
||||
$(top_srcdir)/extres/nx.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx-main.plist "OPNX"
|
||||
cp $(top_srcdir)/extres/nx-desktop.icns \
|
||||
pkgroot/Applications/OpenNX/OpenNX.app/Contents/Resources
|
||||
$(srcdir)/mkbundle "pkgroot/Applications/OpenNX/Session Administrator.app" OpenNXAdmin \
|
||||
$(top_srcdir)/extres/opennx-admin.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx.plist "" --admin
|
||||
$(srcdir)/mkbundle "pkgroot/Applications/OpenNX/Connection Wizard.app" OpenNXWizard \
|
||||
$(top_srcdir)/extres/opennx-wizard.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx.plist "" --wizard
|
||||
$(srcdir)/mkbundle "pkgroot/Applications/OpenNX/Uninstall OpenNX.app" "" \
|
||||
$(top_srcdir)/extres/opennx-uninstall.icns $(bindir)/macuninstall \
|
||||
$(srcdir)/opennx.plist ""
|
||||
$(srcdir)/mkbundle pkgroot/Library/OpenNX/Message.app OpenNXMessage \
|
||||
$(top_srcdir)/extres/nx.icns $(bindir)/opennx \
|
||||
$(srcdir)/opennx.plist "" --dialog ok --style info --caption CARDREMOVED --message CARDREMOVED
|
||||
|
||||
pkgdir: createpkgroot
|
||||
rm -rf nxbuild
|
||||
mkdir nxbuild
|
||||
(cd nxbuild ; DEST=$(abs_builddir)/pkgroot PFX=$(prefix) CC=$(CC) CXX=$(CXX) OSX_SDKFLAGS="$(OSX_SDKFLAGS)" $(abs_srcdir)/buildnx)
|
||||
$(MAKE) -C pulse PKGROOT=$(abs_builddir)/pkgroot upinstall
|
||||
$(MAKE) -C $(top_builddir) DESTDIR=$(abs_builddir)/pkgroot install
|
||||
$(MAKE) -C $(top_builddir) DESTDIR=$(abs_builddir)/pkgroot prefix=/usr install-man
|
||||
for lang in $(shell cat $(top_srcdir)/po/LINGUAS) ; do \
|
||||
$(INSTALL_DATA) $(WX_PREFIX)/share/locale/$$lang/LC_MESSAGES/wxstd.mo \
|
||||
pkgroot/$(localedir)/$$lang/LC_MESSAGES/ ; \
|
||||
done
|
||||
touch $@
|
||||
|
||||
pkg: pkgdir pkg.plist
|
||||
sudo chown -R -h root:admin pkgroot
|
||||
sudo chown -R root:wheel pkgroot/usr
|
||||
sudo chown -R root:admin pkgroot/usr/share/man/man1/*
|
||||
sudo chown root:wheel pkgroot/Library
|
||||
sudo chmod ug=rwx,o=rx pkgroot/Applications
|
||||
sudo chmod u=rwx,go=rx pkgroot/Library
|
||||
rm -rf OpenNX.pkg
|
||||
cd $(builddir) && $(PACKAGEMAKER) -build -p OpenNX.pkg -f pkgroot -v \
|
||||
-r $(srcdir)/pkgResources \
|
||||
-i $(srcdir)/pkg.plist \
|
||||
-d $(srcdir)/Description.plist
|
||||
sudo chown -R $(BUILDUSR) pkgroot
|
||||
touch $@
|
||||
|
||||
clean-local:
|
||||
test -d pkgroot && sudo rm -rf pkgroot || :
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
CLEANFILES = -rf pkg pkgdir dmg dmgroot nxbuild OpenNX.pkg scbuild
|
||||
EXTRA_DIST = Description.plist OpenSC.webloc buildnx buildopensc \
|
||||
buildsmbclient fileopts folderbg.jpg mkbundle mkdmg \
|
||||
pkgResources libsmbclient.h volicon.icns volicon.png
|
||||
Reference in New Issue
Block a user