< prev index next >

common/autoconf/help.m4

Print this page

        

@@ -1,7 +1,7 @@
 #
-# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License version 2 only, as
 # published by the Free Software Foundation.  Oracle designates this

@@ -23,11 +23,11 @@
 # questions.
 #
 
 AC_DEFUN_ONCE([HELP_SETUP_DEPENDENCY_HELP],
 [
-  AC_CHECK_PROGS(PKGHANDLER, apt-get yum port pkgutil pkgadd)
+  AC_CHECK_PROGS(PKGHANDLER, apt-get yum pkg port pkgutil pkgadd)
 ])
 
 AC_DEFUN([HELP_MSG_MISSING_DEPENDENCY],
 [
   # Print a helpful message on how to acquire the necessary build dependency.

@@ -44,10 +44,12 @@
     case $PKGHANDLER in
       apt-get)
         apt_help     $MISSING_DEPENDENCY ;;
       yum)
         yum_help     $MISSING_DEPENDENCY ;;
+      pkg)
+        pkg_help     $MISSING_DEPENDENCY ;;
       port)
         port_help    $MISSING_DEPENDENCY ;;
       pkgutil)
         pkgutil_help $MISSING_DEPENDENCY ;;
       pkgadd)

@@ -139,10 +141,33 @@
     ccache)
       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
   esac
 }
 
+pkg_help() {
+  case $1 in
+    openjdk)
+      PKGHANDLER_COMMAND="sudo pkg install openjdk8" ;;
+    cups)
+      PKGHANDLER_COMMAND="sudo pkg install cups-client" ;;
+    freetype)
+      PKGHANDLER_COMMAND="sudo pkg install freetype2" ;;
+    ffi)
+      PKGHANDLER_COMMAND="sudo pkg install libffi" ;;
+    x11)
+      PKGHANDLER_COMMAND="sudo pkg install libX11 libXrender libXext libXtst libXt" ;;
+    ccache)
+      PKGHANDLER_COMMAND="sudo pkg install ccache" ;;
+    unzip)
+      PKGHANDLER_COMMAND="sudo pkg install unzip" ;;
+    zip)
+      PKGHANDLER_COMMAND="sudo pkg install zip" ;;
+    make)      
+      PKGHANDLER_COMMAND="sudo pkg install gmake" ;;
+  esac
+}
+
 port_help() {
   PKGHANDLER_COMMAND=""
 }
 
 pkgutil_help() {
< prev index next >