; $VER: Install_SPLib V6.1 (22.1.97)
; © 1994-97 by Andreas R. Kleinert.
; This is the Installer Script for superplay.library V6+


(set #cpu (database "cpu"))
(set @app-name "SuperPlay-Library")

(makedir "ENV:SuperPlay-Library")
(makedir "ENVARC:SuperPlay-Library")

(copylib
  (prompt "Installing superplay.library to LIBS: ...")
  (help @copylib-help)
  (source "libs/superplay.library")
  (set #splibdest
              (askdir
                     (prompt "Library Path")
                     (help @askdir-help)
                     (newpath)
                     (default "LIBS:")
              )
  )
  (dest #splibdest)
)

(set #spobjdest   (tackon #splibdest "spobjects"))
(makedir #spobjdest)

(copyfiles
  (prompt "Installing spobjects to LIBS:spobjects ...")
  (help @copyfiles-help)
  (source "libs/spobjects")
  (dest (tackon #splibdest "spobjects"))
  (pattern "#?")
  (confirm)
  (files)
)

(if (>= #cpu 68020)
  (
    (copyfiles
      (prompt "Installing special 68020+ versions of some spobjects");
      (help @copyfiles-help)
      (source "libs/68030")
      (dest #splibdest)
      (confirm)
      (all)
    )
  )
)
