X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Flyx.package.README;h=4d12f39af7c5592590d8d6d271a88a3fe62195c2;hb=06a45f16a73b7d0d3a2afb45c83fe023c119ce81;hp=55b08d965c6d86e6c98cf3f8f881f179ca4adaa9;hpb=dff3b19aeabef6c33ecd708c225b16ae1f32bb0d;p=lyx.git diff --git a/development/lyx.package.README b/development/lyx.package.README index 55b08d965c..4d12f39af7 100755 --- a/development/lyx.package.README +++ b/development/lyx.package.README @@ -1,12 +1,37 @@ Here is what to do to make binary packages using CMake. -Build LyX on your target system and build the package with cpack: -cpack -G --config CPackConfig.cmake +The string "_SRC_DIR_" represents the cmake-lyx-build-directory, e.g. /usr/src/lyx/lyx-devel/development/cmake. +The string "_BUILD_DIR_" represents the cmake-lyx-build-directory, e.g. /usr/BUILD/BuildLyx. +The string "_PKG_NAME_" represents the name of the package, like "lyx-2.0.1-Linux" on my Linux-system -Choose dependent on your system: -DEB, RPM, TGZ, NSIS, and others +Using cmake-gui: + cd _BUILD_DIR_; cmake-gui _SRC_DIR_ + select: Show Advanced Entries + Search: CPACK + Now select the package-type(s) you would like to be build + select: Configure + +Likewise you may call cmake directly. E.g. to create debian package + cd _BUILD_DIR_; cmake _SRC_DIR_ -DCPACK_BINARY_DEB:BOOL=ON +The generators (dependent on your system) are + DEB, RPM, TGZ, NSIS, STGZ, TBZ2, TZ + +Now it is possible to create the package + cd _BUILD_DIR_; make package + #The created packages will be something like + #_PKG_NAME_.tar.gz + #_PKG_NAME_.zip + #... + + +In archives for TGZ, STGZ, TBZ2 or TZ the filenames are prepended with the package-name, +therefore we have to get rid of it (e.g. for STGZ the parameter "--exclude-subdir"). +Some installation proceedings: + STGZ: sudo _PKG_NAME_.sh --exclude-subdir + TGZ: sudo tar -zxv --strip-components 1 --directory / -f _PKG_NAME_.tar.gz + DEB: sudo dpkg -i _PKG_NAME_.deb + RPM: sudo rpm -U _PKG_NAME_.rpm See also: http://www.cmake.org/Wiki/CMake:CPackPackageGenerators http://www.cmake.org/cmake/help/cpack2.6docs.html -