summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2004-09-15Move definition of PKGNAME and PKGNAME_NOREV higher in the file since theirjlam1-14/+14
expanded values are used somewhere in the middle.
2004-09-11Finish off the locking work, by adding locks around "make install" andagc1-3/+13
"make package", from a nudge by Greg Oster. No objections, but lots of mail, received from pkgsrc developers, to committing this during the stability freeze, but I'd really like this to go in pkgsrc-2004Q3.
2004-09-10* Do the *.la expansion within the current _PLIST_AWK_SCRIPT framework.jlam1-13/+53
We no longer require that LIBTOOL_LA_FILES be defined in the package Makefile, and the libtool archives should once again be listed in the PLIST. * Add a new yes/no variable "LIBTOOLIZE_PLIST" to control whether to have bsd.pkg.mk automatically expand *.la files in PLISTs into the true library names represented by the libtool archives. * Rename the "transform-la" script to "print-la-libnames" which more correctly reflects its function. Many thanks to Todd Vierling for the original implementation and for his contructive comments on how to improve the changes in this commit.
2004-09-01Replace the only occurrence of the :E modifier in bsd.pkg.mk withschmonz1-2/+2
a more familiar construction. BZCAT wasn't getting defined for a bzip2-compressed patch in my tree; now it is.
2004-08-27Replace RPATH_FLAG with LINKER_RPATH_FLAG and COMPILER_RPATH_FLAG,jlam1-6/+8
which are the full option names used to set rpath directives for the linker and the compiler, respectively. In places were we are invoking the linker, use "${LINKER_RPATH_FLAG} <path>", where the space is inserted in case the flag is a word, e.g. -rpath. The default values of *_RPATH_FLAG are set by the compiler/*.mk files, depending on the compiler that you use. They may be overridden on a ${OPSYS}-specific basis by setting _OPSYS_LINKER_RPATH_FLAG and _OPSYS_COMPILER_RPATH_FLAG, respectively. Garbage-collect _OPSYS_RPATH_NAME and _COMPILER_LD_FLAG.
2004-08-25Add a knob PKGSRC_SHOW_PATCH_ERRORMSG to control whether the newlyschmonz1-5/+9
verbose message displayed on patch failure is in fact displayed on patch failure. It defaults to "no" if PKG_DEVELOPER is defined, "yes" otherwise. While here, rename PKG_PATCH_FAIL to PKGSRC_PATCH_FAIL.
2004-08-24Process RECOMMENDED *after* including bsd.buildlink3.mk; else it has notv1-9/+9
real effect at all.
2004-08-17Don't put the .la transform in GENERATE_PLIST; that's too late to make it intv1-5/+7
before any @dirrm's are executed. Rather, put it explicitly at the top of the final static PLIST generation code.
2004-08-16Add new variable LIBTOOL_LA_FILES, which may be used instead of listingtv1-1/+7
all of the .a, .la, .so, and .so.* files in the PLIST. This will autogenerate the PLIST entries based on the informaion in the .la file. This include print-PLIST support; if LIBTOOL_LA_FILES contains an installed .la, its entries will be elided from the output PLIST template.
2004-08-16If patching fails and either of PKG_OPTIONS and LOCALPATCHES areschmonz1-4/+14
defined, note thatthe patch failure may be due to incompatible build options and/or local patches, and suggest building with fewer.
2004-08-07Add some new variables to control how "distribution" patches are extractedjlam1-29/+60
and applied to the package sources. The existing options are: PATCH_DIST_STRIP - option that sets the pathname strip count. PATCH_DIST_ARGS - the list of arguments to pass to patch(1). The new options are: PATCH_DIST_CAT is the command that outputs the patch to stdout. For each of these variables, there is a patch-specific variant that may be set, i.e. PATCH_DIST_STRIP.<patch>, PATCH_DIST_ARGS.<patch>, PATCH_DIST_CAT.<patch>.
2004-08-05Move addition of PKG_OPTIONS to BUILD_DEFS below the definition of thejlam1-1/+8
build-defs-message target so that PKG_OPTIONS doesn't show up as a settable variable in the displayed message.
2004-08-04oops.. reversed a testjlam1-2/+2
2004-08-04Sometimes, the dependencies installed are a function of which variablesjlam1-6/+7
are set, and it'd be nice to know which ones before the default dependencies are installed. Create a new target "pre-install-depends" that is executed before dependencies are installed. Move the display of BUILD_DEFS (build-defs-message) into pre-install-depends so that they are displayed before dependencies are installed.
2004-08-04Add INSTALL_GAME_DATA to the list of defined macros in CONFIGURE_ENVjschauma1-1/+2
as well. (Noted by wiz@)
2004-08-04Do not run xargs if its input is an empty string; xargs in Interixminskim1-9/+14
executes the utility even in such a case. Based on the patch provided by Hiramatsu Yoshifumi in PR pkg/25777.
2004-08-04Introduce GAMEDATAMODE and INSTALL_GAME_DATA, which will take carejschauma1-2/+5
of files installed for SETGIDGAME packages. This will help address PR pkg/25313 and PR pkg/26236.
2004-07-31Garbage collect NO_CHECK_DEPENDS: it is meaningless since revision 1.942.seb1-2/+2
2004-07-27Make the option to resume transfer optional, as suggested byxtraeme1-4/+7
Robert Elz in PR pkg/26448 (at least for now). If you want to use it, PKG_RESUME_TRANSFERS must be set to [Yy][Ee][Ss]. While here, no need to use ${AWK} to get the size with ${WC} -c, ${WC} -c < file is enough. Thanks to Robert Elz for suggestions, still I have to fix the problems reported in the PR.
2004-07-27Fix some more troubles with my modification for resume transfers:xtraeme1-16/+21
o Use ${WC} -c instead of using ${LS} -l, which works with symlinks. o Only assign -R to FETCH_RESUME_ARGS when FETCH_CMD is the default value (NetBSD's ftp). o Fix for www/navigator package, which uses DIST_SUBDIR. o Replace another [ with ${TEST}. o Print a warning when FETCH_CMD != ftp and FETCH_RESUME_ARGS is empty (resume will not be possible). Thanks to cube@ and tron@ for reporting/helping with the problems.
2004-07-27Fix some problems with REFETCH mods:agc1-7/+15
1. don't hardcode true, echo and [ 2. Cope with distfiles which are located in a DIST_SUBDIR 3. Don't always assume there will be a size field in the ${DISTINFO_FILE} XXX The refetch mods make an assumption that an exit code of 0 from a ${FETCH_CMD} means that the transfer has been completed successfully, and this used not to be the case. I haven't tested this assumption recently.
2004-07-27Add support to resume transfers, by default it will be disabled ifxtraeme1-8/+23
$http_proxy or $ftp_proxy are defined (for the moment, NetBSD's ftp(1) doesn't support this). While I'm here, move FETCH_CMD from bsd.pkg.mk to bsd.pkg.defaults.mk, and add the new variable FETCH_RESUME_ARGS (-R by default with ftp(1) from NetBSD/pkgsrc). If you want to use wget to resume transfers, you should use something like: FETCH_CMD=wget FETCH_RESUME_ARGS=-c
2004-07-25move PKG_SUFX=.tbz example to bsd.pkg.defaults.mk.grant1-2/+1
2004-07-06Retire buildlink2, now that all packages using it have been converted towiz1-11/+5
buildlink3.
2004-07-06Implement EXTRACT_CMD.binabs1-1/+3
2004-07-03catch locking failure case where we couldn't find the parent's processgrant1-1/+5
ID. from Roland Illig.
2004-07-03style fix from Roland Illig.grant1-8/+6
2004-07-03replace use of ${TEST} -e with -f or -d as appropriate. use consistentgrant1-12/+12
shell syntax. this allows the pkgsrc framework to work with IRIX 5.3 and Solaris' sh(1) built-in test(1).
2004-06-23In SUBST_SED.pkglocaledir, escape the rest of the line in the pattern.salo1-2/+2
Saves trailing \ properly. Addresses PR pkg/26022 by Akio OBATA.
2004-06-23Use TEST instead of [] when using -nt. This makes the section work oncjep1-3/+3
SunOS.
2004-06-05When building a pre-requisite package, exit if the build of theagc1-2/+2
pre-req fails. Fixes an error noticed by Kimmo and others, where a build would blindly continue even if the pre-requsite package wasn't built correctly, and is fallout from the "sh -e" and make(1) changes in NetBSD-current.
2004-06-04Append ${ABI} to some lib-dirs. This is a no-op on systems that do notjschauma1-4/+4
use ABI, but allows IRIX and particularly IRIX64 to find the correct libraries especially when linking against X11 libs. Tested over several months and multiple bulk-builds.
2004-06-04Remove MASTER_SITE_* definitions from bsd.pkg.mk and put themxtraeme1-295/+4
into the new bsd.sites.mk file. Ok'ed by Hubert Feyrer and Jan Schaumann in tech-pkg@.
2004-05-30Add MASTER_SITE_OPENOFFICE for the misc/openoffice* packages.mrauch1-1/+53
List extracted from http://download.openoffice.org/1.1.1/source.html
2004-05-29aleron.dl.sourceforge.net have had problems during the last couple ofkristerw1-2/+2
days. Comment it out for now.
2004-05-24Add ${X11BASE}/bin to the PATH when USE_IMAKE is used, without objectionsxtraeme1-1/+2
in tech-pkg@.
2004-05-19Follow Grant's advice: use _OPSYS_GPATCH_REQD to influence _NEED_PATCHjschauma1-5/+6
and let tools.mk take care of the rest.
2004-05-19We have a variable _OPSYS_GPATCH_REQD, but it doesn't do anything.jschauma1-1/+5
Change that: if it's set to YES, require devel/patch. If building devel/patch, set _OPSYS_GPATCH_REQD to NO, as otherwise we have a circular dependency.
2004-05-17Add a new package-settable variable, INSTALLATION_PREFIX, as discussedjlam1-2/+8
with gavan@NetBSD.org at pkgsrcCon. Within the pkgsrc infrastructure, LOCALBASE has two different meanings: (1) where the package being built should be installed, and (2) where to find previously installed packages. Most instances of case (2) should be converted to use EVAL_PREFIX, but there are some cases where this is impossible. To resolve this, we preserve LOCALBASE to mean (2) and we create a new variable INSTALLATION_PREFIX to mean (1). INSTALLATION_PREFIX is meant to be set some time before bsd.pkg.mk is included, and provides the value for PREFIX if it's defined, e.g. NO_MTREE= yes INSTALLATION_PREFIX= / .include "../../mk/bsd.pkg.mk" This allows us to remove all cases where PREFIX is explicitly set in the package Makefile, e.g. Java VM packages, qmail, etc.
2004-05-12No USE_BUILDLINK2 package sets USE_FORTRAN any longer -- convert supportwiz1-3/+3
to bl3 and remove f2c's buildlink2.mk file.
2004-05-12INSTALL_GAME should be exported a as BSD_INSTALL_GAMEjschauma1-2/+4
2004-05-12Introduce new variables:jschauma1-12/+16
SETGIDGAME: specifies whether or not certain games are installed setgid GAMEGRP: the group owning games if SETGIDGAME is set GAMEOWN: the user owning games if SETFIDGAME is set GAMEMODE: the mode to install games as Use these to provide INSTALL_GAME (for example for PR pkg/25313), and set them to meaningful values under NetBSD.
2004-05-08Rename NO_CONFIGURE_INFODIR to CONFIGURE_HAS_INFODIR (which defaults toreed1-2/+3
"yes"). So any packages that have old GNU configure script that does not support --infodir option (while using INFO_FILES) can set CONFIGURE_HAS_INFODIR=NO. This was suggested by agc@ as a clearer definition.
2004-05-08If using GNU_CONFIGURE then set --infodir to ${PREFIX}/${INFO_DIR}.reed1-1/+4
I have used this successfully to install over 300 info files using INFO_DIR=share/info. Also add new variable called NO_CONFIGURE_INFODIR (as suggested by Greg Woods) because some autoconf-style configure scripts don't know --infodir. (The alternative is to use HAS_CONFIGURE and add the needed CONFIGURE_ARGS.) Please note that the info tool may not find custom INFO_DIR unless it is configure to know it. (I will update gtexinfo for this, but if using native info you are on your own if you customize this.)
2004-04-27Add a new install macro INSTALL_LIB for use when installing librariestv1-1/+7
(mainly intended for shlib use, but for homeful use on all libraries so that currently static libs can be "provisioned" for future shlib use).
2004-04-27Move the inclusion of tools.mk ahead of bsd.buildlink3.mk so that tools.mkjlam1-3/+3
can include buildlink3.mk files. This change also causes work/.tools/bin to appear after work/.buildlink/bin in the PATH, but we never relied on this behaviour, so this side-effect should have no impact.
2004-04-26Allow perl-thread to also be acceptable when USE_PERL5 is defined.jlam1-2/+2
2004-04-26ROOT_USER is parameterized, so use it in human-readable printed messagestv1-4/+4
as well.
2004-04-25Make sure PKGDIRMODE is always set in bsd.prefs.mk so it can be checkedtv1-2/+1
in lang/perl58/Makefile. (It had been set previously only in bsd.pkg.mk.)
2004-04-24flow.dl.sourceforge.net has been unreachable for a while now, due togrant1-2/+2
what appears to be a routing loop. comment it out for the moment.