#
# Top-level Makefile for CUPS.
#
-# Copyright 2007-2016 by Apple Inc.
-# Copyright 1997-2007 by Easy Software Products, all rights reserved.
+# Copyright © 2007-2018 by Apple Inc.
+# Copyright © 1997-2007 by Easy Software Products, all rights reserved.
#
-# Licensed under Apache License v2.0. See the file "LICENSE" for more information.
+# Licensed under Apache License v2.0. See the file "LICENSE" for more
+# information.
#
include Makedefs
# Directories to make...
#
-DIRS = cups test $(BUILDDIRS)
+DIRS = cups $(BUILDDIRS)
#
dnl
dnl Common configuration stuff for CUPS.
dnl
-dnl Copyright 2007-2018 by Apple Inc.
-dnl Copyright 1997-2007 by Easy Software Products, all rights reserved.
+dnl Copyright © 2007-2018 by Apple Inc.
+dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved.
dnl
dnl Licensed under Apache License v2.0. See the file "LICENSE" for more
dnl information.
AC_ARG_WITH(components, [ --with-components set components to build:
- "all" (default) builds everything
- - "core" builds libcups and ipptool],
+ - "core" builds libcups and ipptool
+ - "libcups" builds just libcups],
COMPONENTS="$withval")
case "$COMPONENTS" in
all)
- BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
+ BUILDDIRS="test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
;;
core)
- BUILDDIRS="data locale"
+ BUILDDIRS="test locale"
+ ;;
+
+ libcups)
+ BUILDDIRS="locale"
;;
*)
AC_SUBST(LANGUAGES)
dnl macOS bundle-based localization support
-AC_ARG_WITH(bundledir, [ --with-bundledir set macOS localization bundle directory ],
+AC_ARG_WITH(bundledir, [ --with-bundledir set localization bundle directory ],
CUPS_BUNDLEDIR="$withval",[
if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
AC_SUBST(CUPS_BUNDLEDIR)
if test "x$CUPS_BUNDLEDIR" != x; then
AC_DEFINE_UNQUOTED(CUPS_BUNDLEDIR, "$CUPS_BUNDLEDIR")
+fi
+AC_ARG_WITH(bundlelang, [ --with-bundlelang set localization bundle base language (English or en) ],
+ cups_bundlelang="$withval",[
if test $host_os_version -ge 190; then
- CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/en.lproj"
+ cups_bundlelang="en"
else
- CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/English.lproj"
- fi
+ cups_bundlelang="English"
+ fi])
+else
+ cups_bundlelang=""
+fi
+
+if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
+ CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
else
CUPS_RESOURCEDIR=""
fi
with_xinetd
with_languages
with_bundledir
+with_bundlelang
with_exe_file_perm
with_config_file_perm
with_cupsd_file_perm
--with-components set components to build:
- "all" (default) builds everything
- "core" builds libcups and ipptool
+ - "libcups" builds just libcups
--with-privateinclude set path for private include files, default=none
--with-lpdconfig set URI for LPD config file
--with-smbconfig set URI for Samba config file
--with-rcstop set stop number for rc scripts
--with-xinetd set path for xinetd config files
--with-languages set installed languages, default=all
- --with-bundledir set macOS localization bundle directory
+ --with-bundledir set localization bundle directory
+ --with-bundlelang set localization bundle base language (English or en)
--with-exe-file-perm set default executable permissions value, default=0555
--with-config-file-perm set default ConfigFilePerm value, default=0640
--with-cupsd-file-perm set default cupsd permissions, default=0500
case "$COMPONENTS" in
all)
- BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
+ BUILDDIRS="test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
;;
core)
- BUILDDIRS="data locale"
+ BUILDDIRS="test locale"
+ ;;
+
+ libcups)
+ BUILDDIRS="locale"
;;
*)
#define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
_ACEOF
+fi
+
+
+# Check whether --with-bundlelang was given.
+if test "${with_bundlelang+set}" = set; then :
+ withval=$with_bundlelang; cups_bundlelang="$withval"
+else
if test $host_os_version -ge 190; then
- CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/en.lproj"
+ cups_bundlelang="en"
else
- CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/English.lproj"
+ cups_bundlelang="English"
fi
+fi
+
+else
+ cups_bundlelang=""
+fi
+
+if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
+ CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
else
CUPS_RESOURCEDIR=""
fi
/*
- * Location of macOS localization bundle, if any.
+ * Location of localization bundle, if any.
*/
-#if !TARGET_OS_IOS
+#if TARGET_OS_IOS
+# define CUPS_BUNDLEDIR "/System/Library/PrivateFrameworks/PrintKit.framework/Versions/A"
+#else
# define CUPS_BUNDLEDIR "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
-#endif /* !TARGET_OS_IOS */
+#endif /* TARGET_OS_IOS */
/*