summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2004-01-23Move all of the code that sets USE_XPKGWEDGE from bsd.pkg.mk intojlam2-45/+43
bsd.prefs.mk as it's needed in setting X11PREFIX to the correct value, which is also done in bsd.prefs.mk. This is the follow-through to the temporary fix in previous revision (1.141) of bsd.prefs.mk.
2004-01-23Add http://osdn.dl.sourceforge.net/sourceforge/ as a master site forjmmv1-1/+2
Sourceforge.
2004-01-23Temporary fix for xpkgwedge'd packages which were getting buildlinkedagc1-2/+3
with a prefix of X11BASE, rather than LOCALBASE - check whether USE_XPKGWEDGE is defined to {"YES", "yes"} as well as looking for the existence of the xpkgwedge definition file when calculating the value of X11PREFIX.
2004-01-22sandboxed builds also need /usr/dt and /usr/ucblib on Solaris.grant1-2/+2
2004-01-22Add three additional mirrors to MASTER_SITE_SUSE.xtraeme2-4/+8
2004-01-22make date format string more portable.grant1-2/+2
2004-01-21Most of this file only applies if we're in some phase after buildlink, sojlam1-1/+19
enforce that using PHASES_AFTER_BUILDLINK. Also, transform the physical path to ${WRKDIR} into the value ${WRKDIR} in the wrapper scripts. This allows ${WRKDIR} to be a path that traverses a symlink. In particular, it allows users to set WRKOBJDIR to point to a symlink.
2004-01-21Introduce concept of the "phase" that we're in as we progress throughjlam2-11/+25
fetching, extracting, configuring, building, etc. of a package. We can check what phase we're in by examining the value of ${PKG_PHASE} and comparing against PHASES_AFTER_<phase>, which list phases that are "greater than or equal to" <phase>. One useful example of how to use PKG_PHASE is: .if !empty(PHASES_AFTER_EXTRACT:${PKG_PHASE}) # # Some variable settings or targets here that rely on dependencies to # already be installed, or ${WRKDIR} to be created, etc., as these are # things that should have happened by the time "make extract" is # completed. # .endif
2004-01-21Put more debugging information in .work.log: first output the command thejlam2-4/+10
wrapper script will transform, then output the transformed command. Prefix the original command with [*] and the transformed command with <.> to ease scanning of .work.log.
2004-01-21Packages that use Kerberos are automatically categorized as restrictedjlam1-5/+12
packages.
2004-01-21Add a new command "sub-rpath" that does the same thing as "rpath" but onlyjlam2-2/+17
protects subdirectories of the named paths in rpath options to the linker. Use sub-rpath to protect /usr/lib/* in rpath options to the linker.
2004-01-21Rename 'submangle' to 'sub-mangle'jlam2-9/+9
2004-01-21Allow -L/usr/lib/* as NetBSD-current actually has shared libraries there,jlam1-3/+6
and we should allow these to pass untouched through the wrapper scripts.
2004-01-20s/it's/its/snj2-4/+4
2004-01-20add archivers/pax, net/tnftp, security/kth-krb4 and textproc/nbsed togrant1-7/+9
the packages to skip on non-NetBSD because they blow away bootstrap-pkgsrc installed files. only create ${PKG_DBDIR} if it doesn't already exist.
2004-01-20make this work on Solaris by using perl's internal grep(). it isgrant1-15/+28
faster, and (f)grep can't handle very long word lists.
2004-01-20reverse some "if ! command;" statements so this works with Solaris'grant1-9/+9
/bin/sh, which doesn't deal with ! bulk builds now work out-of-the-box on Solaris. woo :-)
2004-01-20missed a `uname -p`grant1-2/+2
2004-01-20get and use the value of ${MACHINE_ARCH} instead of `uname -p` togrant1-2/+3
correctly reflect the pkgsrc arch. (uname -p returns "unknown" on (my) Linux, which is not very helpful..)
2004-01-20tiny whitespace tweakgrant1-2/+2
2004-01-20on Linux, use --bind arg to mount(8) and call 'MAKEDEV generic' togrant1-2/+6
make the device files, as this is what Linux systems seem to use...
2004-01-19Fix PERL5_REQD=5.8 to mean that we want to install lang/perl58. Before,jlam1-2/+2
we were expecting PERL5_REQD=5.8.0.
2004-01-19Allow CONFIG_STATUS_OVERRIDE to override config.status scripts generatedjlam1-1/+15
by GNU configure scripts at CONFIGURE_POSTREQ time. The new config.status scripts merely return success. This prevents newer Makefiles from re-running the configure script with the wrong shell environment if we've touched some GNU autotool-related files during the patch stage. We might want to always do this, i.e. make this opt-out instead of opt-in. However, we start with opt-in so that no existing packages can break.
2004-01-19Remove some extraneous commands and switch some targets to be conditionallyjlam1-10/+5
defined.
2004-01-19* Create two new package-settable variables: BUILDLINK_PASSTHRU_DIRS isjlam1-76/+98
an extra list of paths denoting entire directory trees that will be unchanged by the wrapper scripts in options passed to the toolchain. BUILDLINK_PASSTHRU_RPATHDIRS is the same as BUILDLINK_PASSTHRU_DIRS but the the listed paths are only unchanged if used in an rpath option. * Garbage-collect _BLNK_BUILTIN_DIRS, which is superseded by _BLNK_PASSTHRU_DIRS. * Ensure that the correct set of directories is passed to the linker for the runtime library search path in the pkgviews case. * Allow -I/usr/include/* to be unchanged by the wrapper scripts. This allows building LKMs in pkgsrc, which need -I/usr/include/sys, using the buildlink3 wrapper scripts.
2004-01-19* Make the mangle and depot commands a bit more conservative in findingjlam1-5/+39
instances of directory paths to mangle. We now check that the path is either a word by itself, or else part of likely compiler/linker options (-[ILR]). * Add a new "submangle" command that does the same thing as mangle but restricts itself to only the directory tree below the named src directory.
2004-01-19Create a word separator $_sep variable and use throughout.jlam1-34/+36
2004-01-18As i described in <9883.1074028467@gould.diplodocus.org>epg1-1/+11
(http://mail-index.netbsd.org/tech-pkg/2004/01/13/0015.html) and <479.1074093881@gould.diplodocus.org> (http://mail-index.netbsd.org/tech-pkg/2004/01/14/0016.html), add an APR_USE_DB4 variable (defaulting to YES except on platforms where db4 is broken). devel/apr now builds without db4 when APR_USE_DB4 is NO.
2004-01-18We only need the special PLIST info-file handling if we're using staticjlam1-4/+6
PLISTs. Dynamic PLISTs automatically list the installed info files in the PLIST.
2004-01-17Be even less aggressive and just remove relative paths that start with "."jlam1-7/+7
in abs-rpath.
2004-01-17Fix overly aggressive substitution pattern in abs-rpath to allow thingsjlam1-7/+7
like "-Wl,-R${exec_prefix}/lib". This fixes any breakage in *-config scripts where the above example was being stripped out.
2004-01-17portability fixes:grant1-11/+22
- use AWK, GREP, SED and MAIL as set by defs.opsys.mk. - use $? to test exit code of programs
2004-01-17minor whitespace cleanup.grant1-15/+15
2004-01-17use GREP and SED as set by defs.opsys.mk so this works on non-NetBSD.grant1-5/+18
2004-01-15Use nbsed on Solaris, as xpg4 sed is no longer good enoughgavan1-2/+2
2004-01-15Support a new yes/no variable "KERBEROS_PREFIX_CMDS" that can be used byjlam1-1/+7
Kerberos implementation packages to decide whether to prefix certain commands with a "k" to differentiate it from system tools with similar names. KERBEROS_PREFIX_CMDS defaults to "no".
2004-01-15ensure we call chroot with the full path to 'sh'.grant1-2/+3
2004-01-15Also merge -Wl,-R -Wl,/path/to/dir into a single argument so that we canjlam1-3/+9
look it up in the cache.
2004-01-15'export VAR=value' doesn't work in some brain-dead shells. usegrant1-2/+3
'VAR=value; export VAR' instead.
2004-01-14Add warning to IGNORE_RECOMMENDED entry.wiz1-2/+6
2004-01-14 Add *RECOMMENDED variables as discussed on tech-pkg@ to allow for a morerh4-4/+45
fine-grained distinction between required versions of pre-requisites (DEPENDS) and versions that are recommended for security or library ABI consistency reasons (RECOMMENDED). The contents of ${RECOMMENDED} are added to DEPENDS unless IGNORE_RECOMMENDED is set to YES, in which case a warning will be printed and IGNORE_RECOMMENDED will be added to BUILD_DEFS. Add a corresponding BUILDLINK_RECOMMENDED.<pkg> variable for use with buildlink2 and buildlink3.
2004-01-13Add a new command "abs-rpath" to the gen-transform.sh script that removesjlam2-13/+29
rpath options that try to add relative paths to the runtime library search path. This basically partly cleans up after lazy programmers.
2004-01-13Differentiate between MAKE_FLAGS passed to the build, test and installjlam1-8/+11
targets by using BUILD_MAKE_FLAGS, TEST_MAKE_FLAGS, and INSTALL_MAKE_FLAGS in the respective targets. All of the new variables default to ${MAKE_FLAGS} to preserve the current behaviour.
2004-01-12Sync comment with reality: tell about USE_PKGINSTALL and discourage directsalo1-4/+4
inclusion of this file. Suggested bu cjep.
2004-01-12show-shlib-type: use return(0) instead of exit(0). eliminates agrant1-2/+2
warning from non-gcc. ok'd by agc.
2004-01-11Add ICECAST_CHUNKLEN and ICECAST_SOURCE_BUFFSIZE (for audio/icecast1).kim1-1/+15
2004-01-11Add X10_PORT for selecting the default serial port for the X10 adapter.kim1-1/+7
2004-01-11Use egrep instead of relying on GNU grep features. Fixes populating thejlam1-2/+2
buildlink directory on Solaris, which doesn't use GNU grep.
2004-01-11Back out the changes in revision 1.41 which were much more complex thanjlam1-21/+15
they needed to be. Now, when we're emitting untransform rules, we: (1) change everything back from ${BUILDLINK_DIR} and ${BUILDLINK_X11_DIR} back into ${LOCALBASE} and ${X11BASE}, (2) protect ${LOCALBASE} and ${X11BASE} from changes, (3) nuke all other compiler/linker options that have absolute paths that we haven't blessed, and (4) unmangle all of the protected directory names back into the right names. This should correctly fix the problem where "gtk-config --cflags" didn't emit any directories for glib headers.
2004-01-11"for arg; do" -> "for arg do", as the latter is more portable. fixesgrant2-4/+4
buildlink3's wrappers on Solaris.