Chapter 3 ¥´³y Port §Ö³t¤W¤â½g

Table of Contents
3.1 ½s¼g Makefile
3.2 ¼¶¼g¸Ó³nÅ骺»¡©úÀÉ
3.3 ²£¥Í checksum ¥Î³~ªº distinfo ÀÉ
3.4 ÀËÅç port ¬O§_§¹¾ã¡B¥i¦æ
3.5 ¥H portlint ¨Ó§@ÀËÅç
3.6 ´£¥æ(Submit) port

¥»¸`¥D­n¤¶²Ð¦p¦ó¨Ó§Ö³t¥´³y port¡AµM¦Ó¡A «Ü¦h®É­Ô³o¨Ç¤º®e¨Ã¤£¬O«Ü°÷¥Î¡A«ØÄ³¾\Ū¥»¤å¥ó¤¤§ó²`¶øªº¦a¤è¡C

­º¥ý¨ú±o¸ÓÀ³¥Îµ{¦¡ªº­ì©lµ{¦¡½XÀ£ÁYÀÉ(tarball)¡A¨Ã§â¥¦©ñ¨ì DISTDIR¡A¹w³]¸ô®|À³¸Ó¬O /usr/ports/distfiles¡C

Note: ¤U­±ªº¨Ò¤l¡A¬O°²³]¨Ã¤£»Ý­n¦A­×§ï¸ÓÀ³¥Îµ{¦¡ªº­ì©l½X¡A´N¥i¥H¦b FreeBSD ¤W½sͦ¨¥\ªº¡F°²¦pÁٻݭn¥t¥~­×§ï¤~¯à¦¨¥\½sĶªº¸Ü¡A ¨º»ò½Ð°Ñ¦Ò¤U¤@³¹ªº»¡©ú¡C

3.1 ½s¼g Makefile

³Ì²³æªº Makefile ¤j·§¬O¹³³o¼Ë¡G

# New ports collection makefile for:   oneko
# Date created:        5 December 1994
# Whom:                asami
#
# $FreeBSD$
#

PORTNAME=      oneko
PORTVERSION=   1.1b
CATEGORIES=    games
MASTER_SITES=  ftp://ftp.cs.columbia.edu/archives/X11R5/contrib/

MAINTAINER=    asami@FreeBSD.org
COMMENT=       A cat chasing a mouse all over the screen

MAN1=          oneko.1
MANCOMPRESSED= yes
USE_IMAKE=     yes

.include <bsd.port.mk>

¶â¡A¤j­P´N¬O³o¼Ë¡A¬Ý¬Ý§A¤w¸g»â²¤¦h¤Ö¤F©O¡H ¬Ý¨ì $FreeBSD$ ³o¤@¦æªº¸Ü¡A§O·Q¤Ó¦h ¡A¥¦¬O RCS ID ¥Î³~¡A·í¸Ó port ¥¿¦¡¶i¤J port tree ®É¡A CVS ´N·|¦Û°ÊÂà´«¬°¬ÛÃö¦r¦êÅo¡C ¦³Ãö³oÂIªº²Ó¸`³¡¥÷¡A¥i¥H°Ñ¾\ sample Makefile ³¹¸`¡C

For questions about the FreeBSD ports system, e-mail <ports@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.