Magellan Linux

Diff of /trunk/include/cmake.sminc

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

trunk/core/include/cmake.sminc revision 4858 by niro, Fri Feb 12 13:29:14 2010 UTC trunk/include/cmake.sminc revision 20976 by niro, Wed Feb 19 11:32:23 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} \
# 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    }
163    
164  cmake_src_install()  cmake_src_install()
165  {  {
166   cd ${BUILDDIR}/build   cd ${BUILDDIR}/build
167   make DESTDIR=${BINDIR} install || die   make DESTDIR=${BINDIR} install || die
168    
169     cd ${SRCDIR}
170   local i   local i
171   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
172   FAQ LICENSE NEWS README TODO   FAQ LICENSE NEWS README TODO
# Line 154  cmake_src_install() Line 178  cmake_src_install()
178   done   done
179  }  }
180    
181  export_inherits cmake src_prepare src_compile src_install  export_inherits cmake src_prepare src_compile src_check src_install

Legend:
Removed from v.4858  
changed lines
  Added in v.20976