tufte layout files:
[lyx.git] / development / lyx.package.README
blob4d12f39af7c5592590d8d6d271a88a3fe62195c2
1 Here is what to do to make binary packages using CMake.
3 The string "_SRC_DIR_" represents the cmake-lyx-build-directory, e.g. /usr/src/lyx/lyx-devel/development/cmake.
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.0.1-Linux" on my Linux-system
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
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     #...
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 _PKG_NAME_.rpm
35 See also:
36 http://www.cmake.org/Wiki/CMake:CPackPackageGenerators
37 http://www.cmake.org/cmake/help/cpack2.6docs.html