XQuartz: Add --with-bundle-version and --with-bundle-version-string configure options
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
		
							parent
							
								
									c1614928c1
								
							
						
					
					
						commit
						d6ba4f2c52
					
				
							
								
								
									
										10
									
								
								configure.ac
								
								
								
								
							
							
						
						
									
										10
									
								
								configure.ac
								
								
								
								
							| 
						 | 
				
			
			@ -559,6 +559,16 @@ AC_ARG_WITH(bundle-id-prefix,  AS_HELP_STRING([--with-bundle-id-prefix=RDNS_PREF
 | 
			
		|||
                               [ BUNDLE_ID_PREFIX="${withval}" ])
 | 
			
		||||
AC_SUBST([BUNDLE_ID_PREFIX])
 | 
			
		||||
AC_DEFINE_UNQUOTED(BUNDLE_ID_PREFIX, "$BUNDLE_ID_PREFIX", [Prefix to use for bundle identifiers])
 | 
			
		||||
DEFAULT_BUNDLE_VERSION=`echo ${PACKAGE_VERSION} | cut -f1-3 -d.`
 | 
			
		||||
m4_define(DEFAULT_BUNDLE_VERSION, m4_esyscmd([echo ]AC_PACKAGE_VERSION[ | cut -f1-3 -d.]))
 | 
			
		||||
AC_ARG_WITH(bundle-version,    AS_HELP_STRING([--with-bundle-version=VERSION], [Version to use for X11.app's CFBundleVersion (default: ]DEFAULT_BUNDLE_VERSION[)]),
 | 
			
		||||
                               [ BUNDLE_VERSION="${withval}" ],
 | 
			
		||||
                               [ BUNDLE_VERSION="${DEFAULT_BUNDLE_VERSION}" ])
 | 
			
		||||
AC_SUBST([BUNDLE_VERSION])
 | 
			
		||||
AC_ARG_WITH(bundle-version-string, AS_HELP_STRING([--with-bundle-version-string=VERSION], [Version to use for X11.app's CFBundleShortVersionString (default: ]AC_PACKAGE_VERSION[)]),
 | 
			
		||||
                               [ BUNDLE_VERSION_STRING="${withval}" ],
 | 
			
		||||
                               [ BUNDLE_VERSION_STRING="${PACKAGE_VERSION}" ])
 | 
			
		||||
AC_SUBST([BUNDLE_VERSION_STRING])
 | 
			
		||||
AC_ARG_ENABLE(sparkle,AS_HELP_STRING([--enable-sparkle], [Enable updating of X11.app using the Sparkle Framework (default: disabled)]),
 | 
			
		||||
				[ XQUARTZ_SPARKLE="${enableval}" ],
 | 
			
		||||
				[ XQUARTZ_SPARKLE="no" ])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,9 +19,9 @@
 | 
			
		|||
	<key>CFBundlePackageType</key>
 | 
			
		||||
		<string>APPL</string>
 | 
			
		||||
	<key>CFBundleShortVersionString</key>
 | 
			
		||||
		<string>2.7.7</string>
 | 
			
		||||
		<string>BUNDLE_VERSION_STRING</string>
 | 
			
		||||
	<key>CFBundleVersion</key>
 | 
			
		||||
		<string>2.7.7</string>
 | 
			
		||||
		<string>BUNDLE_VERSION</string>
 | 
			
		||||
	<key>CFBundleSignature</key>
 | 
			
		||||
		<string>x11a</string>
 | 
			
		||||
	<key>CSResourcesFileMapped</key>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,8 +1,10 @@
 | 
			
		|||
include cpprules.in
 | 
			
		||||
 | 
			
		||||
CPP_FILES_FLAGS = \
 | 
			
		||||
	-DAPPLE_APPLICATION_NAME="$(APPLE_APPLICATION_NAME)" \
 | 
			
		||||
	-DBUNDLE_ID_PREFIX="$(BUNDLE_ID_PREFIX)" \
 | 
			
		||||
	-DAPPLE_APPLICATION_NAME="$(APPLE_APPLICATION_NAME)"
 | 
			
		||||
	-DBUNDLE_VERSION="$(BUNDLE_VERSION)" \
 | 
			
		||||
	-DBUNDLE_VERSION_STRING="$(BUNDLE_VERSION_STRING)"
 | 
			
		||||
 | 
			
		||||
if XQUARTZ_SPARKLE
 | 
			
		||||
CPP_FILES_FLAGS += -DXQUARTZ_SPARKLE -DXQUARTZ_SPARKLE_FEED_URL="$(XQUARTZ_SPARKLE_FEED_URL)"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue