diff options
-rw-r--r-- | lib/efl.rb | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -6,9 +6,13 @@ module Efl # VERSION = '0.0.8' # - PACKAGE_BIN_DIR = File.join `pkg-config --variable=exec_prefix ecore`.strip, 'bin' - PACKAGE_LIB_DIR = File.join `pkg-config --variable=exec_prefix ecore`.strip, 'lib' - PACKAGE_DATA_DIR = File.join `pkg-config --variable=exec_prefix ecore`.strip, 'share' + PREFIX=`pkg-config --variable=exec_prefix ecore`.strip + if PREFIX.empty? + puts "unable to determine Efl::PREFIX using pkg-config" + end + PACKAGE_BIN_DIR = File.join PREFIX, 'bin' + PACKAGE_LIB_DIR = File.join PREFIX, 'lib' + PACKAGE_DATA_DIR = File.join PREFIX, 'share' # autoload :EcoreEvas, './lib/efl/ecore_evas.rb' autoload :EcoreGetopt, './lib/efl/ecore_getopt.rb' |