Configuring the Makefile
is pretty
simple, and again we suggest looking at existing examples
before starting. Also, there is a
sample Makefile in this
handbook, so take a look and please follow the ordering of
variables and sections in that template to make the port easier
for others to read.
Consider these problems in sequence during the
design of the new Makefile
:
Does it live in DISTDIR
as a standard
gzip
ped tarball named something like
foozolix-1.2.tar.gz
? If so, go on
to the next step. If not, the distribution file format might
require overriding one or more of
DISTVERSION
, DISTNAME
,
EXTRACT_CMD
,
EXTRACT_BEFORE_ARGS
,
EXTRACT_AFTER_ARGS
,
EXTRACT_SUFX
, or
DISTFILES
.
In the worst case, create a custom
do-extract
target to override the
default. This is rarely, if ever, necessary.
本文及其他文件,可由此下載: ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/。
若有 FreeBSD 方面疑問,請先閱讀
FreeBSD 相關文件,如不能解決的話,再洽詢
<questions@FreeBSD.org>。
關於本文件的問題,請洽詢
<doc@FreeBSD.org>。