2018-10-05 00:11:04 -05:00

42 lines
1.3 KiB
Plaintext

temp notes file (-andy5995)
# common options for Cmake prior to `make install`
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
To see other install locations, use `cmake .. -LH`. In many cases, just
using CMAKE_INSTALL_PREFIX will be sufficient
# generating the man page
COMMAND ${XVFB_EXEC} --auto-servernum --server-num=770
${HELP2MAN} --name="3D multi-player real time strategy game" --section=6 -N -o
${HELP2MAN_OUT_PATH}${TARGET_NAME_MANPAGE} ${HELP2MAN_OUT_PATH}${TARGET_NAME}
DEPENDS ${TARGET_NAME})
ELSE()
add_custom_target(${TARGET_NAME_MANPAGE} ALL
COMMAND ${HELP2MAN} --name="${ZG_MANPAGE_DESCRIPTION}" --section=6 -N -o ${HELP2MAN_OUT_PATH}${TARGET_NAME_MANPAGE} ${HELP2MAN_OUT_PATH}${TARGET_NAME}
# Searcn and replace using 'git grep'
git grep -l 'original_text' | xargs sed -i 's/original_text/new_text/g'
# installing to a temp directory, preparation for packaging
mkdir install-build
cd install-build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DWANT_INSTALL_DATA=ON
make -j? (where ? is the number of CPU cores)
make install DESTDIR=$PWD/install-test
When packaging, binaries must be STRIPPED of debug symbols.
This is probably done automatically simply by changing the cmake build type to release.
For the slackbuild, the strip command is in the script.