version 1.10, 1999/02/18 02:25:39 |
version 1.11, 1999/03/01 00:26:08 |
|
|
<li>To avoid duplication, subscribe to the ports@openbsd.org |
<li>To avoid duplication, subscribe to the ports@openbsd.org |
mailing list - somebody may be already working on the same port as you. |
mailing list - somebody may be already working on the same port as you. |
<p> |
<p> |
<li>Create Makefile -- start with this skeleton |
<li>Create Makefile -- start with the provided Makefile template |
<a href="#makefile">makefile</a>. |
<code>/usr/ports/Makefile.template</code>. This file can |
|
be retrieved from any of the anoncvs servers or via the |
|
OpenBSD cvs/web source brouser system |
|
<a href="http://www.openbsd.org/cgi-bin/cvsweb/">http://www.openbsd.org/cgi-bin/cvsweb/</a>. |
<p> |
<p> |
<li><code>make fetch</code><br> |
<li><code>make fetch</code><br> |
This verifies that the master site, distname, and extract suffix are |
This verifies that the master site, distname, and extract suffix are |
|
|
In other words - iterate, test, test, iterate, ... |
In other words - iterate, test, test, iterate, ... |
</ol> |
</ol> |
Thank you for supporting the OpenBSD "ports" process! |
Thank you for supporting the OpenBSD "ports" process! |
<hr> |
|
<a name=makefile> |
|
<h2><font color=#e00000>Skeleton ports makefile</font></h2> |
|
</a> |
|
|
|
<code>;;;</code> indicates values that must be supplied by the |
|
porter. <strong>Remove extraneous comments when done.</strong> |
|
<pre> |
|
# $OpenBSD$ |
|
# |
|
|
|
# What port/package will be created |
|
# |
|
DISTNAME= ;;; |
|
#DIST_SUBDIR= ;;; |
|
#PKGNAME= ;;; |
|
CATEGORIES= ;;; |
|
|
|
# Reasons why the port/package shouldn't be built |
|
# |
|
#COMES_WITH= 2.3 |
|
#ONLY_FOR_ARCHS= list architectures here |
|
#BROKEN= "reason" |
|
#NO_CDROM= "reason" |
|
#RESTRICTED= "reason" |
|
#MIRROR_DISTFILE= no |
|
|
|
# where to send bitches about this port |
|
# |
|
MAINTAINER= ports@openbsd.org |
|
|
|
# where the source files and patches can be fetched |
|
# |
|
MASTER_SITES= ;;; |
|
#MASTER_SITE_SUBDIR= ;;; |
|
#DISTFILES= ;;; |
|
#PATCH_SITES= ;;; |
|
#PATCHFILES= ;;; |
|
#PATCH_DIST_STRIP= -p0 |
|
#EXTRACT_SUFX= .tar.Z |
|
#EXTRACT_CMD= ;;; |
|
#EXTRACT_BEFORE_ARGS= ;;; |
|
#EXTRACT_AFTER_ARGS= ;;; |
|
|
|
# Dependencies |
|
# |
|
#FETCH_DEPENDS= ;;; |
|
#BUILD_DEPENDS= ;;; |
|
#RUN_DEPENDS= ;;; |
|
#LIB_DEPENDS= ;;; |
|
|
|
# Is the build automagic or is it interactive |
|
# |
|
#IS_INTERACTIVE= yes |
|
|
|
# build/configuration variables |
|
# |
|
#USE_EGCC= yes |
|
#USE_EGXX= yes |
|
#USE_GMAKE= yes |
|
#USE_IMAKE= yes |
|
#USE_X11= yes (assumed if USE_IMAKE is yes) |
|
#USE_AUTOCONF= yes |
|
#GNU_CONFIGURE= yes (assumed if USE_AUTOCONF is yes) |
|
#HAS_CONFIGURE= yes (assumed if GNU_CONFIGURE is yes) |
|
#CONFIGURE_SCRIPT= ;;; (if other than configure) |
|
#.if !defined(NO_SHARED_LIBS) |
|
#CONFIGURE_ARGS+= --enable-shared |
|
#.endif |
|
#CONFIGURE_ARGS+= --enable-static |
|
#CONFIGURE_ENV= ;;; |
|
|
|
# Things that we don't want to do for this port/package |
|
# |
|
#NO_DEPENDS= yes |
|
#NO_WRKDIR= yes |
|
#NO_WRKSUBDIR= yes |
|
#NO_CHECKSUM= yes |
|
#NO_EXTRACT= yes |
|
#NO_PATCH= yes |
|
#NO_CONFIGURE= yes |
|
#NO_BUILD= yes |
|
#NO_INSTALL= yes |
|
#NO_MTREE= yes |
|
#NO_PACKAGE= yes |
|
#NO_PKG_REGISTER= yes |
|
|
|
# This section is only needed if man pages are distributed in compressed |
|
# form. Define MANCOMPRESSED and the man pages by section. The pages |
|
# will be uncompressed after being installed. |
|
# |
|
#MANCOMPRESSED= yes |
|
#MAN1= ;;; |
|
#MAN3= ;;; |
|
#MAN4= ;;; |
|
#MAN5= ;;; |
|
#MAN8= ;;; |
|
|
|
# Overrides for default values |
|
# |
|
#MAKEFILE= ;;; |
|
#MAKE_FLAGS= ;;; |
|
#MAKE_ENV= ;;; |
|
#SCRIPTS_ENV= ;;; |
|
#LDFLAGS= ;;; |
|
#WRKDIR= ;;; if other than work |
|
#WRKSRC= ;;; if other than ${WRKDIR}/$DISTNAME |
|
|
|
#ALL_TARGET= ;;; |
|
#INSTALL_TARGET= ;;; |
|
|
|
# This target may be necessary if a shared library may have been created |
|
# |
|
#post-install: |
|
# ${LDCONFIG} -m ${PREFIX}/lib |
|
|
|
.include <bsd.port.mk> |
|
</pre> |
|
<hr> |
<hr> |
<a href="porting.html"><img height=24 width=24 src=back.gif |
<a href="porting.html"><img height=24 width=24 src=back.gif |
border=0 alt=Porting></a> |
border=0 alt=Porting></a> |