Magellan Linux

Diff of /trunk/include/cmake.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/magellan-next/include/cmake.sminc revision 6654 by niro, Tue Sep 14 16:46:32 2010 UTC trunk/include/cmake.sminc revision 22307 by niro, Fri Sep 19 13:02:41 2014 UTC
# Line 96  cmake_build_not() Line 96  cmake_build_not()
96   echo "-DBUILD_${feature}=OFF"   echo "-DBUILD_${feature}=OFF"
97  }  }
98    
99    # install cmake opts
100    cmake_install()
101    {
102     local feature="$1"
103     local option="$2"
104     echo "-DINSTALL_${feature}=${option}"
105    }
106    
107    # generic cmake opts
108    cmake_opt()
109    {
110     local feature="$1"
111     local option="$2"
112     echo "-D${feature}=${option}"
113    }
114    
115  cmake_src_prepare()  cmake_src_prepare()
116  {  {
117   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
# Line 114  cmake_configure() Line 130  cmake_configure()
130   fi   fi
131    
132   cmake \   cmake \
133     -DCMAKE_VERBOSE_MAKEFILE=ON \
134   -DCMAKE_BUILD_TYPE=Release \   -DCMAKE_BUILD_TYPE=Release \
135   -DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr} \   -DCMAKE_INSTALL_PREFIX=${PREFIX:-/usr} \
136   -DLIB_SUFFIX=${libsuffix} \   -DLIB_SUFFIX=${libsuffix} \
137   -DLIB_INSTALL_DIR=${PREFIX:-/usr}/$(mlibdir) \   -DLIB_INSTALL_DIR=${PREFIX:-/usr}/$(mlibdir) \
138   ${configure_opts} \   ${configure_opts} \
139   ${SRCDIR} \   ${SRCDIR}/${SRCSUBDIR} \
140   || die   || die
141  }  }
142    
# Line 138  cmake_src_compile() Line 155  cmake_src_compile()
155   mmake || die   mmake || die
156  }  }
157    
158    cmake_src_check()
159    {
160     #cd ${BUILDDIR}/build
161     #mmake -j1 -k check || die
162     return 0
163    }
164    
165  cmake_src_install()  cmake_src_install()
166  {  {
167   cd ${BUILDDIR}/build   cd ${BUILDDIR}/build
# Line 155  cmake_src_install() Line 179  cmake_src_install()
179   done   done
180  }  }
181    
182  export_inherits cmake src_prepare src_compile src_install  export_inherits cmake src_prepare src_compile src_check src_install

Legend:
Removed from v.6654  
changed lines
  Added in v.22307