Here is the contents of the source Cygports file:
You better think of it as the source file of the Cygwin package.
cygport
is just a tool for automating the creation of binary and source Cygwin packages. This is the main tool available, but unlike some other packaging systems, it really doesn't force you to use it. It is quite possible to create the Cygwin package completely manually, because it really is nothing more than a tarball that Cygwin setup.exe
can blindly unzip to the Cygwin root directory (usually c:\cygwin
) with the expectation that it will put the package of files in reasonable places.
Before cygport
there were people who created their own special packaging systems. Many Cygwin supporters still use these tools that they created. (Indeed, at your disposal: two of my three packages use cygport
, but the third still uses a custom build system.)
Ultimately, you want to read the cygport
in /usr/share/doc/cygport/manual.html
.
(Yes, I know, the "RTFM" answers here are incredulous. But, as the one who currently supports two cygport
based cygport
in the official Cygwin package repository, trust me when I tell you that the manual is still the only best resource available on this topic.)
How the .cygport file will help me run the correct options in. / configure?
As you learned from other resources, you first need to edit the value of CYGCONF_ARGS
in the .cygport
file.
The easiest possible step after this is cygport gedit-3.4.2-1.cygport all
. It tries to rebuild all binary packages in one step. It also creates a new source package containing updated .cygport
and patch files.
If something breaks down during the all
build process, it is usually faster to switch to using the subcommands contained in all
rather than restarting the process completely. The all
step launches prep
, compile
, install
, package
and finish
for you in that order. For example, if all
does not work at the compilation stage, there is no need to repeat the prep
step.
(Optional for cygport
or a string assembly system, to destroy the assembly tree by forcing you to rerun prep
. Most often you need to rerun prep
when you manually destroy the assembly tree, trying to get a new assembly package for the first time and get it working.)
For example, in gedit, if I do not specify --disable-spell, it will not work due to an error.
Perhaps you can fix this by installing the libaspell-devel
from the official Cygwin package repository with setup.exe
.
Personally, I would not disable the function, if this does not mean installing unofficial packages, for example, from a project
Can I use the cygport executable to build cygport and change the prefix?
You guessed it, just add --prefix=/my/private/program/tree
to CYGCONF_ARGS
, I hope.
[*] If you feel embarrassed about the "Cygwin ports" and cygport
, the similarity of names is not a coincidence. cygport
is a tool created by Yaakov Selkovich for himself when creating the Cygwin Ports package repository. Later, it became quite popular among the other accompanying Cygwin packages that it superseded most competing build systems.