Changes between Version 15 and Version 16 of PortingTips
- Timestamp:
- 04/28/09 11:08:22 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortingTips
v15 v16 57 57 Also note that doing so may, depending on the project, result in more dependencies but might be easier to handle, for instance when modifying {{{configure.in}}} or {{{Makefile.am}}} instead of an Autoconf-generated {{{configure}}} or Automake-generated {{{Makefile}}}. 58 58 59 == Building to a clean folder and making a binary==59 == Preparing an archive for distribution == 60 60 61 Many packages have an option to do a "make install", in many of those cases you can use:[[BR]] 61 There are two methods for creating an archive for distribution, using DESTDIR and using diff_zip. [[BR]] 62 [[BR]] 63 For both situations, please use the following nomeclature as the <archivename> : [[BR]] 64 <packagename>-<version>-<gcc-version>-<os>-<date>.zip [[BR]] 62 65 {{{ 66 <packagename> = is the name of the software. 67 <version> = the revision number of the actual software. 68 <gcc-version> = [ gcc2 | gcc4 ] 69 <os> = [ haiku | zeta | bone ] 70 <date> YYYY-MM-DD format and can be extracted by running `date +%Y-%m-%d` 71 }}} 72 [[BR]] 73 DESTDIR is the preferred method : [[BR]] 74 {{{ 75 mkdir /boot/foo 63 76 make install DESTDIR=/boot/foo 64 77 cd /boot/foo/boot 65 zip -r y9 packagename-x.x.x-gccX-haiku-YYYY-MM-DD.zip *78 zip -r9y <archivename>.zip * 66 79 }}} 67 Where x.x.x is the rev of the package, and gccX is gcc2 or gcc4, haiku could also be beos or bone or zeta, YYYY is the 4 digit year, MM is the 2 digit month, DD is the 2 digit day (both zero padded). 80 [[BR]] 81 diff_zip is an alternate method : [[BR]] 82 Some software packages do not support the use of DESTDIR. For these cases, diff_zip is your friend. It was added to Haiku's source tree in [http://lists.berlios.de/pipermail/haiku-commits/2008-April/007561.html revision 24849]. Once the newly compiled software is ready to install, diff_zip is run in a second Terminal session. diff_zip will patiently wait for you to install the software. After installation, return to the second Terminal session to inform diff_zip to archive the newly added files. 83 {{{ 84 [terminal 1] make 85 [terminal 2] cd ~/upload 86 [terminal 2] diff_zip -r9y <archivename> -- <paths> 87 [terminal 1] make install 88 [terminal 2] #press enter to activate diff_zip 89 }}} 90 68 91 69 92 == Using CMake ==
