2006-10-16 10:08:00 -04:00
|
|
|
# $OpenBSD: Makefile.template,v 1.48 2006/10/16 14:08:00 steven Exp $
|
1999-05-18 12:39:02 -04:00
|
|
|
# $FreeBSD/NetBSD: credit FreeBSD/NetBSD if thats where the port came from $
|
|
|
|
# Original from: credit the original author here
|
|
|
|
#
|
|
|
|
# Replace ??? with appropriate values
|
|
|
|
# Remove extraneous comments before commit.
|
|
|
|
|
2001-03-07 21:55:32 -05:00
|
|
|
# Reasons why the port/package shouldn't be built
|
|
|
|
#
|
|
|
|
#ONLY_FOR_ARCHS= ???
|
2003-07-01 00:36:33 -04:00
|
|
|
#NOT_FOR_ARCHS= ???
|
2006-10-05 10:55:56 -04:00
|
|
|
#SHARED_ONLY= ???
|
2001-03-07 21:55:32 -05:00
|
|
|
#COMES_WITH= ???
|
|
|
|
#BROKEN= "reason"
|
|
|
|
|
2001-03-16 10:34:13 -05:00
|
|
|
#
|
|
|
|
# Very short description of the package, 60 chars max
|
|
|
|
#
|
2001-09-06 05:48:23 -04:00
|
|
|
COMMENT= "???"
|
|
|
|
# COMMENT-foo= "???" for multi packages
|
2001-03-16 10:34:13 -05:00
|
|
|
|
2002-12-12 02:29:02 -05:00
|
|
|
#
|
1999-05-18 12:39:02 -04:00
|
|
|
# What port/package will be created
|
|
|
|
#
|
|
|
|
DISTNAME= ???
|
|
|
|
#PKGNAME= ???
|
2001-03-16 10:34:13 -05:00
|
|
|
#PKGNAME-foo= ??? for multi packages
|
2006-10-05 10:55:56 -04:00
|
|
|
#SHARED_LIBS= ???
|
2001-08-30 17:43:10 -04:00
|
|
|
CATEGORIES= ???
|
2001-03-07 22:31:43 -05:00
|
|
|
|
|
|
|
#HOMEPAGE= ??? URL
|
|
|
|
|
|
|
|
# where to send bitches about this port
|
2001-04-13 11:52:16 -04:00
|
|
|
# Put a full-fledged email address, like
|
|
|
|
# MAINTAINER= John Doe <doe57@machine.somewhere.org>
|
2003-07-01 00:36:33 -04:00
|
|
|
# Default value is ports@openbsd.org, no need to fill in
|
2001-04-13 11:52:16 -04:00
|
|
|
#MAINTAINER= ???
|
2001-03-07 22:31:43 -05:00
|
|
|
|
|
|
|
# Licensing: This determines what we can distribute.
|
|
|
|
# When you determine the license type, make sure to look at ALL distfiles.
|
|
|
|
# Every distfile can have a different license. The PERMIT_* values are
|
|
|
|
# determined by the most restrictive license. If you have two licenses
|
|
|
|
# that are in conflict, set PERMIT_* based on the most restrictive one.
|
|
|
|
# Make SURE you get these values right.
|
|
|
|
|
2002-12-12 02:29:02 -05:00
|
|
|
# Put a comment there to state what's going on.
|
2001-04-13 11:52:16 -04:00
|
|
|
# Can be as brief as `BSD' or `GPL', but it'd better be easy to check,
|
|
|
|
# if someone wants to double-check licensing.
|
2001-03-07 22:31:43 -05:00
|
|
|
#PERMIT_PACKAGE_CDROM= Yes | "Reason if No"
|
|
|
|
#PERMIT_PACKAGE_FTP= Yes | "Reason if No"
|
|
|
|
#PERMIT_DISTFILES_CDROM=Yes | "Reason if No"
|
|
|
|
#PERMIT_DISTFILES_FTP= Yes | "Reason if No"
|
2005-11-11 19:07:22 -05:00
|
|
|
#WANTLIB= ???
|
2001-03-07 22:31:43 -05:00
|
|
|
|
1999-05-18 12:39:02 -04:00
|
|
|
# where the source files and patches can be fetched
|
|
|
|
#
|
|
|
|
MASTER_SITES= ???
|
2002-05-25 07:43:33 -04:00
|
|
|
#MASTER_SITES= ${MASTER_SITE_foo:=subdir/}
|
2000-02-15 13:18:10 -05:00
|
|
|
# if more master sites are needed...
|
|
|
|
#MASTER_SITES0=
|
|
|
|
# ...
|
1999-05-18 12:39:02 -04:00
|
|
|
#DISTFILES= ???
|
2001-03-07 21:55:32 -05:00
|
|
|
#EXTRACT_ONLY= ???
|
|
|
|
#EXTRACT_SUFX= .tar.Z
|
|
|
|
|
|
|
|
#DIST_SUBDIR= ???
|
|
|
|
|
2000-02-15 13:18:10 -05:00
|
|
|
# PATCHFILES are also retrieved from MASTER_SITES*
|
1999-05-18 12:39:02 -04:00
|
|
|
#PATCHFILES= ???
|
|
|
|
#PATCH_DIST_STRIP= -p0
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
#
|
2006-10-05 10:55:56 -04:00
|
|
|
#MODULES= ???
|
1999-05-18 12:39:02 -04:00
|
|
|
#BUILD_DEPENDS= ???
|
|
|
|
#RUN_DEPENDS= ???
|
|
|
|
#LIB_DEPENDS= ???
|
2003-07-01 00:36:33 -04:00
|
|
|
#REGRESS_DEPENDS= ???
|
1999-05-18 12:39:02 -04:00
|
|
|
|
2001-03-07 21:55:32 -05:00
|
|
|
#MAKE_FLAGS= ???
|
|
|
|
#MAKE_ENV= ???
|
|
|
|
#FAKE_FLAGS= ???
|
2003-07-01 00:36:33 -04:00
|
|
|
#REGRESS_FLAGS= ???
|
1999-05-18 12:39:02 -04:00
|
|
|
|
|
|
|
# build/configuration variables
|
|
|
|
#
|
|
|
|
#SEPARATE_BUILD= concurrent (build simultaneously on all arches)
|
|
|
|
#SEPARATE_BUILD= simple (configure/build still recreates files in source)
|
2000-10-22 12:06:25 -04:00
|
|
|
#USE_X11= Yes
|
2001-03-07 21:55:32 -05:00
|
|
|
#USE_GMAKE= Yes
|
2005-11-02 12:39:06 -05:00
|
|
|
# Programs that uses libtool should use this option,
|
2006-10-16 10:08:00 -04:00
|
|
|
# unless there is a really good reason not to.
|
2000-02-15 13:18:10 -05:00
|
|
|
#USE_LIBTOOL= Yes
|
2000-10-22 12:06:25 -04:00
|
|
|
# Set CONFIGURE_STYLE to value corresponding to some standard configuration
|
2004-05-26 07:20:26 -04:00
|
|
|
# perl [modbuild]: perl's MakeMaker Makefile.PL (modbuild: perl's
|
|
|
|
# Module::Build Build.PL)
|
2000-10-22 12:06:25 -04:00
|
|
|
# gnu [autoconf] [old] [dest]: gnu style configure (old: no
|
|
|
|
# sysconfdir), (dest: add DESTDIR, does not handle it),
|
|
|
|
# (autoconf: needed by port, implies gnu)
|
2002-12-12 02:29:02 -05:00
|
|
|
# XXX: cygnus products do NOT use autoconf for making the main
|
2000-10-22 12:06:25 -04:00
|
|
|
# configure from configure.in
|
|
|
|
# imake [noman]: port uses imake for configuration.
|
|
|
|
# (noman: no man page installation)
|
|
|
|
# simple: port has its own configure script
|
|
|
|
#CONFIGURE_STYLE=
|
1999-05-18 12:39:02 -04:00
|
|
|
#CONFIGURE_SCRIPT= ??? (if other than configure)
|
|
|
|
#CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
|
|
#CONFIGURE_ENV= ???
|
2001-03-07 21:55:32 -05:00
|
|
|
|
|
|
|
# Is the build automagic or is it interactive
|
|
|
|
#
|
|
|
|
#IS_INTERACTIVE= Yes
|
2003-07-01 00:36:33 -04:00
|
|
|
#REGRESS_IS_INTERACTIVE=Yes
|
1999-05-18 12:39:02 -04:00
|
|
|
|
2001-01-03 20:30:37 -05:00
|
|
|
# Assume you have one multiple choice flavor: 1 2 3 and switches a b.
|
|
|
|
# You would write
|
|
|
|
#
|
|
|
|
#FLAVORS=1 2 3 a b
|
2001-07-07 20:05:02 -04:00
|
|
|
#FLAVOR?=
|
2001-01-03 20:30:37 -05:00
|
|
|
# grab multiple choice value
|
|
|
|
#CHOICE=${FLAVOR:L:Na:Nb}
|
|
|
|
# check that CHOICE is 1 OR 2 OR 3, or error out
|
|
|
|
#.if ${CHOICE} == "1"
|
|
|
|
# code for 1
|
|
|
|
#.elif ${CHOICE} == "2"
|
|
|
|
# code for 2
|
|
|
|
#.elif ${CHOICE} == "3"
|
|
|
|
# code for 3
|
|
|
|
#.else
|
2001-07-18 06:59:00 -04:00
|
|
|
#ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
|
2001-01-03 20:30:37 -05:00
|
|
|
#.endif
|
|
|
|
# check for switches
|
|
|
|
#.if ${FLAVOR:L:Ma}
|
|
|
|
# code for a
|
|
|
|
#.endif
|
|
|
|
#.if ${FLAVOR:L:Mb}
|
|
|
|
# code for b
|
|
|
|
#.endif
|
|
|
|
|
1999-05-18 12:39:02 -04:00
|
|
|
# Things that we don't want to do for this port/package
|
2000-02-15 13:18:10 -05:00
|
|
|
# Generally, DON'T set anything to No if it's not needed.
|
|
|
|
# The time gained is not worth it.
|
1999-05-18 12:39:02 -04:00
|
|
|
#
|
2000-02-15 13:18:10 -05:00
|
|
|
#NO_DEPENDS= Yes
|
|
|
|
#NO_CHECKSUM= Yes
|
|
|
|
#NO_BUILD= Yes
|
|
|
|
#NO_PKG_REGISTER= Yes
|
2003-07-01 00:36:33 -04:00
|
|
|
#NO_REGRESS= Yes
|
1999-05-18 12:39:02 -04:00
|
|
|
|
|
|
|
# Overrides for default values
|
|
|
|
#
|
2001-03-07 21:55:32 -05:00
|
|
|
#CFLAGS= ???
|
|
|
|
#LDFLAGS= ???
|
2000-02-22 12:08:31 -05:00
|
|
|
#MAKE_FILE= ???
|
2004-02-18 15:05:14 -05:00
|
|
|
#PKG_ARCH= ???
|
1999-05-18 12:39:02 -04:00
|
|
|
#SCRIPTS_ENV= ???
|
2000-02-15 13:18:10 -05:00
|
|
|
#WRKDIST= ??? if other than ${WRKDIR}/$DISTNAME
|
|
|
|
#WRKSRC= ??? if other than ${WRKDIST}
|
2000-06-09 13:19:46 -04:00
|
|
|
#WRKBUILD= ??? if other than ${WRKSRC}
|
1999-05-18 12:39:02 -04:00
|
|
|
|
|
|
|
#ALL_TARGET= ???
|
|
|
|
#INSTALL_TARGET= ???
|
2003-07-01 00:36:33 -04:00
|
|
|
#REGRESS_TARGET= ???
|
1999-05-18 12:39:02 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|