I think I've found CMake variables that correspond to all the required configure script options except one. Here are the original ones for quick reference.
Code: Select all
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var \
--sysconfdir=/etc \
--mandir=/usr/man
Code: Select all
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDLIB_INSTALL_DIR:PATH=/usr/lib${LIBDIRSUFFIX} \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-(localstatedir variable)
-DSYSCONF_INSTALL_DIR:PATH=/etc \
-DMAN_INSTALL_DIR:PATH=/usr/man
Second, you'll notice above that I can't seem to find any variable that corresponds to the localstatedir option. Anyone know of a viable equivalent for CMake? It's not in their documentation that I can find, so I'm not too optimistic that that it's particularly straightforward to come up with an equivalent in CMake.
I'd appreciate any input, including on whether I'm getting too pedantic here. I notice that not all slkbuilds for available packages, even in the official repos, cover all of the necessary variables, but I'd at least like to get this stuff down both for the sake of thoroughness and my own curiosity.