Differential D29450 Diff 86573 documentation/content/en/books/porters-handbook/porting-samplem/chapter.adoc
Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/porters-handbook/porting-samplem/chapter.adoc
Show All 29 Lines | |||||
toc::[] | toc::[] | ||||
Here is a sample [.filename]#Makefile# that can be used to create a new port. Make sure to remove all the extra comments (ones between brackets). | Here is a sample [.filename]#Makefile# that can be used to create a new port. Make sure to remove all the extra comments (ones between brackets). | ||||
The format shown is the recommended one for ordering variables, empty lines between sections, and so on. This format is designed so that the most important information is easy to locate. We recommend using <<porting-portlint,portlint>> to check the [.filename]#Makefile#. | The format shown is the recommended one for ordering variables, empty lines between sections, and so on. This format is designed so that the most important information is easy to locate. We recommend using <<porting-portlint,portlint>> to check the [.filename]#Makefile#. | ||||
[.programlisting] | [.programlisting] | ||||
.... | .... | ||||
# $FreeBSD$ | |||||
[ ^^^^^^^^^ This will be automatically replaced with RCS ID string by SVN | |||||
when it is committed to our repository. If upgrading a port, do not alter | |||||
this line back to "$FreeBSD$". SVN deals with it automatically.] | |||||
[section to describe the port itself and the master site - PORTNAME | [section to describe the port itself and the master site - PORTNAME | ||||
and PORTVERSION or the DISTVERSION* variables are always first, | and PORTVERSION or the DISTVERSION* variables are always first, | ||||
followed by CATEGORIES, and then MASTER_SITES, which can be followed | followed by CATEGORIES, and then MASTER_SITES, which can be followed | ||||
by MASTER_SITE_SUBDIR. PKGNAMEPREFIX and PKGNAMESUFFIX, if needed, | by MASTER_SITE_SUBDIR. PKGNAMEPREFIX and PKGNAMESUFFIX, if needed, | ||||
will be after that. Then comes DISTNAME, EXTRACT_SUFX and/or | will be after that. Then comes DISTNAME, EXTRACT_SUFX and/or | ||||
DISTFILES, and then EXTRACT_ONLY, as necessary.] | DISTFILES, and then EXTRACT_ONLY, as necessary.] | ||||
PORTNAME= xdvi | PORTNAME= xdvi | ||||
DISTVERSION= 18.2 | DISTVERSION= 18.2 | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |