]> git.lyx.org Git - lyx.git/blob - development/lyx.package.README
Move Lexer to support/ directory (and lyx::support namespace)
[lyx.git] / development / lyx.package.README
1 Here is what to do to make binary packages using CMake.
2
3 The string "_SRC_DIR_" represents the cmake-lyx-build-directory, e.g. /usr/src/lyx/lyx-devel.
4 The string "_BUILD_DIR_" represents the cmake-lyx-build-directory, e.g. /usr/BUILD/BuildLyx.
5 The string "_PKG_NAME_" represents the name of the package, like "lyx-2.1.38687-Linux" on my Linux-system
6
7 Using cmake-gui:
8     cd _BUILD_DIR_; cmake-gui _SRC_DIR_
9         select: Show Advanced Entries
10         Search: CPACK
11         Now select the package-type(s) you would like to be build
12         select: Configure
13
14 Likewise you may call cmake directly. E.g. to create debian package
15     cd _BUILD_DIR_; cmake _SRC_DIR_ -DCPACK_BINARY_DEB:BOOL=ON
16 The generators (dependent on your system) are
17     DEB, RPM, TGZ, NSIS, STGZ, TBZ2, TZ
18     
19 Now it is possible to create the package
20     cd _BUILD_DIR_; make package
21     #The created packages will be something like
22     #_PKG_NAME_.tar.gz
23     #_PKG_NAME_.zip
24     #...
25
26
27 In archives for TGZ, STGZ, TBZ2 or TZ the filenames are prepended with the package-name,
28 therefore we have to get rid of it (e.g. for STGZ the parameter "--exclude-subdir").
29 Some installation proceedings:
30     STGZ:       sudo _PKG_NAME_.sh --exclude-subdir
31     TGZ:        sudo tar -zxv --strip-components 1 --directory / -f _PKG_NAME_.tar.gz
32     DEB:        sudo dpkg -i _PKG_NAME_.deb
33     RPM:        sudo rpm -U --force _PKG_NAME_.rpm
34
35 See also:
36 http://www.cmake.org/Wiki/CMake:CPackPackageGenerators
37 http://www.cmake.org/cmake/help/cpack2.6docs.html