Commit graph

1628 commits

Author SHA1 Message Date
kent
0a244f3f6a Add POSTFIX_USE_SASL_AUTH.
Rename POSTFIX_PCRE to POSTFIX_USE_PCRE.
2001-12-03 04:51:08 +00:00
wiz
1a9a466f05 Add support for distfile-specific master sites, as requested in pkg/7471.
Syntax:
MASTER_SITES_completefilename=	http://specific.master/site
and similarly for PATCH_SITES.
Convert print/ghostscript-nox11 and x11/kterm to take advantage of this.
2001-12-02 21:29:20 +00:00
jlam
e1a97d1b32 Support automatically calling the INSTALL script during installation. This
currently only occurs for packages that use bsd.pkg.install.mk.

There are two new targets, pre-install-script and post-install-script, that
default to doing nothing.  The order of targets called for a "make install"
is:
	pre-install-script
	pre-install
	do-install
	post-install
	post-install-script

The new targets are defined in bsd.pkg.install.mk to call the INSTALL
script with the PRE-INSTALL and POST-INSTALL options.
2001-12-02 03:11:35 +00:00
jlam
e29d306201 The *_POST_SED variables became private in bsd.buildlink.mk. 2001-12-02 02:58:35 +00:00
hubertf
2541962f5b Catch errors while running printindex 2001-12-01 12:40:52 +00:00
hubertf
0d78b9168b there's no need to abort this whole script if one pkg brings up an
error.
2001-12-01 12:32:08 +00:00
jlam
28dc06397c Create ECHO_BUILDLINK_MSG for printing buildlink diagnostics. It's just
set to '${ECHO_MSG} "=>"' for now.
2001-11-30 17:21:54 +00:00
jlam
f64db488c6 Factor out code that substitutes for text in files into a macro target.
Less cut-and-paste, more code sharing.  Also comment the file a bit more.
2001-11-30 17:14:14 +00:00
jlam
142b319a6d Move code from end of the do-configure target that performed the
LIBTOOL_OVERRIDE steps into a separate do-libtool-override target.  Create
a new variable _CONFIGURE_POSTREQ that currently lists do-libtool-override.
Also add some documentation for the two _CONFIGURE_* variables:

_CONFIGURE_PREREQ is a list of targets to run after pre-configure but before
	do-configure.  These targets typically edit the files used by the
	do-configure target.

_CONFIGURE_POSTREQ is a list of targets to run after do-configure but before
	post-configure.  These targets typically edit the files generated by
	the do-configure target that are used during the build phase.
