Commit bb1046fb authored by François Grisez's avatar François Grisez

Add a target to build a MacOSX pkg file

parent f422cbc9
...@@ -210,6 +210,7 @@ Portfile-devel: $(top_srcdir)/scripts/Portfile-devel.tmpl dist ...@@ -210,6 +210,7 @@ Portfile-devel: $(top_srcdir)/scripts/Portfile-devel.tmpl dist
MACAPPNAME=Linphone.app MACAPPNAME=Linphone.app
MACAPPZIP=$(PACKAGE)-$(GITVERSION).app.zip MACAPPZIP=$(PACKAGE)-$(GITVERSION).app.zip
MACAPPDMG=$(PACKAGE)-$(GITVERSION).dmg MACAPPDMG=$(PACKAGE)-$(GITVERSION).dmg
MACAPPPKG=$(PACKAGE)-$(GITVERSION).pkg
BUNDLEPREFIX=./ BUNDLEPREFIX=./
BUNDLEDIR=$(BUNDLEPREFIX)$(MACAPPNAME) BUNDLEDIR=$(BUNDLEPREFIX)$(MACAPPNAME)
#a path prefix where additional libs can be cherry-picked by the bundler. #a path prefix where additional libs can be cherry-picked by the bundler.
...@@ -232,13 +233,16 @@ Linphone.app: ...@@ -232,13 +233,16 @@ Linphone.app:
patch -R ${BUNDLEDIR}/Contents/Resources/share/themes/Quartz/gtk-2.0/gtkrc ${srcdir}/build/macos/quartz-theme-gtkrc.patch patch -R ${BUNDLEDIR}/Contents/Resources/share/themes/Quartz/gtk-2.0/gtkrc ${srcdir}/build/macos/quartz-theme-gtkrc.patch
rm -f ${BUNDLEDIR}/Contents/Resources/lib/libopenh264* rm -f ${BUNDLEDIR}/Contents/Resources/lib/libopenh264*
bundle: Linphone.app bundle: $(MACAPPNAME)
cd $(BUNDLEDIR)/.. && rm -f $(MACAPPZIP) && zip -r $(MACAPPZIP) $(MACAPPNAME) && cd - cd $(BUNDLEDIR)/.. && rm -f $(MACAPPZIP) && zip -r $(MACAPPZIP) $(MACAPPNAME) && cd -
cd $(BUNDLEDIR)/.. && rm -f $(MAXAPPDMG) && hdiutil create $(MACAPPDMG) -srcfolder $(MACAPPNAME) -ov && cd - cd $(BUNDLEDIR)/.. && rm -f $(MAXAPPDMG) && hdiutil create $(MACAPPDMG) -srcfolder $(MACAPPNAME) -ov && cd -
signed-bundle: Linphone.app signed-bundle: $(MACAPPNAME)
codesign --deep -s $(BUNDLE_SIGNING_ID) $(BUNDLEDIR) codesign --deep -s $(BUNDLE_SIGNING_ID) $(BUNDLEDIR)
cd $(BUNDLEDIR)/.. && rm -f $(MAXAPPDMG) && hdiutil create $(MACAPPDMG) -srcfolder $(MACAPPNAME) -ov && cd - cd $(BUNDLEDIR)/.. && rm -f $(MAXAPPDMG) && hdiutil create $(MACAPPDMG) -srcfolder $(MACAPPNAME) -ov && cd -
pkg: $(MACAPPNAME)
pkgbuild --install-location /Applications --component $(MACAPPNAME) $(MACAPPPKG)
### ###
...@@ -249,8 +253,8 @@ clean-local: ...@@ -249,8 +253,8 @@ clean-local:
discovery: discovery:
touch specs.c touch specs.c
$(CC) --include $(top_builddir)/config.h \ $(CC) --include $(top_builddir)/config.h \
$(TUNNEL_CFLAGS) $(CFLAGS) $(MEDIASTREAMER2_CFLAGS) $(ORTP_CFLAGS) $(SIPSTACK_CFLAGS) $(CUNIT_CFLAGS) -E -P -v -dD specs.c $(TUNNEL_CFLAGS) $(CFLAGS) $(MEDIASTREAMER2_CFLAGS) $(ORTP_CFLAGS) $(SIPSTACK_CFLAGS) $(CUNIT_CFLAGS) -E -P -v -dD specs.c
.PHONY: Linphone.app .PHONY: $(MACAPPNAME)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment