# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR The FreeBSD Project # This file is distributed under the same license as the FreeBSD Documentation package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: FreeBSD Documentation VERSION\n" "POT-Creation-Date: 2025-08-17 20:54+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: YAML Front Matter: description #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:1 #, no-wrap msgid "A sample Makefile that can be used to create a new FreeBSD Port" msgstr "" #. type: YAML Front Matter: title #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:1 #, no-wrap msgid "Chapter 14. A Sample Makefile" msgstr "" #. type: Title = #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:14 #, no-wrap msgid "A Sample Makefile" msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:52 msgid "" "Here is a sample [.filename]#Makefile# that can be used to create a new port." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:56 msgid "" "The format shown is the recommended one for crossref:order[, ordering] " "variables, empty lines between sections, and so on. This format is designed " "so that the most important information is easy to locate. Refer to " "crossref:testing[, the chapter about testing] to learn more about tools for " "linting, formatting, and checking the [.filename]#Makefile#." msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:67 #, no-wrap msgid "" "PORTNAME=\txdvi <1>\n" "DISTVERSION=\t18.2\n" "CATEGORIES=\tprint\n" "MASTER_SITES=\t${MASTER_SITE_XCONTRIB} <2>\n" "MASTER_SITE_SUBDIR=\tapplications\n" "PKGNAMEPREFIX=\tja-\n" "DISTNAME=\txdvi-pl18\n" "EXTRACT_SUFX=\t.tar.Z <3>\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:71 #, no-wrap msgid "" "PATCH_SITES=\tftp://ftp.sra.co.jp/pub/X11/japanese/ <4>\n" "PATCHFILES=\txdvi-18.patch1.gz xdvi-18.patch2.gz\n" "PATCH_DIST_STRIP=\t-p1 <5>\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:75 #, no-wrap msgid "" "MAINTAINER=\tasami@FreeBSD.org <6>\n" "COMMENT=\tDVI Previewer for the X Window System\n" "WWW=\t\thttp://xdvi.sourceforge.net/\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:78 #, no-wrap msgid "" "LICENSE=\tBSD2CLAUSE <7>\n" "LICENSE_FILE=\t${WRKSRC}/LICENSE\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:80 #, no-wrap msgid "RUN_DEPENDS=\tgs:print/ghostscript <8>\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:82 #, no-wrap msgid "USES=\t\tgmake <9>\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:87 #, no-wrap msgid "" "<10>\n" "IS_INTERACTIVE=\tyes <11>\n" "WRKSRC=\t\t${WRKDIR}/xdvi-new <12>\n" "GNU_CONFIGURE=\tyes <13>\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:92 #, no-wrap msgid "" "<14>\n" "OPTIONS_DEFINE=\tDOCS EXAMPLES FOO\n" "OPTIONS_DEFAULT=FOO\n" "OPTIONS_SUB=\tyes <15>\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:95 #, no-wrap msgid "" "FOO_DESC=\t\tEnable foo support\n" "FOO_CONFIGURE_ENABLE=\tfoo\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:98 #, no-wrap msgid "" "<16>\n" "MY_FAVORITE_RESPONSE=\t\"yeah, right\"\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:102 #, no-wrap msgid "" "<17>\n" "pre-fetch:\n" "\ti go fetch something, yeah\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:105 #, no-wrap msgid "" "post-patch:\n" "\ti need to do something after patch, great\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:108 #, no-wrap msgid "" "pre-install:\n" "\tand then some more stuff before installing, wow\n" msgstr "" #. type: delimited block . 4 #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:110 #, no-wrap msgid ".include <18>\n" msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:115 msgid "" "Section to describe the port itself and the master site -- `PORTNAME` and " "`PORTVERSION` or the `DISTVERSION*` variables are always first, followed by " "`CATEGORIES`, and then `MASTER_SITES`, which can be followed by " "`MASTER_SITE_SUBDIR`. `PKGNAMEPREFIX` and `PKGNAMESUFFIX`, if needed, will " "be after that. Then comes `DISTNAME`, `EXTRACT_SUFX` and/or `DISTFILES`, " "and then `EXTRACT_ONLY`, as necessary." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:116 msgid "" "Do not forget the trailing slash (`/`) if not using `MASTER_SITE_*` macros." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:117 msgid "Set this if the source is not in the standard \".tar.gz\" form." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:118 msgid "Section for distributed patches -- can be empty." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:119 msgid "" "If the distributed patches were not made relative to `WRKSRC`, this may need " "to be tweaked." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:122 msgid "" "Maintainer; *mandatory*! This is the person who is volunteering to handle " "port updates, build breakages, and to whom a users can direct questions and " "bug reports. To keep the quality of the Ports Collection as high as " "possible, we do not accept new ports that are assigned to " "\"ports@FreeBSD.org\"." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:123 msgid "License -- should not be empty." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:124 msgid "Dependencies -- can be empty." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:126 msgid "" "If the port requires GNU make instead of the default FreeBSD `make` " "(man:make[1]) to build. For example, some X applications require `xmkmf -a` " "to run, in which case the port would need `USES=imake`." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:127 msgid "" "This section is for other standard [.filename]#bsd.port.mk# variables that " "do not belong to any of the above." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:128 msgid "" "If the ports asks interactive questions during configure, build, install." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:129 msgid "If it extracts to a directory other than `DISTNAME`." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:130 msgid "" "If it requires a `configure` script generated by GNU autoconf to be run." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:131 msgid "This section is for handling ports options." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:132 msgid "" "Set `OPTIONS_SUB` if options will change the list of files in the " "crossref:plist[plist-sub, plist]." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:133 msgid "Non-standard variables to be used in the rules below." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:134 msgid "Special rules, in the order they are called by the ports framework." msgstr "" #. type: Plain text #: documentation/content/en/books/porters-handbook/porting-samplem/_index.adoc:134 msgid "Finally, the epilogue." msgstr ""