2001-11-30 05:03:06 +00:00
jlam
b7c7ffb871 Move the REPLACE_PERL code into a separate configure pre-requisite target
"replace-perl", instead of keeping it as part of the do-patch target.  Now,
a "make patch" will result in just the patched sources.
2001-11-30 03:48:14 +00:00
jlam
ad76e9aa21 Rename "do-libtool" target to "do-ltconfig-override" as the new name is more
descriptive.  There is a separate step to replace the actual libtool script
that is controlled by LIBTOOL_OVERRIDE within the "do-configure" target.
2001-11-30 03:19:04 +00:00
wiz
d6b705489b Remove REPLACE_CURSES from bsd.pkg.mk (not needed anymore), and don't
document it and USE_CURSES in Packages.txt anymore (packages should
really use devel/ncurses/buildlink.mk instead).
2001-11-30 01:26:32 +00:00
wiz
ae741f1ba0 Update XCONTRIB path for .at. 2001-11-30 00:30:40 +00:00
wiz
8457cdbc38 Drop a line of the form '^<TAB>$'. 2001-11-29 20:06:03 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
tv
92d724ccfe In the odd possible case of someone using "pkgsrc" underneath "src"
(even though that's still a bad idea), set USETOOLS=no explicitly before
including <bsd.own.mk>, and add this also to MAKE_ENV to make BSD-Makefile
based packages build properly.
2001-11-28 19:58:13 +00:00
jlam
208d40b3a2 Move the PKG_SYSCONFDIR logic below the definition of PKGNAME. PKGNAME is
use to set PKGBASE, which is used in the name of the package-specific
config directory override (PKG_SYSCONFDIR.${PKGBASE}).  Prior to this, if
PKGNAME wasn't explicitly set in the package, then the override would not
work.
2001-11-28 19:55:31 +00:00
jlam
1629930a91 cvsweb also implicitly used ${APACHE_SYSCONFDIR} as its config file
directory.
2001-11-28 14:01:16 +00:00
jlam
22116387be Fix problem where bsd.pkg.obsolete.mk wouldn't be found when "make" was
executed outside of a package directory.  Problem and fix noted by Stoned
Elipot in private email.
2001-11-28 12:05:20 +00:00
abs
6dd01d2785 lose some more pkg/ references 2001-11-28 10:21:46 +00:00
hubertf
0e82c4e633 Add commented-out entry for GQMPEG_NO_RUSSIAN 2001-11-27 02:07:53 +00:00
jlam
22d02d6b3e Replace PKG_{USER,GROUP} with PKG_USERS and PKG_GROUPS:
PKG_USERS represents the users to create for the package.  It is a
	space-separated list of elements of the form

		user:group[:[userid][:[descr][:[home][:shell]]]]

	Only the user and group are required; everything else is optional,
	but the colons must be in the right places when specifying optional
	bits.  Note that if the description contains spaces, then spaces
	should be double backslash-escaped, e.g.

		foo:foogrp::The\\ Foomister

PKG_GROUPS represents the groups to create for the package.  It is a
	space-separated list of elements of the form

		group[:groupid]

	Only the group is required; the groupid is optional.

This solves the problem of what to do when there is more than one user or
group needed for a package, e.g. qmail.  Also add a bit more error-checking
to the INSTALL/DEINSTALL scripts.
2001-11-26 20:37:38 +00:00
hubertf
0a38992063 fetch-list: properly quote URLs printed, as they may contain things that
the shell doesn't like.

Fixes PR 14347 by Ben Wong <Benjamin.Wong@cc.gatech.edu>
2001-11-26 19:56:06 +00:00
jlam
ad7cbda464 In fit of paranoia after reading about the iTunes installer and given we
now work on Darwin, and then the discussion about allowing spaces in
user/group names, make these scripts work even if the inputs contain
spaces.  Yes, this is overkill, but after doing all of the work, I didn't
want to waste it.
2001-11-26 14:48:53 +00:00
jlam
450b47d81a p5-HTTPD-User-Manage also used APACHE_SYSCONFDIR (implicitly). Also
re-indent for aesthetic considerations.
2001-11-26 05:18:01 +00:00
hubertf
a329f921a8 Run "make bulk-package" with stdin redirected from /dev/null,
to prevent it sitting there for days waiting for input in useless
situations.
2001-11-26 00:55:45 +00:00
dmcmahill
ad3cbb6276 fix typo in error output message (s/PKNAME/PKGNAME). Patch from
Hubert Feyrer.
2001-11-25 23:24:26 +00:00
jlam
04f059f6c0 Fix pasto: PKG_GROUP -> PKG_USERID. 2001-11-25 21:16:30 +00:00
jlam
3f8b0469a6 Check for an empty value for PKG_SYSCONFSUBDIR and set PKG_SYSCONFDIR
accordingly so that config files are in /usr/pkg/etc/foo.conf, and not
/usr/pkg/etc//foo.conf.
2001-11-25 19:38:55 +00:00
jlam
a17ddb6e66 www/apc-gui also used APACHE_SYSCONFDIR. 2001-11-25 19:33:45 +00:00
jlam
634f133269 Deprecate APACHE_SYSCONFDIR, PHP_CONFDIR, VTUN_SYSCONFDIR by moving them
to bsd.pkg.obsolete.mk.
2001-11-25 19:29:56 +00:00
jlam
d8ac0cc4f5 This file holds make(1) logic to allow obsolete or deprecated variables
still to be used.  These may eventually disappear over time as the contents
are, by definition, obsolete and deprecated.
2001-11-25 19:28:08 +00:00
jlam
0252126161 Pass PKG_SYSCONFDIR to the configure and build processes. 2001-11-25 19:04:19 +00:00
jlam
ffceca11a9 PKG_SYSCONFDIR is where the configuration files for a package may be found.
This value may be customized in various ways:

PKG_SYSCONFBASE is the main config directory under which all package
	configuration files are to be found.

PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
	configuration files for a particular package may be found.

PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
	particular package.

Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.

This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
2001-11-25 18:59:45 +00:00
jlam
cfd5b704a7 Allow ALL_{DIRS,FILES,MAKE_DIRS} to be appended to by the extra templates
so that the general INSTALL/DEINSTALL scripts can manage these extra files
and directories.
2001-11-25 18:54:57 +00:00
kim
c60d7684ea Change SQUID_SYSCONF_DIR to SQUID_SYSCONFDIR to match www/squid/Makefile 2001-11-23 16:09:24 +00:00
abs
3bcafcfa14 Add SU to FILES_SUBST 2001-11-23 14:37:24 +00:00
tron
834eef2293 Add documentation of variable "SQUID_SYSCONFDIR". 2001-11-23 10:23:45 +00:00
tron
7c7d68c5c5 Add a new option "MUTT_USE_SLANG" to use the "slang" library instead of
"curses" because the first deals with resize better, especially under
NetBSD 1.5/1.5.x. This change was suggested by Joe Abley in PR pkg/13630.
2001-11-22 21:34:45 +00:00
agc
93549791ee Now that all the files have been moved into the main package directory,
remove the temporary ${PKGDIR} workaround.
2001-11-21 18:32:01 +00:00
jlam
1b41bcfdb0 Refer to /etc/rc.d as ${RCD_SCRIPTS_DIR} more thoroughly. 2001-11-21 16:10:03 +00:00
jlam
f1b957484f Change the way the RCD_SCRIPTS variable is used. It now just lists the
names of the scripts and is no longer a MLINKS-type variable.  The scripts
are copied into ${RCD_SCRIPTS_DIR} which defaults to /etc/rc.d for now.
It's unclear if Linux/Solaris would set RCD_SCRIPTS_DIR to something else.
2001-11-21 15:43:01 +00:00
agc
6dde5fcc79 Move some operating-system specific definitions to the individual
defs.${OPSYS}.mk files.
2001-11-21 14:10:06 +00:00
agc
beda0b43f8 Add an _OPSYS_HAS_OSSAUDIO definition to the individual defs.${OPSYS}.mk
files, and use it in ossaudio.buildlink.mk. The definition shows whether
or not libossaudio is available in the OS.
2001-11-21 13:57:31 +00:00
agc
1b690b5a38 Move MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT definitions into the
individual defs.${OPSYS}.mk files. No change in functionality.
2001-11-21 13:54:14 +00:00
agc
89257b87f1 Add _OPSYS_HAS_MANZ and _PREFORMATTED_MAN_DIR definitions to the
individual defs.${OPSYS}.mk files, and use them in bsd.pkg.mk.

+ _OPSYS_HAS_MANZ defines whether or not the OS does MANZ handling as standard

+ _PREFORMATTED_MAN_DIR is the name of directory (cat or man) where
preformatted manual pages go.

Rename the internal definitions used in the generation of PLIST files to
start with '_'.

This completes the "generic" changes to bsd.pkg.mk.
2001-11-21 13:44:44 +00:00
agc
03c35761df Add a _DO_SHLIB_CHECKS definition to the individual defs.${OPSYS}.mk
files, and use it in bsd.pkg.mk.  This definition controls the fixup
of PLISTs at installation time, and running of ldconfig if necessary.
2001-11-21 13:17:14 +00:00
agc
715864dc96 Add a _PATCH_BACKUP_ARG definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition is the switch to patch(1) to
provide backup files when patching.
2001-11-21 13:09:08 +00:00
agc
b9a41cdc6b Add a _USE_RPATH definition to the individual defs.${OPSYS}.mk files,
and use it in bsd.pkg.mk. This definition says whether or not the rpath
is to be added to the LDFLAGS definition.
2001-11-21 13:02:52 +00:00
agc
e3865c8037 Add a _DO_LIBINTL_CHECKS definition to the individual defs,${OPSYS}.mk
files, and use it in bsd.pkg.mk. If set to "yes", checks that a valid
libintl library and header file should be performed.
2001-11-21 12:58:15 +00:00
agc
69788c2093 Add a definition of _IMAKE_MAKE to the individual defs.${OPSYS}.mk
files, defined to be the make program which is invoked by imake, and
use it accordingly in bsd.pkg.mk
2001-11-21 12:53:04 +00:00
agc
bac7e8965b Move default umask for operating systems into the individual defs.${OPSYS}.mk
files, rather than switching by ${OPSYS} within bsd.pkg.mk.
2001-11-21 12:42:23 +00:00
jlam
9875ea4f1d Forgot an EOF in the last commit. 2001-11-21 05:38:03 +00:00
jlam
b74b76b756 Remind the user that some rc.conf settings may need to be removed after
the package has been deleted.
2001-11-20 19:31:58 +00:00
jlam
950ae6dee2 We should only depend on sysutils/user in the !exists(/usr/sbin/user) case. 2001-11-20 16:53:44 +00:00
jlam
1024a4d42b Add definitions for ROOT_USER and ROOT_GROUP that are the symbolic names of
the root user and root group.
2001-11-20 16:19:20 +00:00
jlam
b1d477e863 For completeness, add a SUPPORT_FILES_PERMS that acts like CONF_FILES_PERMS
but the user isn't prompted to customize the files at post-install time.
2001-11-19 23:33:52 +00:00
jlam
c850f81b61 Common INSTALL/DEINSTALL scripts and Makefile magic to automatically perform
many of the tasks that need to be done when package is installed or
deinstalled:

	* creating user/group for the package,

	* creating and removing directories with special permissions and
	  ownership,

	* copying config files to their final locations, and removing them
	  at deinstall time if they don't differ from the example ones,

	* reminding the package admin of files he may want to customize or
	  of files/directories he may want to remove.
2001-11-19 16:18:44 +00:00
jlam
014a83ae0f Add definitions for USERADD and GROUPADD, used to create new users and
groups.  These commands follow the basic interface of the NetBSD/Solaris
useradd and groupadd programs.  For platforms on which these commands don't
exist, either sysutils/user is added as a dependency, or these are set to
${FALSE}, and the package admin is responsible for creating them himself
prior to the installation of a package.
2001-11-19 16:17:51 +00:00
jlam
b046604a94 Create a new variable CONFDIR that represents the directory where package
config files should go.  It may be overridden on a per-package basis by
defining CONFDIR.${PKGBASE}, e.g. CONFDIR.php.  ${CONFDIR} defaults to
${PREFIX}/etc, but it may be overridden in /etc/mk.conf, e.g. by setting
CONFDIR=/etc.

Packages will eventually be altered to find their config files in
${CONFDIR}.
2001-11-19 16:01:03 +00:00
tron
d68a1cb95e Remove GNOME on "ftp.fh-rosenheim.de" which doesn't carry any files at
the moment.
2001-11-16 20:35:19 +00:00
agc
c4d58dbc13 Remove superfluous definitions. 2001-11-15 12:17:19 +00:00
jlam
8e58770bc9 Convert some spaces to tabs. 2001-11-14 21:38:29 +00:00
jlam
770f9cd495 Allow MESSAGE_SRC to be a space-separated list of files, like PLIST_SRC,
that are concatenated together to form the whole MESSAGE file.
2001-11-14 21:04:43 +00:00
jlam
7e703bf189 Add ${PKGBASE} to the things to substitute for in PLISTs. 2001-11-14 12:38:51 +00:00
enami
3f546803ee Set values only when not defined yet. 2001-11-12 23:04:26 +00:00
jlam
ca75d3b6b7 Set a default value for BUILDLINK_DIR so that if no buildlink.mk files are
included, then it still points to a sensible location (${LOCALBASE}).
2001-11-11 09:46:51 +00:00
agc
7f77b835bf Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL files
in ${.CURDIR} as well as ${PKGDIR}, just in case the pkg/ directory still
exists but is empty.
2001-11-09 08:58:19 +00:00
agc
b3df2f05f8 Set the default values of SU_CMD and PRE_ROOT_CMD in bsd.pkg.defaults.mk,
not bsd.pkg.mk, so that the user is more aware of them (there were placeholder
examples of both definitions in bsd.pkg.defaults.mk already).

Explain PRE_ROOT_CMD a bit more throroughly, and correct an example of
its use.

Make an alternative definition for SU_CMD sync with reality.
2001-11-08 12:47:12 +00:00
agc
eb39a7e922 Following on from the removal of the automatic "is there a script to run" logic,
more speedups for building packages.

Get rid of a .USE macro, and do not spawn sub-makes for the pre-, do- and
post-target stages, replacing them with standard make(1) targets.

Timing information as follows (multiple runs performed, best results taken):

800 MHz Celeron, 128 MB, local pkgsrc, local obj
scripts/, pre,do,post-*:  	0.731u 0.261s 0:02.04 48.5%     0+0k 29+168io 9pf+0w
no scripts/, pre,do,post-*:	0.678u 0.242s 0:01.30 70.0%     0+0k 0+169io 0pf+0w
no scripts/, no pre,do,post-*:	0.267u 0.089s 0:00.90 37.7%     0+0k 0+155io 0pf+0w

40 MHz Sparc, 36 MB, nfs pkgsrc, local obj
scripts/, pre,do,post-*:  	22.590u 6.839s 0:33.31 88.3%    0+0k 121+254io 0pf+0w
no scripts/, pre,do,post-*:	22.481u 6.442s 0:33.30 86.8%    0+0k 120+251io 0pf+0w
no scripts/, no pre,do,post-*:   8.534u 4.189s 0:16.48 77.1%    0+0k 105+242io 0pf+0w
2001-11-08 09:29:56 +00:00
jmc
7c6e04b09e Change running output from build to include timestamp and current package.
Makes the output a bit long at times but gives a nice concise idea of where
you're at and if the build is moving
2001-11-08 02:52:25 +00:00
hubertf
b3e7e7baec The $DEPENDS file has the pkg's directory in the first column, followed by
whitespeace, followed by it's required pkgs. Make sure to look for that
whitespace, to not catch any wrong positives, e.g.

	egrep "x11/kdebase.*" $DEPENDSFILE

will catch depends for both KDE1 and KDE2 and do weird things then (among
other things, think that kdelibs-2.2.1 is ok as a dependency when building
in x11/kdebase, which is certainly not!)

Eight broken pkgs less in the bulk builds by adding a single space!
(Now if adding some more would help further... :-)
2001-11-07 00:29:20 +00:00
hubertf
f1d960e21b "bulk-install" already makes a binary package and cleans up after itself,
no need to make "bulk-package" or "clean" after it!
2001-11-06 13:45:33 +00:00
agc
55b1c236e7 My thanks to Thorsten - this part of my change for Darwin support was
lost.

However, modify previous change to let Darwin know about SHAREOWN,
SHAREGRP and SHAREMODE in a different way - no point in checking for
OPSYS here, since every OPSYS has to know about them.
2001-11-04 19:49:56 +00:00
frueauf
8e847c8588 "Darwin" needs to know about SHAREOWN, SHAREGRP and SHAREMODE too. 2001-11-04 13:42:01 +00:00
jlam
32a207a6c8 Also substitute for CHMOD, CHOWN, CHGRP in PLISTs. 2001-11-03 04:58:15 +00:00
hubertf
6bee88b176 Add GQMPEG_NO_JAPANESE variable to allow keeping gqmpeg from interpreting
russian-language ID3 tags as japanese-language ones.

Patch submitted by Sergey Svishchev <svs@ropnet.ru> in PR 14426.
2001-11-02 01:24:05 +00:00
jlam
64468de1ee So many of our PLIST use mkdir, rmdir, and true, and we have full paths to
these utilities in ${MKDIR}, ${RMDIR}, and ${TRUE}, so substitute for them.
2001-11-01 20:37:17 +00:00
zuntum
33f6d98857 Make REPLACE_PERL work -- recent "-e s,/bin/perl,${PERL5}" addition broke it.
Now the sed command is "s,#!.*/bin/perl,#!${PERL5},"
2001-10-31 18:05:48 +00:00
tv
fb3433e354 Fix an improper newline in a comment (was <TAB>bing all the way to column 80). 2001-10-31 14:29:04 +00:00
agc
7167cd3880 Add initial support for Darwin (1.4) to pkgsrc. 2001-10-30 13:53:15 +00:00
jlam
b3dec5f544 On Solaris 7, when `find dir -name foo -name bar' in invoked, only an
implicit `-print' action is performed on bar and not on foo.  Surround
the search pattern in \( ... \) and add an explict -print so that all of
the results of the find are printed.

Problem noted and patch to fix this received in private email from Stoned
Elipot <seb@netbsd.org>.
2001-10-29 19:21:18 +00:00
skrll
c5e44f3ff0 Make print-PLIST generate
@exec ${MKDIR} %D/...

instead of

	@exec ${MKDIR} ${PREFIX}/...

Hopefully this might mean I don't commit incorrect PLISTs.
2001-10-29 15:10:14 +00:00
tron
8d0e937ff7 Add a new "show-vars" target which allows to display several makefile
variables at once.
2001-10-26 21:42:44 +00:00
jlam
83a062506e If AUTOMAKE_OVERRIDE=YES then we touch files in ${WRKSRC} in such a way
that GNU autoconf/automake are not executed during the build process, even
if the tools exist in the build environment.  This prevents the build
process from overwriting any changes made to the configure script or to the
Makefile.in files.
2001-10-26 17:03:04 +00:00
jwise
2d3b50b92d Expand description of the ${PKG_JVM} selector to note that ${JAVA_HOME} is
set based on this choice if unset, and that blackdown-jdk13 is the default
on powerpc.
2001-10-26 16:18:46 +00:00
jwise
a4df548561 Correct description of ${JAVA_HOME}. ${JAVA_HOME} is used to select an
installed JVM to use to build java-based packages.

${JAVA_HOME} is not used to select where to install java based packages.  All
packages which install java .jar files should install them in
${PREFIX}/lib/java, so that they will be accessible to multiple installed
JVMs.
2001-10-26 16:08:53 +00:00
agc
507d23ecbf Also delete the magic invocation of scripts/configure and
scripts/{pre,post}-install - there is nothing that uses any of these,
and it incurs needless overhead.
2001-10-26 16:03:26 +00:00
wulf
967aaf280f Changed PKGDIR assignment to allow migration of files currently held in
${.CURDIR}/pkg directory to the toplevel of the package. It remains
backward compatible with the existing system allowing a progressive
transision process. The long term goal is a reduction of overheads and
processing time when working with the cvs tree.
2001-10-26 15:08:43 +00:00
agc
d52dd5005a At present, if there is a pre-<target> or post-<target> script in
the scripts/ directory, it will be run automatically as part of
the build process, by bsd.pkg.mk.  There are now exactly 5 packages
in pkgsrc which use this facility, and yet, for every package build,
the existence of a script is checked by bsd.pkg.mk once before the
target is executed, and once afterwards. This incurs needless
overhead.

Move the separate pre- and post- script handling out of bsd.pkg.mk into
the individual package Makefiles, where it's much more obvious what is
happening, anyway.
2001-10-26 14:09:59 +00:00
skrll
9f28ffc95e Update REPLACE_PERL to work for /bin/perl and use it in kdelibs2 instead
of home grown post-patch target.
2001-10-26 13:57:58 +00:00
skrll
1034b557a9 Fix ltcf-cxx.sh to work on -current/new toolchains. That is make sure that
/usr/lib/crtbeginS.o and /usr/lib/crtendS.o make it into
{pre,post}dep_objects.

Fixes pkg/14353 from Witold J. Wnuk <witek@pd37.warszawa.sdi.tpnet.pl>

Tested as "still" working on 1.5.2.

Bump minor number of pkg and make pkgsrc depend on this version.
2001-10-26 07:47:38 +00:00
tron
758b507b69 Sort "PATCH_SITES" using "MASTER_SORT" and "MASTER_SORT_REGEX", too. 2001-10-25 18:12:53 +00:00
jlam
1755ddaba9 Make it easier to debug for the a.out case on an ELF machine. 2001-10-25 16:45:03 +00:00
jlam
a4bc16d30c I am a triple idiot. The only relevant variable that x11.buildlink.mk
redefines about which buildlink.mk files would care is BUILDLINK_X11_DIR,
which points to the location of the X11R6 hierarchy used during building.
If x11.buildlink.mk isn't included, then BUILDLINK_X11_DIR defaults to
${X11BASE} (set in bsd.pkg.mk), so its value is always safe to use.  Remove
the ifdefs surrounding the use of BUILDLINK_X11_DIR in tk/buildlink.mk and
revert changes to move x11.buildlink.mk before the other buildlink.mk files.
2001-10-24 22:10:43 +00:00
jlam
e44bb6e882 Rearrange some of the logic to consolidate the code that is a.out-specific.
Also name the replace-libnames-configure as part of ${_CONFIGURE_PREREQ}
instead of as a prerequisite to pre-configure.  This is needed so that the
replacement occurs _after_ pre-configure target is run, which may call
autoconf/automake to regenerate the configure scripts.  Before this change,
the replacement would be overwritten when the configure scripts were
regenerated.  This should fix a problem first noticed by Alistair Crooks
<agc@netbsd.org> in the net/mtr package.
2001-10-24 19:46:45 +00:00
jlam
51436ad116 The do-configure target has some "stuff" that is supposed to be done after
the pre-configure target is called but before the configure script is
called, but it's added in a non-extensible way.  This "stuff" is the
replace-ncurses step and the ltconfig-override step.  Move these steps out
into their own targets that are named as prerequisites to the do-configure
step.  The prerequisites are specified in the private variable
_CONFIGURE_PREREQ, to which other independent targets may be appended.
2001-10-24 19:42:28 +00:00
jlam
d663d4c647 Make some more variables "private" by prepending with an underscore. 2001-10-24 19:01:00 +00:00
jlam
dff59f9ec3 x11.buildlink.mk needs to be included before any buildlink.mk files that
use X11_BUILDLINK_MK as a test value.  Generally just reordering the
inclusions so that x11.buildlink.mk comes before the other buildlink.mk
files will make everthing work.
2001-10-23 13:14:43 +00:00
jlam
04a975cdc2 Replace the -and/-or options with -a/-o as the former don't work with
Solaris find.  The latter work across Solaris/NetBSD/Linux.  Patch
received in private e-mail from Stoned Elipot <seb@netbsd.org>.
2001-10-22 18:41:46 +00:00
seb
2440277f0a Added support variables for chat/ircd-hybrid 2001-10-21 21:26:57 +00:00
abs
783b4399f5 When working out if an installed package should be left as it
matches one of the DEPENDS, the bulk-build system looked up the
package in the INDEXFILE, then used the pkgdir returned to check
against the DEPENDS. If for some reason the package was not found
in the index file the package was left installed as 'requires
installed package'.
2001-10-20 09:07:13 +00:00
jlam
82ac6112bb Some Makefiles separate -R and the rpath directory with whitespace, so
handle that case.
2001-10-20 03:00:16 +00:00
dmcmahill
c6d0fbf0c5 - change the way we cause the build order to happen. The old way passed
GROUP_SPECIFIC_PKGS into a top pkgsrc level call to make.  The new way,
  uses a shell 'for pkgdir in ....' and then calls a make in each pkg
  directory.

  This does 2 things.  The first thing is that a 'build restart' starts
  up _much_ faster because instead of calling 'make' for each package we've
  already built and finding out they're already build, we just grep through
  the list of already built pkgs.  The second item (a side benefit) is that
  now a progress meter is simple.

- add a progress meter to the build.

- add even more error checking.
2001-10-20 00:30:22 +00:00
hubertf
46a42a2e26 Get rid of BUILD_ROOT and replace it with PKGSRCDIR (which was there
before!)
2001-10-17 23:23:15 +00:00
hubertf
678d2968b7 fix quotes 2001-10-16 20:50:54 +00:00
hubertf
ff639ea595 Change alignment of "Broken" column to right-justified - this makes
the (colored) numbers stand out better, visually.
2001-10-15 23:29:54 +00:00
hubertf
f0ecd0e301 Narrow doen the "Pkgs broken by" column by renaming it to "Breaks"
This gives this a bit of a chance to fit into 80 columns.
2001-10-15 23:18:51 +00:00
hubertf
78fc0d8a69 At the end of the build, remove the contents of the "perl" package
from the leftovers list - "perl-base" is long gone.
2001-10-15 23:00:10 +00:00
hubertf
485b9b34d5 Set ressource limits as high as possible before we'll start compiling 2001-10-15 17:19:23 +00:00
dmcmahill
d2b3a2b5e3 add some more failure checks for robustness.
- if something fails while extracting the DEPENDS for a particular package,
  mark that package as broken and drop the DEPENDS info for it.  This allows
  the build to continue and properly marks the package as broken.

- if something fails while extracting the PKGNAME, also mark the pkg as broken.

- be more careful about seeing if directories exist before cd'ing to them.
  Lack of such a test has caused problems elsewhere, so hopefully this will
  make the system more robust.
2001-10-14 20:34:53 +00:00
dmcmahill
8b1f1d76a0 after the build, pull in 'lang/perl5' instead of 'lang/perl5-base' as the
latter no longer exists.

Also, use '&&' to separate commands where you don't want the second to
execute if the first fails!
2001-10-13 14:32:01 +00:00
hubertf
cbf5bdf8e2 Change my non-standard copyright header to a BSD-style one. 2001-10-12 19:28:02 +00:00
tron
57f481af78 Pass "${USETOOLS}" down to package builds so that packages which use BSD
style makefiles can be build without a tools directory.
2001-10-12 15:40:56 +00:00
jlam
c46d036469 Allow people who set USE_BUILDLINK_X11 so as to experiment with the
buildlink-x11 package, to have that package installed.
2001-10-10 05:57:14 +00:00
jlam
7ab75bcd3e Make BUILDLINK_X11_{CPPFLAGS,LDFLAGS} private by prepending an underscore
to their names.  These values shouldn't be changed by Makefiles or
buildlink.mk files; rather, they're convenience variables used exclusively
within x11.buildlink.mk.
2001-10-09 18:18:52 +00:00
jlam
6dd456668a Make the variables BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS private by
prepending an underscore to their names.  The values are not meant to be
set by Makefiles or buildlink.mk files.  However, the values are exported
through CONFIGURE_ENV and MAKE_ENV so that they may be used during the
respective processes.
2001-10-09 14:07:41 +00:00
jlam
ffdd7ac071 Back out last change that moved the prepending of BUILDLINK_CPPFLAGS and
BUILDLINK_LDFLAGS to CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS from
bsd.buildlink.mk to bsd.pkg.mk.  They're unnecessary after the recent
changes to bonobo/buildlink.mk and to libglade/buildlink.mk that removed
their settings of BUILDLINK_CPPFLAGS.
2001-10-09 13:54:10 +00:00
agc
11863da187 Fix from Allen D. Ball <ball@iprotium.com> in PR 14183 - allow the
value of X11BASE to be set in /etc/mk.conf by using the usual
X11BASE?= /usr/X11R6 construct when setting the defaults in
bsd.pkg.defaults.mk
2001-10-09 10:01:11 +00:00
veego
cced4fab8d Update the x11-links BUILD_DEPENDS to 0.4. 2001-10-07 20:19:00 +00:00
tron
cb4432edd5 Prepend "${BUILDLINK_CPPFLAGS}" and "${BUILDLINK_LDFLAGS}" to "${CFLAGS}",
"${CPPFLAGS}", "${CXXFLAGS}" respectively "${LDFLAGS}" in "bsd.pkg.mk" and
not in "bsd.buildlink.mk" because "${BUILDLINK_CPPFLAGS}" and
"${BUILDLINK_LDFLAGS}" might get changed several times by the
"buildlink.mk" files of various packages.
2001-10-05 21:32:59 +00:00
wiz
785d210f50 Add ${PKGLOCALEDIR}/locale/bg*, e.g. for windowmaker 2001-10-05 12:11:23 +00:00
jlam
5ec5047fda Substitute for rpath references to buildlink directories in Makefiles
after the configure step.  There's a growing number of GNU configure
scripts that find a library in -L/path and automatically add -R/path to
the linker flags.  We need to make sure this doesn't happen to buildlink
directories.
2001-10-05 02:31:18 +00:00
jlam
d76266c66b Move the setting of replace_files within the cookie check so that if it's
expanded from some expensive operation, it isn't evaluated if it's not
needed.  Also fix the replace-buildlink target where we were potentially
evaluating ${REPLACE_BUILDLINK} twice when only once was enough.
2001-10-05 01:15:07 +00:00
jlam
8721aafafd Rename some replace_* variables to replace_files. I'm trying to factor
out some common code, and this is a start to make different code pieces
look more alike.
2001-10-05 00:21:58 +00:00
jlam
2f02cecb2c Factor out the pattern representing Makefiles into its own variable
MAKEFILE_PATTERNS.  Also replace -R${BUILDLINK_DIR}/lib with
-R${LOCALBASE}/lib on all the REPLACE_BUILDLINK files to prevent rpath
references to ${BUILDLINK_DIR} from getting into things like config
scripts.
2001-10-05 00:09:23 +00:00
jlam
bc6321a5e2 Replace -R${BUILDLINK_DIR}/lib with -R${LOCALBASE}/lib on all the
REPLACE_BUILDLINK files to prevent rpath references to ${BUILDLINK_DIR}
from getting into things like config scripts.
2001-10-05 00:08:17 +00:00
agc
ed7610d006 Use the usual _PKG_SILENT and _PKG_DEBUG definitions in the
show-installed-depends target.
2001-10-04 22:01:54 +00:00
agc
12106c0620 use ${PKG_INFO} rather than pkg_info in show-installed-depends target,
so that the correct setting of PKG_DBDIR is used, and the correct
pkg_info binary too, presumably.

Make show-installed-depends work on Solaris (untested) by only defining
the target if DEPENDS is defined.
2001-10-04 21:48:12 +00:00
jlam
b66ae413cf Try not to have BUILDLINK_X11_*FLAGS be added multiple times to CFLAGS,
CPPFLAGS, CXXFLAGS, or LDFLAGS.
2001-10-04 08:00:13 +00:00
jlam
2b9404e054 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
installed, as it currently breaks builds that use imake.  I made an
announcement on current-users and tech-pkg on this, but having the make
logic place to verify that buildlink-x11 is actually gone is better.
2001-10-04 07:56:06 +00:00
jlam
ded9263431 Document the following variables:
REPLACE_BUILDLINK
	REPLACE_BUILDLINK_PATTERNS
	REPLACE_BUILDLINK_SED
	REPLACE_LIBNAMES
	REPLACE_LIBNAMES_PATTERNS
	REPLACE_LIBNAMES_SED
	BUILDLINK_CONFIG_WRAPPER_SED

Also prepend an underscore to REPLACE_LIBNAME_SCRIPT as it's not a variable
we're exporting.
2001-10-04 03:29:08 +00:00
jlam
68947ab066 Fix typo in previous commit. 2001-10-04 01:02:16 +00:00
jlam
d6a2295451 Make explicit what the mammoth sed expression in the _BUILDLINK_USE target
is supposed to do: filter out libtool archives from the list of files
to link into ${BUILDLINK_DIR}.
2001-10-03 23:27:07 +00:00
jlam
98cd81fd46 Invent new variables:
REPLACE_LIBNAMES_PATTERNS
	REPLACE_BUILDLINK_PATTERNS

They are space-separated lists of shell glob patterns representing files
in which we substitute with REPLACE_LIBNAMES_SED (for replacing buildlink
library names with the true library names) and REPLACE_BUILDLINK_SED (for
replacing references to buildlink directories with the true install
locations).  This generalizes the variables (which may still be used):

	REPLACE_LIBNAMES, REPLACE_BUILDLINK,

that contained the actual filenames.

REPLACE_BUILDLINK_PATTERNS contains *.lai, *-config, *Conf.sh, and *.pc.
2001-10-03 22:25:16 +00:00
wiz
aa0b8101e1 Add zh_TW dir (e.g. for lftp). 2001-10-03 14:37:55 +00:00
tron
9f0eb84c74 Add "prdownloads.sourceforge.net" as primary site to the of list
sourceforge download servers. It is the fastest one from "ftp.netsd.org"
and my home system.
2001-10-03 07:57:04 +00:00
jlam
89002b450b Factor out the common code for the replace-libnames targets into a variable
and use it instead.  Also subsititute for library names in the installed
libtool archives.  This last bit is to fix instances where "-lncurses" has
been hard-coded into *.lai files, but we are actually using -lcurses in
reality (devel/tvision is one example).  Problem noted by Thomas Klausner
(hi wiz!).
2001-10-02 23:08:17 +00:00
jlam
6c797a0afa Allow customizing the message for _SU_TARGET by substituting for "$action",
where action can be "install", "package", "create user for", etc., instead
of blindly always saying "install".  Define "action" before calling
${_SU_TARGET} whereever it is used.
2001-10-01 21:15:11 +00:00
jlam
3ad1fec0e7 Have x11.buildlink.mk add -Wl,-R${X11BASE}/lib to LDFLAGS directly, instead
of relying on bsd.pkg.mk to do it.  This change just makes x11.buildlink.mk
more self-sufficient.  Also add a warning that x11.buildlink.mk shouldn't
be included in any buildlink.mk files since what it appends to *_POST_SED
variables must come last.
2001-10-01 17:14:40 +00:00
tv
bb231171aa Don't set SU_CMD twice (the setting here was wrong anyway). The default
may need to be platform-dependent, so let bsd.pkg.mk (not .defaults.mk
set the default.
2001-10-01 04:16:43 +00:00
abs
e31ba171a2 Add 'show-installed-depends' - neat implementation thanks to Hubert. 2001-09-30 22:10:33 +00:00
tron
415261b300 Add optional IPv6 and OpenSSL support to the "xchat" package. Both are
turned on by default but can be turned of with "USE_INET6=NO" and
"XCHAT_USE_SSL=NO".
2001-09-26 18:48:53 +00:00
jlam
962986af46 Require at least x11-links-0.3 to get latest round of fixes. 2001-09-25 23:49:57 +00:00
mycroft
1fa6a808a7 I have no idea where it got broken, but put back the creation of .package_done
files.
2001-09-25 20:26:37 +00:00
tron
d9e3ce1e50 Fix cut and paste error in last commit. 2001-09-24 11:02:49 +00:00
tron
85ee00aa9d Add "PKGVERSION" to "PLIST_SUBST" by default. Trailing package source
version numbers (e.g. "nb1") are automatically removed.
2001-09-24 09:48:31 +00:00
jlam
855a3df049 Add back descriptions of MOTIF12_TYPE and MOTIF12BASE and fix
the descriptions of MOTIF_TYPE and MOTIFBASE lost during the
mk.conf.example --> bsd.pkg.defaults.mk conversion.  Also,
document MOTIF_TYPE_DEFAULT and MOTIF12_TYPE_DEFAULT which are
used as the final default values for MOTIF_TYPE and MOTIF12_TYPE.

Note: none of these values need to be explicitly set, as
motif.buildlink.mk will choose sensible values for all of these
variables.
2001-09-21 19:50:28 +00:00
jlam
d3bbf92d5e Do an immediate setting of MOTIF_TYPE and MOTIF12_TYPE so that the
definition isn't recursive if values have already been assigned.
2001-09-21 19:26:45 +00:00
tron
85eb51b084 Include "bsd.own.mk" before "bsd.pkg.defaults.mk" because otherwise "?="
assignments in "/etc/mk.conf" won't work anymore.
2001-09-21 15:28:35 +00:00
agc
9fb911e9f9 Now that bsd.pkg.defaults.mk is in the tree, mk.conf.example can go away. 2001-09-19 20:29:39 +00:00
drochner
b5040f0f2b setting MOTIFBASE explicitely breaks motif type auto detection,
so comment it out
2001-09-19 17:18:41 +00:00
agc
91d1845f89 Add a new bsd.pkg.defaults.mk file, derived from the old mk.conf.example.
This file is "included" automatically before <bsd.own.mk> includes
/etc/mk.conf, so that pkgsrc-wide default values are set.

It is now possible just to set values in mk.conf only where they differ
from the default, thereby easing the problems of updating mk.conf when
new values get added.
2001-09-18 21:30:05 +00:00
jlam
0cb3a96be8 Fix problem with Solaris' /bin/sh not accepting an empty list in a for
loop noted in pkg/13894 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>.
The suggested fix was applied.
2001-09-14 18:54:43 +00:00
jlam
fec4edb91a Document the new Motif-related variables. Deprecate USE_MOTIF in favor of
including motif.buildlink.mk, which contains more sophisticated and
complete logic for detecting the various Motif options that may be
installed.  Though deprecated, USE_MOTIF is still recognized, though it
does no more than include motif.buildlink.mk.
2001-09-14 01:52:40 +00:00
jlam
54914a30b8 Define USE_X11BASE instead of just USE_X11. This makes motif.buildlink.mk
match the behaviour of USE_MOTIF in setting PREFIX=${X11BASE}.
2001-09-14 01:35:02 +00:00
jlam
021aebeb7f Document MOTIFBASE, MOTIF12BASE, MOTIF_TYPE, MOTIF12_TYPE. 2001-09-13 22:53:20 +00:00
jlam
c433b6a0a1 Set MOTIF12_TYPE and MOTIF_TYPE so that they may be used by other package
Makefiles.
2001-09-13 22:42:59 +00:00
jlam
d4b1853531 Unify the special code to detect pre-installed Motif installations
(whether 2.0 or 1.2-compatible) into one file, motif.buildlink.mk.
lesstif12/buildlink.mk now assumes that if you include it, then you
actually want lesstif12.

To select that you want a Motif-1.2-compatible installation, define
USE_MOTIF12 in the package Makefile.  If MOTIF12BASE is also defined, then
assume it points to a valid Motif-1.2 installation.  Otherwise, auto-detect
whether /usr/dt is valid, or if we need lesstif12.
2001-09-13 22:06:33 +00:00
jlam
752176a4e6 To verify a Motif-2.0 installation, test for the presence of <Xm/Xm.h> and
<Xm/Gadget.h> instead of only <Xm/Xm.h>.  This differentiates between
Motif-2.0 and Motif-1.2 installations.
2001-09-13 19:32:11 +00:00
jlam
a8587a15c0 Clarify in the comments that this buildlink.mk file handles
Motif-*2.0*-compatible installations.
2001-09-13 19:22:17 +00:00
jlam
e598e5dd1a Switch default Motif type to OpenMotif, as it's a "real" Motif with full
functionality.  Default remains DT-Motif on Solaris.  This doesn't affect
users who already have LessTif installed, as motif.buildlink.mk will use
an installed Motif package in preference to the default.

I have compiled and run every package in pkgsrc (as of today) that uses
either USE_MOTIF or motif.buildlink.mk.  They all function as well or
better with OpenMotif as the installed Motif package as compared with
LessTif.  There was only one small API difference I detected between
LessTif and OpenMotif in <Xm/Text.h>, where OpenMotif's Text.h includes
<stdio.h> while LessTif's does not, but the only package that this
affected (graphics/tcm) was fixed.
2001-09-13 19:14:52 +00:00
jlam
4e15ec09d8 Set MOTIFBASE within the scope of the Motif-compatible package's
buildlink.mk as it uses values from the buildlink.mk for it's own value.
Also don't pass MOTIFBASE to the MAKE_ENV as it causes the correct package
buildlink.mk file to not be included.
2001-09-13 08:37:28 +00:00
jlam
fd9c024e89 Alter logic for choosing which Motif installation to use. It's now as
follows:

If MOTIFBASE is set, then assume it points to a valid Motif installation.
If MOTIF_TYPE is set, then use the named Motif installation.
If neither MOTIFBASE nor MOTIF_TYPE is set, then any pre-existing Motif
installation is used, whether it is in /usr/dt or ${X11BASE} or a pkgsrc-
installed Motif.
Lastly, default to ${MOTIF_TYPE_DEFAULT}.

This makes MOTIF_TYPE behave more like XAW_TYPE in that it explicitly
chooses the Motif installation to use.
2001-09-13 08:05:10 +00:00
agc
5d918d6e52 Add a just-in-time su mode for "make package" by factoring out the code
whcih does the su(1), and using that. Also make the deinstall target use
the same common code.
2001-09-12 10:38:12 +00:00
wiz
bd02cc8c26 Make print-PLIST work again if no linux=procfs mounted.
Patch by hubertf.
2001-09-11 16:41:36 +00:00
martin
478cff1cb0 Add support for two environment variables to help update all your
installed packages and only rebuild everything once:

 STOP_DOWNLEVEL_AFTER_FIRST
    if set makes "make show-downlevel" stop a bit earlier (since with the
    other one below you will be only interested in the first downlevel
    pkg found).

 REBUILD_DOWNLEVEL_DEPENDS
    if set forces the pattern match for dependencies to fail whenever the
    installed pkg is not the version in the makefile (i.e. "make show-downlevel"    would print a version mismatch for the dependecy). This causes all
    downlevel dependencies (and everything depending on them) to be rebuild.

Enhancements, like making this all work with make command line flags and
settings in /etc/mk.conf are welcome. A way to stop "make show-downlevel"
through all upper levels of recursion imediately would be very usefull too.
2001-09-10 20:03:17 +00:00
agc
603eae4669 Set the default value of WRKSRC in a slightly different way (from Hubert
Feyrer).
2001-09-10 09:56:05 +00:00
kei
dd9ba6a7a5 Define default value of WRKSRC again. It is required by the packages without
NO_WRKSUBDIR.
2001-09-10 02:46:15 +00:00
agc
a16fc84f19 Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00
jlam
ee5fa48af4 Document MOTIF_TYPE, used as a hint to select the Motif installation to
use.
2001-09-08 20:33:24 +00:00
jlam
78934af22c Separate out the Motif-checking logic from lesstif/buildlink.mk into a
separate file mk/motif.buildlink.mk.
2001-09-08 19:52:30 +00:00
jlam
70004632b2 Buildlink glue to provide strong-buildlinking for packages that use X11
(not counting packages using imake) whether or not xpkgwedge is installed.
2001-08-29 22:33:38 +00:00
zuntum
8a4bf4a469 Fix typo:
avi{...,avitype} -> avi{...,type}
2001-08-28 23:36:24 +00:00
tv
ea4db8a84e Since libtool has now been split, it's no longer necessary to have a
BUILD_DEPENDS on libtool for the USE_LIBTOOL/non-USE_LTDL case; instead,
just depend on libtool-base (thus skipping the libtool-info and libtool
package compilation where appropriate).
2001-08-27 15:05:54 +00:00
hubertf
72a293c7e6 print-PLIST: remove emul/linux/proc entries before sorting. No need to
waste processing time on data we're going to discard.
	     Pointed out by Tomasz Luchowski <zuntum@netbsd.org>.
2001-08-24 10:50:03 +00:00
abs
7cb5dda995 shuffle some whitespace to make it more obvious what is going on 2001-08-24 09:00:44 +00:00
hubertf
aeed7c63ec * When applying patches, also look in $LOCALPATCHES/$PKGPATH for
any local patches that the user wants to maintain outside of
   pkgsrc.
 * print-PLIST: ignore Linux procfs entries
2001-08-24 00:54:46 +00:00
abs
59ca687318 dirname is in /usr/bin. Now buildlink has a fighting chance on Linux 2001-08-23 16:54:09 +00:00
abs
8eee1675b7 gnu patch is used under Linux as well as Solaris 2001-08-23 16:37:27 +00:00
abs
482c9eeada '.endif' not '.fi' 2001-08-23 15:27:50 +00:00
jlam
33f148d48b Add a LIBOSSAUDIO definition that is passed through MAKE_ENV. 2001-08-23 13:31:00 +00:00
jlam
46a8516c88 Wrap this file in an .if ${OPSYS} == "NetBSD" so that it may be included
regardless of the operating system.
2001-08-23 13:12:59 +00:00
jlam
79fe9eff8c Create buildlink.mk files for the various Xaw libraries. Instead of
USE_XAW, a package Makefile may just include mk/xaw.buildlink.mk, which
pulls in the correct buildlink.mk file depending on the value of XAW_TYPE.
A package Makefile may also rely on LIBXAW being set to the correct
libraries.
2001-08-23 04:24:21 +00:00
jlam
64194bcde5 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
of x11.buildlink.mk, it still points to a working X11R6 hierarchy.
2001-08-23 04:21:02 +00:00
jlam
c2c4606f78 By default, don't use pkgtools/buildlink-x11 to cause packages that use
imake to be buildlinked as it's not necessary for those packages.  Many
thanks to Frederick Bruckman <fredb@immanent.net> for pointing this out.

This is accomplished by ripping out all of the Makefile logic related to
buildlink-x11.  It will be added back in a separate file (as noted by the
additional check for X11_BUILDLINK_MK, but will still not be the default.
2001-08-22 17:34:19 +00:00
jlam
14bff9af55 Change a = to a += to allow adding to the value of
BUILDLINK_CONFIG_WRAPPER_POST_SED.  Also some minor formatting changes.
2001-08-22 04:29:55 +00:00
tv
d4f0e2715c Remove "-" from default su command. It's more reliable to let some of the
environment be inherited from pkgsrc during an implicit su for install;
root's .-files may set variables that fiddle with how pkgsrc works.
2001-08-20 14:41:48 +00:00
zuntum
747a7f4680 Add AVIFILE_USE_QT for use by avifile package (as the moment only avifile-devel
uses it)
2001-08-19 08:47:57 +00:00
dogcow
10023af344 change BUILD_DEPENDS+= bzip2-0.9.0b:../../archivers/bzip2 to >=0.9.0b;
otherwise, extracts fail when bzip2-1.0.1 is installed.
2001-08-16 01:49:09 +00:00
agc
0671c7dbb5 The TCSH_STATIC mk.conf definition has been removed in favour of a
static-tcsh package.
2001-08-14 12:48:21 +00:00
skrll
6b1239edda Add GNU_ARCH.sparc64 entry.
This should fix pkg/13714 by Martti Kuparinen <martti.kuparinen@iki.fi>
2001-08-14 11:00:44 +00:00
jlam
cd4bfb05da Update build dependency on buildlink-x11 to >=0.7. 2001-08-08 07:24:57 +00:00
abs
b17128a573 ftp.digital.com seem to have dropped their cpan archive - switch to loaded 2001-08-01 16:18:18 +00:00
hubertf
e352dcca1e Sync locales from *.pkg.dist to *.x11.dist:
* NetBSD:	$LOCALBASE/share/locale	-> $X11BASE/share/locale
 * Linux:	$LOCALBASE/share/locale	-> $X11BASE/share/locale
 * SunOS:	$LOCALBASE/lib/locale	-> $X11BASE/lib/locale

Side effect of this is that print-PLIST doesn't print locale dirs
for X apps any more.
2001-07-30 15:09:23 +00:00
jlam
cb3a5c9daf Move -a from XMKMF_FLAGS to XMKMF. Thus, if a package wants to run
xmkmf without building all the Makefiles too, then it can set
XMKKF=${XMKMF_CMD} ${XMKMF_FLAGS} (same as default but without the -a).
2001-07-30 05:04:32 +00:00
tron
2c3778caca Remove obsolete variables "SQUID_HTTP_PORT" or "SQUID_ICTP_PORT". 2001-07-29 19:25:27 +00:00
jlam
ffdab7295f Add back commented code. 2001-07-27 16:51:30 +00:00
jlam
68e55782bb Separate library name replacement into two parts, pre-configure and
post-configure.  Also make sure ${BUILDLINK_DIR} is created prior to
trying to create the cookie files.
2001-07-27 16:41:16 +00:00
jlam
a9fa4a1635 On ELF, the linker extracts the soname from the specified libraries to
place in the linked object, so even if the library is a symlink with a
different name from the true library, the correct soname is recorded in
the object.  On a.out, there is no soname, so the linker just records the
specified library name + major number into the object, which can cause the
incorrect library name to be recorded.  Fix this problem on a.out by
replacing the specified library names with the true library names in all of
the Makefiles in a post-configure step.  Additional files may be added to
the list of files on which replacement is done by setting REPLACE_LIBNAMES
in each package that needs it.

This should fix pkg/13402 by John Klos <john@sixgirls.org>.
2001-07-27 14:30:16 +00:00
hubertf
822fcf2541 work around HAVE_BUILTIN_MESA not set when USE_GLX is set. 2001-07-27 12:19:15 +00:00
hubertf
04f42d0486 ZOULARISBASE: If there's no $LOCALBASE/bsd, try $LOCALBASE 2001-07-26 16:13:52 +00:00
wiz
e786e881f0 Force move new file over old one in REPLACE_PERL (at least one package
needs that).
2001-07-26 08:39:35 +00:00
hubertf
f93ab578be Close a quote.
Noted by Will Andrews <will@physics.purdue.edu> in private mail.
2001-07-26 08:33:02 +00:00
jlam
a16dfdacab If USE_BUILDLINK_ONLY is defined, then use f2c/buildlink.mk instead of
directly adding a dependency on f2c.
2001-07-25 23:49:41 +00:00
abs
12ca9cd123 Note sun-jdk is a valid PKG_JVM, plus correct PACKAGE_JVM to PKG_JVM ref 2001-07-25 12:12:54 +00:00
jlam
9d08dcf929 Change the EVAL_PREFIX logic so that if
EVAL_PREFIX=    FOODIR=foo

is defined, then FOODIR's value is only saved if the package foo was
found.  This causes FOODIR to keep being reset until the package foo
is installed, which makes EVAL_PREFIX work properly with buildlink.mk
files.  This should fix various problems people have been having with
files not being linked in when a dependency is built via a "make build"
in a package that uses that dependency further up the chain.
2001-07-25 07:36:40 +00:00
jlam
c762959d80 Add more debugging code to note when a file to be linked can't be found. 2001-07-24 11:47:28 +00:00
jlam
081ae6de6b Only create <sys/soundcard.h> if <soundcard.h> exists. 2001-07-24 10:13:38 +00:00
wiz
77d1591c0a Add variable to make navigator/communicator _not_ depend on flash, and
document it in mk.conf.example. Adresses pkg/13343.
2001-07-23 18:30:24 +00:00
jlam
8e03d76234 Record files that are linked into ${BUILDLINK_DIR} in the cookie files
to aid in debugging problems.
2001-07-23 11:07:22 +00:00
dmcmahill
02a6401010 don't try and do 'mount -o async -u /usr' because we don't know that the user
even has a file system called /usr or that thats the right one.
2001-07-21 19:58:32 +00:00
dmcmahill
32188bfde2 if an outdated package is still installed and 'make deinstall' fails
to remove it, then try again with 'pkg_delete -r'.  This can happen when
some other out date pacakges are installed and we're trying to bulk build
a single package.
2001-07-21 19:36:47 +00:00
jlam
5af074304d Make the example buildlink.mk file more complete by showing how
dependencies on the package are added through buildlink.  Also show how
to use EVAL_PREFIX to set BUILDLINK_PREFIX.foo.
2001-07-20 02:00:47 +00:00
hubertf
f652ba9c24 Change indentation (whitespace changes only!):
.if 			.if
  .if			.  if
  .else		=>	.  else
  .endif		.  endif
  .endif		.endif

Patch contributed by Marc Espie <espie@liafa.jussieu.fr> in preparation of
merging latest changes with the OpenPackages project. Thanks Marc!
2001-07-18 22:43:32 +00:00
abs
4348e0d6e2 Switch solaris default LOCALBASE across to /usr/pkg 2001-07-17 10:11:32 +00:00
jlam
c18e4e27f6 Rename "FILE" to "FILE_CMD" since ".for FILE" is a common idiom in BSD
makefiles, and this interferes with the conditional definition of FILE
in defs.*.mk.
2001-07-15 12:40:03 +00:00
jlam
bca806a5de Add a buildlink.mk file to put OSS audio headers and libraries into
${BUILDLINK_DIR} in Linuxish locations.
2001-07-14 15:43:18 +00:00
dmcmahill
6b21173ecb if a package subdirectory is listed in the category makefile, but doesn't
exist, then spit out a big warning to stderr (since we often capture stdout
for other purposes) and don't try and descend to that directory.
2001-07-13 15:14:57 +00:00
tron
cd704ea25b Improve Java handling via "USE_JAVA" option:
- The "sun-jre" and "sun-jdk" packages can now be directly selected by
  setting "PKG_JVM" to "sun-jdk". "JAVA_HOME" is set to
  "${LOCALBASE}/java/jre/bin" in this case which fixes PR pkg/11901
  by myself.
- Only set "CLASSPATH" to "${JAVA_HOME}/lib/classes.zip" if that file
  really exists.
2001-07-13 11:28:23 +00:00
jlam
d3bc280f55 Add definitions for CMP pointing to cmp utility and use it in bsd.pkg.mk. 2001-07-13 06:16:02 +00:00
tron
19cbb67830 Check if "${X11BASE}/lib/X11/config/X11.tmpl" exists before searching
with "grep" through it in Mesa library handling.
2001-07-10 16:37:13 +00:00
tron
75d0cbc0b3 Add new variable "SPARC_TARGET_ARCH" used to select the target architecture
under Solaris/SPARC. Default is "sparcv7".
2001-07-10 15:07:35 +00:00
tron
75a2304553 Fixes for "tarup" target:
- Add missing "${_PKG_SILENT}${_PKG_DEBUG}" in front.
- Create category directories as required.
2001-07-10 12:04:43 +00:00
tron
805f15ed41 Add new "tarup" target which allows to create a binary package from an
installed package with the "pkg_tarup" utility.
2001-07-10 11:51:57 +00:00
tron
9f2922b0a3 Use ":=" in assignment of "ZOULARISBASE" because "LOCALBASE" might get
redefined later.
2001-07-10 11:13:31 +00:00
tv
d6c0d5882c * Make perl stop installing anything in the man3 directory. It's starting
to install things like "open.3" and "lib.3" which confuse users.  Perl
  ships with a documentation tool, "perldoc", for this purpose; create a
  MESSAGE indicating that it should be used instead.  (Perl still installs
  command line program manual pages in man1.)

* Integrate bsd.perl.mk into the perl5-base build where it should have been
  from the beginning.  The separate perl-mk pkg makes binary packages of
  perl-mk completely useless[*].  Older perl builders will not break, since
  <bsd.pkg.mk> contains fallback definitions that are evaluated at pkg
  build time.

=====

[*] bsd.perl.mk is tightly bound to the version of perl that is installed.
    The version name "perl-mk-1.1" is completely useless as a binary pkg,
    since keeping multiple binary versions of perl on a FTP server means
    that one of the perl-mk's will get clobbered.

    However, putting the current pkgsrc PERL5_DIST_VERS in the perl-mk pkg
    is also a problem, because that doesn't necessarily reflect the
    installed version of perl.  Snarfing the installed version at perl-mk
    build time would be even uglier, since you could not then walk the tree
    without perl being installed.

    The cleanest solution is to integrate bsd.perl.mk into the perl5-base
    pkg, and let those who have not upgraded perl yet use the runtime
    definitions in <bsd.pkg.mk>.
2001-07-09 17:10:25 +00:00
fredb
a031a501cf Provide missing parenthesis for CHECK_XPM. 2001-07-09 14:31:58 +00:00
dmcmahill
47460c416e consolidate a duplicated part of the script. 2001-07-09 10:24:41 +00:00
dmcmahill
5e895a7c16 when saving the rsync script for later, be sure and save the starting
directory too.
2001-07-09 10:08:38 +00:00
dmcmahill
7bb464e019 teach the upload script about OSVERSION_SPECIFIC packages so one can put
them in the right place.  For example, a collection of binary packages can
now put uploaded with most going to the major.minor directory and the
OSVERSION_SPECIFIC ones going to the major.minor.patch directory.

still todo:  the destination settings should probably be moved out of
build.conf so the same build.conf can be used by multiple machines of
different MACHINE_ARCH's at the same time.  Perhaps these should be
a command line option to 'upload' instead.
2001-07-08 14:36:56 +00:00
dmcmahill
7190c9bfae add OSVERSION_SPECIFIC to BUILD_DEFS if defined so it ends up in the binary
package.  This way we can look at a binary package and determine what versions
of the OS it may run on.
2001-07-07 17:10:36 +00:00
tron
8f157753f2 Check if "${X11BASE}/lib/X11/config/X11.tmpl" before searching with
"grep" in it to avoid problems under Solaris.
2001-07-06 21:10:20 +00:00
tron
af45844a42 Fix quoting problem in Solaris's "/bin/sh". 2001-07-06 18:45:15 +00:00
abs
039063bc7a bsd.prefs.mk: Make OBJECT_FMT work on NetBSD 1.3 2001-07-05 21:11:07 +00:00
jlam
d8e22debda Update buildlink-x11 to 0.6. Changes include moving the custom overrides
of X11.rules settings below the inclusion of <X11.rules>.  This should
cause overrides to work correct for XFree-3.3.x systems.
2001-07-05 17:22:59 +00:00
jlam
619f213103 Document the logic that sets XMKMF_CMD. 2001-07-05 04:58:12 +00:00
jlam
00655f3659 Update buildlink-x11 to 0.5. Changes from previous version are the
addition of the xmkmf script from the XFree86-4.0.x distribution, which
understands passing -D options through to imake.  Update the dependency
on buildlink-x11 in bsd.pkg.mk for packages using USE_BUILDLINK_ONLY to
>=0.5.  Also, if USE_BUILDLINK_X11 is set, then refer to ${BUILDLINK_DIR}
for location of X headers and libraries.
2001-07-05 04:47:27 +00:00
perry
27004b36eb fix a problem with HAVE_BUILTIN_XPM 2001-07-04 23:44:27 +00:00
mjl
fff9689237 Add GNU_ARCH.powerpc. This fixes some of the recent problems experienced
on macppc compiling packages.

XXX This should come from bsd.own.mk but doesn't. Why?
2001-07-03 02:20:38 +00:00
jlam
8c0e21a260 buildlink-mk requires that BUILDLINK_DIR always be set, so set it if
undefined and pass it through MAKE_ENV.
2001-07-02 21:28:45 +00:00
jlam
d51560f78a Bump build-dependency on xpkgwedge to >=1.5, and add a build-dependency
on buildlink-x11 if USE_BUILDLINK_ONLY is defined.  Pass all of
CPPFLAGS/CFLAGS/CXXFLAGS/LDFLAGS to buildlink-x11 through PKGSRC_* versions
of those values.  Also add preliminary support for USE_BUILDLINK_X11 for
buildlinking X11R6 instead of USE_X11 (hi zuntum!).
2001-07-02 21:06:51 +00:00
jlam
8d8c3630b3 Make check for Xpm in XFree86 look like the checks for Mesa and freetype2. 2001-07-02 08:02:33 +00:00
jlam
798c9b42c7 For aesthetic reasons, sort the *.lai files found during replace-buildlink. 2001-07-02 05:03:45 +00:00
jlam
a1de751f6c Merge buildlink-fix-libtool-archives and buildlink-fix-config-scripts
into one target: replace-buildlink.  Get rid of BUILDLINK_FIX_LIBTOOL_SED
as it can be handled with REPLACE_BUILDLINK_SED.
2001-07-02 04:26:50 +00:00
jlam
8933c84cf6 Change example to have bsd.buildlink.mk file included at start of a
package buildlink.mk file.  Also change
BUILDLINK_CONFIG_WRAPPER_SED.<pkgname> to BUILDLINK_CONFIG_WRAPPER_SED.
2001-07-01 22:56:01 +00:00
jlam
a56d13d64f Make sure the -DBuildLink gets passed through to subdir Imakefiles if
BuildLink is defined.  Bump xpkgwedge version number to 1.4 and increase
xpkgwedge dependency version in bsd.pkg.mk.
2001-07-01 21:13:20 +00:00
jlam
acff708464 Resurrect LIBTOOL_OVERRIDE. It's needed for lesstif-0.92.32 which uses
the latest libtool in its sources (there's no ltconfig, only ltmain.sh).
2001-06-30 03:36:48 +00:00
jlam
2365ad8d70 Bump build dependency on xpkgwedge to >=1.3 to handle buildlink.mk files
properly for imake-using packages, and cause pass -DBuildLink to xmkmf
(and thus to imake) if USE_BUILDLINK_ONLY is defined.
2001-06-29 18:29:27 +00:00
jlam
0acb0ede4e If USE_BUILDLINK_ONLY is set, then also set USE_CONFIG_WRAPPER
automatically.
2001-06-29 04:17:19 +00:00