Foreword
I continue to work on compiling Xorg. Step by step. Using BLFS book, SliTaz receipts and Xorg FTP mirror.
The order of compiling packages I take from the book. The latest versions of packages I find myself on the mirror. I find dependencies, analyzing files configure.ac and cook output. I take the descriptions from the files *.pc.
I do not know who came up with that in the receipt should be specified a license. It is easy to point out that the license of, say, GPL3. But! As part of Xorg there is no package with the "regular" license. Therefore, the license must include in the package. This is extra 1-20 kilobytes. I decided to put the license into the dev-packages if they are available.
In general, I lead a certain job. And as long as I like it.
Finally, a question on the topic.
The begin of typical Xorg package:
________________________________________
# SliTaz package receipt.
PACKAGE="xorg-libXi"
VERSION="1.7.2"
CATEGORY="x-window"
SHORT_DESC="Xorg library for the X Input Extension."
MAINTAINER="pankso@slitaz.org"
SOURCE="libXi"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WEB_SITE="http://www.x.org/"
WGET_URL="$XORG_MIRROR/lib/$TARBALL"
________________________________________
Why do I need an extra variable SOURCE?
I removed it by writing the following:
________________________________________
PACKAGE="xorg-libXi"
. . .
TARBALL="${PACKAGE#xorg-}-$VERSION.tar.bz2"
________________________________________
I believe that this is an elegant and versatile solution!
But, please, someone tell me, what is it?? — http://hg.slitaz.org/wok/rev/5ddb4d29b420
Author of this commit is Christopher Rogers. I immediately wrote him a letter, but, unfortunately, did not get any response.
Any tips? My receipts compiled just fine without the variable SOURCE.
Maybe this is some outdated rule?
OK, lets see cook
script: http://hg.slitaz.org/cookutils/file/f66c5d0bbc67/cook
Search for "SOURCE".
pkgsrc="${SOURCE:-$PACKAGE}-${KBASEVER:-$VERSION}"
We can use SOURCE or PACKAGE variables, and SOURCE have precedence.
if [ "$SOURCE" ]; then
source_stuff=$WOK/$SOURCE/stuff
fi
And some next lines, where variable SOURCE used the same way as in the line 145 (so, we can use $SOURCE or we are free not to use it).
___________________
I would like to hear the answer from Christopher. But, as I will be glad to anyone who shed at least some light on this question.