Changeset 28504 in project


Ignore:
Timestamp:
03/12/13 05:29:56 (7 years ago)
Author:
Ivan Raikov
Message:

ploticus: extended setup script with ability to use custom install dir for libploticus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/ploticus/trunk/ploticus.setup

    r26803 r28504  
    1919                     (t ()    #f)))))
    2020
     21(define ploticus-dir (get-environment-variable "PLOTICUS_DIR"))
     22
    2123(define ld+cpp-options
    22   (or (ploticus-test ("#include <libploticus.h>" "-lploticus" ""))
    23       (ploticus-test ("#include <libploticus.h>" "-lploticus" "-I/usr/include/ploticus"))
    24       (ploticus-test ("#include <libploticus.h>" "-lploticus" "-I/opt/local/include"))
    25       (error "unable to figure out location of libploticus")))
     24  (or
     25   (and ploticus-dir (ploticus-test ("#include <libploticus.h>"
     26                                     (sprintf "-lploticus -L~S" (make-pathname ploticus-dir "lib") )
     27                                     (sprintf "-I~S -L~S"
     28                                              (make-pathname ploticus-dir "include")
     29                                              (make-pathname ploticus-dir "lib") ))
     30                                    ))
     31   (ploticus-test ("#include <libploticus.h>" "-lploticus" ""))
     32   (ploticus-test ("#include <libploticus.h>" "-lploticus" "-I/usr/include/ploticus"))
     33   (ploticus-test ("#include <libploticus.h>" "-lploticus" "-I/opt/local/include"))
     34   (error "unable to figure out location of libploticus")))
    2635
    2736
     
    4049
    4150  ; Assoc list with properties for your extension:
    42   `((version 1.2)))
     51  `((version 1.3)))
    4352
Note: See TracChangeset for help on using the changeset viewer.