1 # $NetBSD: Makefile-example,v 1.18 2009/05/18 17:09:43 agc Exp $
3 # First paragraph - distfile and binary package data
4 # DISTNAME PKGNAME PKGREVISION SVR4_PKGNAME CATEGORIES MASTER_SITES
5 # MASTER_SITE_SUBDIR EXTRACT_SUFX DISTFILES
7 PKGNAME= gmake-3.80 # only to be added if the package name is different from DISTNAME
8 #PKGREVISION= 2 # should be added/incremented for user-visible changes
9 CATEGORIES= devel gnu # multiple categories are allowed
10 MASTER_SITES= ${MASTER_SITE_GNU:=make/}
11 #EXTRACT_SUFX= .tar.bz2 # .tar.gz is the default, only needed in unusual circumstances
13 # Second paragraph - MAINTAINER/OWNER, HOMEPAGE and COMMENT, and LICEN[CS]E
14 MAINTAINER= pkgsrc-users@NetBSD.org # set this to your email address, pkgsrc-users@ is the default
15 HOMEPAGE= http://www.gnu.org/software/make/make.html
16 COMMENT= GNU version of 'make' utility # start with a capital, no articles at start
17 LICENSE= hptools-license # Licences should be added to the pkgsrc/licenses directory.
19 # Parapraph for any build or run dependencies -- not libraries,
20 # those should be handled using buildlink3.mk files.
21 # Not needed for gmake, just an example:
22 # BUILD_DEPENDS+= automoc4-[0-9]*:../../devel/automoc4
24 # Set RESTRICTED to a very short explanation (typically "No permission to
25 # redistribute for a fee."). NO_*_ON_* may only be set to ${RESTRICTED}.
26 RESTRICTED= "Redistribution of unmodified source only; resale prohibited."
27 NO_SRC_ON_CDROM= ${RESTRICTED}
28 NO_BIN_ON_FTP= ${RESTRICTED}
29 NO_BIN_ON_CDROM= ${RESTRICTED}
31 # Fifth paragraph - PKG_INSTALLATION_TYPES
32 PKG_INSTALLATION_TYPES= overwrite pkgviews # needed for package views-ready packages
33 # if the package can be created without root privileges
34 PKG_DESTDIR_SUPPORT= user-destdir
36 # Sixth paragraph - all build definitions that describe things used by
37 # the package. These include: WRKSRC, GNU_CONFIGURE,
38 # HAS_CONFIGURE, USE_PKGLOCALEDIR, USE_INSTALL, TEXINFO_REQD, USE_JAVA,
39 # INFO_FILES, DIST_SUBDIR, etc.
42 INFO_FILES= # defined if the package installs info files
43 TEXINFO_REQD= 4.0 # version of texinfo which is necessary
47 # Seventh paragraph - file overrides; these are all *_OVERRIDE variables
48 LIBTOOL_OVERRIDE+= build/unix/tools/libtool
49 PKGCONFIG_OVERRIDE+= glib-2.0.pc.in
51 # Eighth paragraph - modification of configure and make environments
52 CONFIGURE_ARGS+= --disable-gtk-doc
53 CONFIGURE_ENV+= ac_cv_path_PYTHON="${PYTHONBIN}"
54 MAKE_ENV+= PKG_SYSCONFDIR="${PKG_SYSCONFDIR}"
56 # Ninth paragraph - different targets
57 # BUILD_TARGET, INSTALL_TARGET, TEST_TARGET
60 # always include bsd.prefs.mk before any .if or .ifdef statements
61 .include "../../mk/bsd.prefs.mk"
63 .if defined(GNU_PROGRAM_PREFIX)
64 # indent nested "if" by 2 spaces please
65 . if ${GNU_PROGRAM_PREFIX} == "g"
66 CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
69 PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
70 BUILD_DEFS+= GNU_PROGRAM_PREFIX
72 # buildlink3 files should come after all variables have been set,
73 # sorted alphabetically.
74 .include "../../devel/gettext-lib/buildlink3.mk"
76 # The section that handles pthreads should come after all other buildlink3
77 # files have been included.
78 .include "../../mk/pthread.buildlink3.mk"
79 .if ${PTHREAD_TYPE} == "none"
80 CONFIGURE_ARGS+= --disable-threads
83 # Makefile targets should occur after all the other definitions in the file
85 ${CHMOD} g-s ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
86 ${CHGRP} ${BINGRP} ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
87 .if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
88 # Solaris's "ln -fs" is not the same as on *BSD - use an explicit rm(1) instead
89 ${RM} -f ${PREFIX}/bin/gmake
90 ${LN} -s ${GNU_PROGRAM_PREFIX}make ${PREFIX}/bin/gmake
93 # Finally, please include bsd.pkg.mk
94 .include "../../mk/bsd.pkg.mk"