2016-01-30 00:10:18 +01:00
|
|
|
# $NetBSD: Makefile-example,v 1.24 2016/01/29 23:10:18 rillig Exp $
|
2004-01-20 13:04:49 +01:00
|
|
|
|
|
|
|
# First paragraph - distfile and binary package data
|
2014-10-09 15:44:32 +02:00
|
|
|
# DISTNAME PKGNAME PKGREVISION CATEGORIES MASTER_SITES
|
2006-07-27 17:16:44 +02:00
|
|
|
# MASTER_SITE_SUBDIR EXTRACT_SUFX DISTFILES
|
2004-01-20 13:04:49 +01:00
|
|
|
DISTNAME= make-3.80
|
|
|
|
PKGNAME= gmake-3.80 # only to be added if the package name is different from DISTNAME
|
|
|
|
#PKGREVISION= 2 # should be added/incremented for user-visible changes
|
2004-01-21 11:48:21 +01:00
|
|
|
CATEGORIES= devel gnu # multiple categories are allowed
|
2004-01-20 13:04:49 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=make/}
|
|
|
|
#EXTRACT_SUFX= .tar.bz2 # .tar.gz is the default, only needed in unusual circumstances
|
|
|
|
|
2009-05-18 19:09:43 +02:00
|
|
|
# Second paragraph - MAINTAINER/OWNER, HOMEPAGE and COMMENT, and LICEN[CS]E
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org # set this to your email address, pkgsrc-users@ is the default
|
2004-01-20 13:04:49 +01:00
|
|
|
HOMEPAGE= http://www.gnu.org/software/make/make.html
|
2004-01-21 11:33:16 +01:00
|
|
|
COMMENT= GNU version of 'make' utility # start with a capital, no articles at start
|
2012-09-06 13:06:58 +02:00
|
|
|
LICENSE= hptools-license # Licenses should be added to the pkgsrc/licenses directory.
|
2004-01-20 13:04:49 +01:00
|
|
|
|
2016-01-30 00:10:18 +01:00
|
|
|
# Paragraph for any build or run dependencies -- not libraries,
|
2010-01-10 17:32:03 +01:00
|
|
|
# those should be handled using buildlink3.mk files.
|
|
|
|
# Not needed for gmake, just an example:
|
|
|
|
# BUILD_DEPENDS+= automoc4-[0-9]*:../../devel/automoc4
|
|
|
|
|
2007-01-09 22:14:21 +01:00
|
|
|
# Set RESTRICTED to a very short explanation (typically "No permission to
|
|
|
|
# redistribute for a fee."). NO_*_ON_* may only be set to ${RESTRICTED}.
|
2004-01-21 11:48:21 +01:00
|
|
|
RESTRICTED= "Redistribution of unmodified source only; resale prohibited."
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
|
2012-09-30 11:10:36 +02:00
|
|
|
# if the package has to be created with root privileges
|
|
|
|
#PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
# if the package has to be installed directly
|
|
|
|
#PKG_DESTDIR_SUPPORT= none
|
2004-01-20 13:04:49 +01:00
|
|
|
|
2010-01-10 17:32:03 +01:00
|
|
|
# Sixth paragraph - all build definitions that describe things used by
|
2005-04-11 23:44:48 +02:00
|
|
|
# the package. These include: WRKSRC, GNU_CONFIGURE,
|
2004-05-14 20:58:26 +02:00
|
|
|
# HAS_CONFIGURE, USE_PKGLOCALEDIR, USE_INSTALL, TEXINFO_REQD, USE_JAVA,
|
2005-07-16 03:19:06 +02:00
|
|
|
# INFO_FILES, DIST_SUBDIR, etc.
|
2004-01-20 13:04:49 +01:00
|
|
|
DIST_SUBDIR= gmake
|
2004-01-21 11:48:21 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-04-09 03:14:52 +02:00
|
|
|
INFO_FILES= # defined if the package installs info files
|
2004-01-21 11:48:21 +01:00
|
|
|
TEXINFO_REQD= 4.0 # version of texinfo which is necessary
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
WRKSRC= ${WRKDIR}/src
|
2004-01-20 13:04:49 +01:00
|
|
|
|
2010-01-10 17:32:03 +01:00
|
|
|
# Seventh paragraph - file overrides; these are all *_OVERRIDE variables
|
2004-02-22 16:57:32 +01:00
|
|
|
LIBTOOL_OVERRIDE+= build/unix/tools/libtool
|
|
|
|
PKGCONFIG_OVERRIDE+= glib-2.0.pc.in
|
|
|
|
|
2010-01-10 17:32:03 +01:00
|
|
|
# Eighth paragraph - modification of configure and make environments
|
2004-02-22 16:57:32 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-gtk-doc
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_PYTHON="${PYTHONBIN}"
|
|
|
|
MAKE_ENV+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}"
|
|
|
|
|
2010-01-10 17:32:03 +01:00
|
|
|
# Ninth paragraph - different targets
|
2005-02-12 12:05:05 +01:00
|
|
|
# BUILD_TARGET, INSTALL_TARGET, TEST_TARGET
|
2004-01-20 13:04:49 +01:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
|
|
|
# always include bsd.prefs.mk before any .if or .ifdef statements
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(GNU_PROGRAM_PREFIX)
|
2004-01-21 11:48:21 +01:00
|
|
|
# indent nested "if" by 2 spaces please
|
|
|
|
. if ${GNU_PROGRAM_PREFIX} == "g"
|
2004-01-20 13:04:49 +01:00
|
|
|
CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
|
2004-01-21 11:48:21 +01:00
|
|
|
. endif
|
2004-01-20 13:04:49 +01:00
|
|
|
.endif
|
|
|
|
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
|
|
|
|
BUILD_DEFS+= GNU_PROGRAM_PREFIX
|
|
|
|
|
2004-11-11 07:05:55 +01:00
|
|
|
# buildlink3 files should come after all variables have been set,
|
2004-02-15 15:09:25 +01:00
|
|
|
# sorted alphabetically.
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
|
2005-07-27 12:02:17 +02:00
|
|
|
# The section that handles pthreads should come after all other buildlink3
|
2004-02-15 15:09:25 +01:00
|
|
|
# files have been included.
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if ${PTHREAD_TYPE} == "none"
|
|
|
|
CONFIGURE_ARGS+= --disable-threads
|
|
|
|
.endif
|
|
|
|
|
2004-01-20 13:04:49 +01:00
|
|
|
# Makefile targets should occur after all the other definitions in the file
|
|
|
|
post-install:
|
|
|
|
${CHMOD} g-s ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
|
|
|
|
${CHGRP} ${BINGRP} ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
|
|
|
|
.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
|
2004-01-21 11:48:21 +01:00
|
|
|
# Solaris's "ln -fs" is not the same as on *BSD - use an explicit rm(1) instead
|
|
|
|
${RM} -f ${PREFIX}/bin/gmake
|
|
|
|
${LN} -s ${GNU_PROGRAM_PREFIX}make ${PREFIX}/bin/gmake
|
2004-01-20 13:04:49 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# Finally, please include bsd.pkg.mk
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|