summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2012-12-06Introduce PKGGNUDIR as a way to control gnu prefix.jperkin1-1/+2
By default pkgsrc uses LOCABASE/gnu as a prefix for packages to install native versions of GNU tools, which are them symbolically linked back to the 'g' versions of the files in LOCALBASE, and users can then add LOCALBASE/gnu/bin to PATH to pick up those tools. On systems where the GNU environment is desired, PKGGNUDIR now allows users to install the non-'g' files directly into LOCALBASE, making them the default without having to alter PATH, whilst retaining the 'g' files in order to ensure dependencies and tool paths remain the same.
2012-07-18Pass down ${_PATH_ORIG} to privileged stage sub make instead of modified ${PATH}obache1-4/+2
for pkgsrc internally, It may cause some problems (ex. unwanted pick up commands of tools/wrapper). No objection in teck-pkg@ for a week.
2012-05-24Use ?= for setting PKGSRC_SETENV to make it easy to override in mk.confabs1-2/+2
2012-03-05Pass MKCATPAGES to packages that use BSD-style Makefiles.sbd1-1/+2
2011-10-15Rename "flavor" to "pkgformat".reed1-3/+3
This is from Anton Panev's GSoC 2011 project to add RPM and DPKG support to pkgsrc. (I am not adding that further support in this commit.) This is just a rename of the existing functionality. Now it will be easy to test the GSoC work by simply putting in a single directory (such as "rpm" or "deb"). See http://addpackageforma.sourceforge.net/ for some details. This is from Anton's CVS, but I made some minor changes: - changed plural pkgformats to singular pkgformat (to be consistent) - fixed a few places (in comments) that were missed - catch up on some additions to flavor not in the pkgforma cvs: PKGSRC_SETENV and _flavor-destdir-undo-replace and undo-destdir-replace-install.
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs1-2/+5
to santise environment
2011-03-12Add MULTI variable, and add it to BUILD_DEFS, to more easily findwiz1-1/+8
variable settings affecting binary packages. From Aleksey Cheusov in PR 44695.
2011-02-07Handle '-' in uname output, needed for DragonFly. From Justin Sherrill in PR ↵wiz1-2/+2
44526.
2010-11-03Removed duplicate PKGVERSION lineadam1-2/+1
2010-08-24I'm fed up with having to waste time because PKG_DEVELOPER is "special" andbad1-2/+2
can't be disabled by setting it to "no" like the other variables. Besides, flavor/pkg/metadata.mk has been expecting for a long time that "no" is a valid value. Make PKG_DEVELOPER DWIM.
2010-07-03Remove MKDIR line that causes the one following to effectivelydarcy1-2/+1
be a no-op. With this line removed the umask will be applied to the created directories. As discussed with joerg@.
2010-05-20On Linux systems record the glibc version in the build information.sbd1-1/+5
OKed by wiz@
2010-05-19Add BUILTIN_PKGS with the "builtin" package names to the build information.sbd1-1/+12
E.g if readline 6.0 and ncurses 5.7 are part of the system we get: BUILTIN_PKGS=readline-6.0 ncurses-5.7
2010-04-30Simplify the osabi dependence as suggested by wiz@.sbd1-2/+2
2010-04-30Improve the pattern of the osabi dependence again!sbd1-2/+2
2010-04-30Change the pattern of the osabi dependence to one the actually works!sbd1-2/+2
2010-04-30Make all packages that set OSVERSION_SPECIFIC depends on pkgtools/osabi.sbd1-1/+2
Also include a note about changes to OS_VERSION in bsd.prefs.mk
2010-02-23Retire check for ONLY_FOR_ARCHS, NOT_FOR_ARCHS and NOT_FOR_OPSYS.joerg1-6/+1
2010-02-23Retire check for MASTER_SITE_SUBDIR and PATCH_SITE_SUBDIR.joerg1-9/+1
2010-02-23Retire check for ALL_TARGET. It was added before 2005.joerg1-5/+1
2010-02-23Retire check for NO_WRKSUBDIR. It's been deprecated in 2001 and has beenjoerg1-6/+1
an error almost as long.
2010-02-23Remove check for buildlink-x11 -- it's been removed in 2002.joerg1-11/+1
2010-02-20Handle MANINSTALL correctly for packages that USE_BSD_MAKEFILE.rillig1-1/+2
Fixes PR 42714.
2009-11-03Create the work directory itself with umask 077 to prevent access tojoerg1-2/+3
files with broken permissions (e.g. world-writable files).
2009-09-10Replace tab with space.joerg1-2/+2
2009-07-26Added an experimental target "import" that makes it easier to importrillig1-1/+4
packages from pkgsrc-wip and other sources.
2009-05-26Accept _AUTOMATIC=yes.obache1-2/+2
At least, set as "yes" in mk/flavor/pkg/depends.mk, and accept both "YES" and "yes" in flavor/pkg/install.mk. Fixes PR 41422.
2009-04-09Remove support for NO_PACKAGE.joerg1-7/+1
2009-04-08Switch to the license handling in license.mk.wiz1-29/+2
The following licenses are accepted by default: public-domain gnu-gpl-v2 gnu-lgpl-v2 gnu-gpl-v3 gnu-lgpl-v3 original-bsd modified-bsd x11 apache-2.0 cddl-1.0 open-font-license All packages should now be converted to define their LICENSE. Show a warning when PKG_DEVELOPER is set but LICENSE is not defined.
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-1/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-02-06Fix circular dependency detection for the case of non-leading circles.joerg1-6/+6
For the dependency chain A->B->B the old code created: _PKGSRC_DEPS=", B-1.0, A-1.0", which obviously can't match the PKGNAME of B. Skip the _flavor-bootstrap-depends processing if PKG_FAIL_REASON is already set and move the check for circular dependencies right after the block that defines PKGNAME and friends.
2008-09-22For packages setting USE_BSD_MAKEFILE, explicitly set MKHTML to no.dillo1-1/+2
This makes these packages build with the changed default in recent NetBSD -current. Approved by agc.
2008-08-19For no real reason, but per the "discussion" on tech-pkg, default theagc1-2/+2
creation of a symbolic link to the real work directory to "no".
2008-07-21Restore default behaviour for creating a symbolic link to the ${WRKDIR},agc1-2/+2
which was lost when this definition was introduced without prior discussion.
2008-06-14Set MAINTAINER to OWNER if the latter is set.dillo1-1/+5
Somehow this got lost from the original OWNER support commit.
2008-06-12Move META_PACKAGE logic from bsd.pkg.mk to bds.prefs.mk, otherwise itjoerg1-19/+1
can't define destdir support.
2008-06-12Annotate whether a package was built with DESTDIR.joerg1-1/+2
2008-05-26Move meta package override earlier.joerg1-20/+19
2008-05-25Explicitly add pax dependency in those Makefiles that use it (or havejoerg1-2/+2
patches to add it). Drop pax from the default USE_TOOLS list. Make bsdtar the default for those places that wanted gtar to extract long links etc, as bsdtar can be built of the tree.
2008-05-23PKGNAME_NOREV is used to define the DIST_SUBDIR in some places, sojoerg1-19/+31
ensure it is defined with the rest of the PKGNAME_* variables before including the phase variable files.
2008-05-22Move digest dependency into checksum and fetch part.joerg1-4/+1
Make _ALL_FILES and in turn _CKSUMFILES available earlier. Use it to only depend on digest if _CKSUMFILES is non-empty. NO_CHECKSUM will now only skip the checksum and checksum-phase targets. FAILOVER_FETCH will independently check the sums on distfiles and depend on digest, fixing the remaining issues originally raised in PR 34914.
2008-05-21Commit a workaround for the "make replace fails as non-root" bug:tnn1-2/+2
Make sure _PKGSRC_BARRIER is set when using just-in-time su. I've been running this for a long time in my tree without ill effects. For more information see PR pkg/34470 and PR pkg/38505.
2008-04-03Move handling of pkg_install version into flavor. Add an explicitjoerg1-21/+1
phase pkg_install-depends before bootstrap-depends that just tries to install a new pkg_install if the current version is too old. Still keep it as bootstrap dependency for the bulk build code. For NetBSD, PKG_TOOLS_BIN has to be computed in shell code due to a make bug. OK: jlam@
2008-03-08Add PKGVERSION_NOREV to complemenet PKGNAME_NOREV.joerg1-1/+3
2008-02-26Split PKGTOOLS_REQD into two parts. If we don't have PKGTOOLS_REQD,joerg1-4/+7
but something after PKGTOOLS_BASE_REQD, just register a bootstrap dependency.
2008-02-13Pass the proper flags for stripping binaries to packages using BSD Make.rillig1-1/+2
2008-02-10Enable fake home directory support. Also add a wrkref check because antnn1-1/+10
embedded path to the HOME directory can be a security problem if, say, the package looks in the HOME directory of an unprivileged user for configuration files. Note that this has the potential to cause some short-term fallout.
2008-02-07Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig1-5/+5
2008-01-16pkg_install 20070802 is good enough, don't be overly aggressive.joerg1-4/+1
2008-01-13Bump PKGTOOLS_REQD to 20071224 so everyone still has the functionalityadrianp1-2/+2
that used to be in security/audit-packages.