Commit graph

2195 commits

Author SHA1 Message Date
jlam
4a5f4a9759 Provide a more complete list of GNU auto* tools to hide (thanks wiz!). 2002-11-20 22:24:58 +00:00
agc
7f9686ba08 Fixes from Robert Elz to:
+ umount filesystems in the reverse order from that which they were mounted

+ null-mount /lib and /libexec in a way more consistent with the original
2002-11-20 16:23:09 +00:00
jlam
97340929eb If using buildlink2, use a (hopefully) less error-prone way of preventing
the GNU auto* tools from being executed during the build process.  We now
just create shell scripts that simply return an error status for each of
the GNU auto* tools in ${BUILDLINK_DIR}/bin and ignore the other goop in
bsd.pkg.mk that tried to accomplish the same thing.
2002-11-20 08:05:04 +00:00
grant
9731c03451 LOWER_VENDOR is 'pc' on FreeBSD only if running on i386. 2002-11-17 22:35:23 +00:00
seb
8f045a8a8f Grrr Solaris' sh.
Use 'if cmd1; then :; cmd2; fi' instead of 'if ! cmd1; then cmd2; fi'
2002-11-17 17:39:40 +00:00
grant
badf01ab87 pull out SERIAL_DEVICES for now. 2002-11-17 15:14:18 +00:00
grant
cf547a3787 Add initial pkgsrc FreeBSD support :-)
Tested on FreeBSD 4.7-RELEASE/i386.
2002-11-17 15:11:40 +00:00
grant
53c5ebc61f bump LIBTOOL_REQD for FreeBSD. 2002-11-17 11:58:49 +00:00
salo
1fde293f32 Introduce new framework which unifies registering packages providing login
shells to /etc/shells.

This feature can be disabled by setting PKG_REGISTER_SHELLS to NO in
/etc/mk.conf.

An excerpt from Packages.txt, section 10.28:

 10.28 Packages providing login shells
 =====================================

If the purpose of the package is to provide a login shell, the variable
PKG_SHELL should contain the full pathname of the shell executable installed
by this package. The package Makefile also must include
"../../mk/bsd.pkg.install.mk" prior to the inclusion of bsd.pkg.mk to use the
automatically generated INSTALL/DEINSTALL scripts.

An example taken from shells/zsh:

        PKG_SHELL=      ${PREFIX}/bin/zsh
        .include "../../mk/bsd.pkg.install.mk"

The shell is registered into /etc/shells file automatically in the
post-install target by the INSTALL script generated by bsd.pkg.install.mk and
removed in the deinstall target by the DEINSTALL script.
2002-11-17 08:58:49 +00:00
uebayasi
cef3a36124 Defaults for w3m. 2002-11-16 05:26:28 +00:00
dmcmahill
9c4f6cfe7f - When listing the current version of the package, don't create a hyperlink
back to the current page, just list it as regular text.

- Put each dependency hyperlink on a separate line in the README.html file.

These were both noted by Thomas Klausner in a private email.
2002-11-16 02:15:15 +00:00
wiz
22c2363e35 Add be locale (glib2). 2002-11-15 15:10:54 +00:00
jlam
82f91e945a Reset IFS sooner so that recursive calls to the gen() function work
correctly with Solaris' ksh (not sure why this didn't break on NetBSD's
/bin/sh).  Analysis and fix by Jonathan Perkin <sketch@rd.bbc.co.uk>.
2002-11-14 23:36:01 +00:00
jlam
d7538956f0 Allow BUILDLINK_SETENV.<wrappee> to override _BLNK_WRAP_SETENV.<wrappee>.
This is to override the default CC=cc, CXX=c++, LD=ld, etc. settings in
CONFIGURE_ENV and MAKE_ENV, e.g.:

	BUILDLINK_SETENV.CC=	CC=gcc
2002-11-14 22:25:05 +00:00
jlam
9d0681cbce Allow for common case where --mode=install is not specified when using
libtool to install libraries or programs.
2002-11-14 21:45:21 +00:00
dmcmahill
35b7efca9b - when creating a new database, make sure that the old one is gone first to
avoid simply appending to it.

- add some additional error checks when using the -r/--restart options to
make sure that the database exists and give a useful error message if it
doesn't
2002-11-14 14:05:46 +00:00
jlam
62a470a755 Remove HAVE_OPENWINDOWS. Packages that wonder whether X11 is OpenWindows
can just test whether X11BASE is /usr/openwin (see x11.buildlink2.mk).
2002-11-14 10:08:01 +00:00
jlam
97412de3a3 Comment out the X11BASE setting, which is set in bsd.prefs.mk conditionally
based on the value of OPSYS.  This was breaking pkgsrc on Solaris.
2002-11-14 09:44:34 +00:00
dmcmahill
24b3feedec add a 'SINGLEPKG' variable which can be set on the command line to the
directory of a single package (e.g. graphics/gimp) for which a README.html
is to be generated.  This provides the required hook to be able to use this
script to generate a README.html file for a single package as well as
for all packages.
2002-11-14 07:10:05 +00:00
wiz
86833e1cf1 Drop some trailing whitespace. 2002-11-14 04:04:13 +00:00
wiz
07ada65434 Use ${PKG_INFO} instead of ${PKG_TOOLS_BIN}/pkg_info; replace leading spaces
with tabs.
2002-11-14 03:56:53 +00:00
jlam
90606f797c Document "static" and "no-rpath" transformations. 2002-11-13 19:34:05 +00:00
dmcmahill
0204d6ca73 move the pruning of readme's to the very end of the job. 2002-11-13 15:12:17 +00:00
dmcmahill
218cd311ec - add some more error checking. In particular, if any of the template files
don't exist, exit with a fatal error and don't try and make empty README.html
  files.

- fix a bug which caused some duplication in category README.html files.
  Problem noted on netbsd-help@ by Nicolas Saurbier ( Nicolas dot Saurbier at biodata dot de)
2002-11-13 15:08:29 +00:00
dmcmahill
1e48a03c4b add a -S,--save-database option which doesn't delete the database files
after the run.  Useful for debugging since this preserves the intermediate
result of the most time consuming portion of the script.
2002-11-13 11:12:04 +00:00
dmcmahill
429e45ec44 only update the README-IPv6.html file if it has changed 2002-11-13 10:14:04 +00:00
dmcmahill
6415f887e0 - replace & with &amp; _before_ replacing < with &lt; and > with &gt; when
escaping html output.

- properly escape the URL in the link and the displayed URL in the vulnerability
  list to handle the '&' character in URL's.
2002-11-13 01:05:03 +00:00
dmcmahill
afa9aa5dd4 start warning output on a new line to make it easier to read 2002-11-13 00:59:35 +00:00
dmcmahill
54a10c8ebb - added progress meter when extracting database. Useful for those of us
with slow machines.

- fix minor bug which left some temp files laying around in /tmp/mkreadme.
2002-11-12 13:45:36 +00:00
dmcmahill
e533139410 add definition for HTML_PKGNAME used by the readme generation 2002-11-12 13:42:50 +00:00
dmcmahill
1629f82b0b add timestamp to output messages 2002-11-12 02:17:58 +00:00
dmcmahill
3d2524d328 add scripts for generating the README.html files in a much more efficient
way than the previous recursive make approach.  The 'mkreadme' script is
the top level script.  'mkreadme -h' or 'mkreadme --help' for complete
documentation on its use.  Generates README.html files more than two orders
of magnitude faster than the recursive make approach by only calling make(1)
once per pkg.
2002-11-11 21:51:04 +00:00
dmcmahill
696790b4ca add a print-summary-data target which will be used by the new bulk
README.html generation script.  This target gives all information
needed by the README.html file in 1 make call.
2002-11-11 21:46:51 +00:00
hubertf
d019306132 rename BINPKG_SITE to BINPKG_SITES
Adresses PR pkg/19004 by tv@pobox.com
2002-11-10 18:20:44 +00:00
grant
f07e00c1f9 add MASTER_SITE_MOZILLA for Australia. 2002-11-10 12:17:31 +00:00
seb
ca66a9af3a Take care of -current's /lib and /libexec.
Noted by Julio Merino <jmmv at menta dot net> in PR pkg/18968, I had this
in my trees for weeks and I forgot about it...
2002-11-08 10:26:51 +00:00
dillo
03a99c0834 Add a test target to bsd.pkg.mk:
It runs pre-test, do-test, and post-test.  The default pre-test and
post-test targets are empty; the default do-test target runs
TEST_TARGET (in each TEST_DIRS (defaults to BUILD_DIRS)) if it is set
and does nothing otherwise.  Thus the test target defaults to doing
nothing.

  The usual way to use this is to set TEST_TARGET to the target to run
(e.g. TEST_TARGET=check for GNU packages).

  If PKGSRC_RUN_TEST is set to yes (in mk.conf, defaults to no),
the test target is run before install.

(approved by agc)
2002-11-07 04:22:29 +00:00
hubertf
a536eabe59 Actually pass CVS_FLAGS propperly to the su'd "cvs update" 2002-11-03 22:59:21 +00:00
jlam
3ea1f6abe7 When "make install" su's to root, su is invoked with the "-l" option, which
causes the shell environment to be discarded.  This also discards
OBJMACHINE or OBJHOSTNAME, which causes WRKDIR_BASENAME to be different
between the "non-root" and "root" make targets and leads to the breakage
seen in pkg/18879 by Simon Burge.  Fix this by saving the OBJHOSTNAME or
OBJMACHINE setting in MAKEFLAGS so that it is seen even after we "su -l" to
root.
2002-11-01 06:29:23 +00:00
jlam
6bbf080d53 Whitespace and minor cosmetic fixes. 2002-11-01 06:19:47 +00:00
jlam
b954670051 Bump the pth dependency to pth>=1.4.1nb5, which ensures that we have the
latest set of fixes and changes to pth to make it look more like a real
pthreads package.
2002-11-01 06:09:36 +00:00
jlam
730e9ae62a Copy the x11-links tree into ${BUILDLINK_X11PKG_DIR} (${BUILDLINK_DIR})
if the package uses X11 and merge the BUILDLINK_X11PKG_DIR and
BUILDLINK_X11_DIR variables into a single variable: BUILDLINK_X11_DIR.
This creates a one-to-one mapping between X11BASE and BUILDLINK_X11_DIR,
instead of X11BASE mapping to both BUILDLINK_X11_DIR and to
BUILDLINK_X11PKG_DIR.

Remove the now unused II and LL parts of the BUILDLINK_TRANSFORM language.
Add a new "static" keyword to the mini-language and fix building
statically-linked binaries when building with libtool.
2002-10-31 22:14:08 +00:00
agc
d099fcaaac Fix an oversight noticed by the eagle eyes of Nick Hudson - thanks, Nick! 2002-10-31 14:33:50 +00:00
agc
091606dcbc Diffs to support the Wasabi port of the SuperH 5 evaluation board
(sh5el), from Steve Woodford
2002-10-31 13:51:20 +00:00
seb
b641d6bb2d BUILDLINK_X11_DIR also need to be protected. 2002-10-30 14:07:53 +00:00
seb
b2fbdd84be Fix typo:
{II,LL}:src:dst1,dst2 -> {II,LL}:src:dst1:dst2
2002-10-30 11:06:55 +00:00
rh
c60effffcc Add PKGCONFIG_OVERRIDE to get rid of tons of unnecessary patches.
PKGCONFIG_OVERRIDE may contain a list of ".pc.in" pkgconfig template files
that require the addition of -Wl,-R in the pre-configure stage.
2002-10-30 02:25:29 +00:00
jlam
f0f05619c5 Move the sed command in _BLNK_{,UN}TRANSFORM_SED into a sed command files
.transform.sed and .untransform.sed that are generated by a new
gen-transform.sh shell script.  This avoids all of the silliness with
exceeding the length of the value of a make variable that brought about
breaking the original _BLNK_TRANSFORM_SED into _BLNK_TRANSFORM_SED.[1-4].
It's also vastly easier to understand the gen-transform.sh script as
opposed to the juxtaposition of make and sed regular expressions, a.k.a.
massive eyesores, that were in bsd.buildlink.mk.

Also fix the directory protection scheme so that it might actually work
if the pkgsrc directory is a subdirectory of /usr/pkg (${LOCALBASE}).

Lastly, filter out /usr/X11R6 (${X11BASE}) if the package doesn't define
USE_X11.  This should catch packages that use X11 without announcing it,
and avoids one way you can circumvent buildlink2.
2002-10-30 00:23:00 +00:00
bouyer
def1bf2f39 Revert previous. There are extra quotes in COMMENT files created by make
package on NetBSD.
Need to find another way to fix this.
2002-10-28 18:53:37 +00:00
bouyer
ec2b8065fc Add quotes around ${COMMENTS} for PKG_ARGS_COMMON. This is needed for
Solaris's /bin/sh and doesn't do anything bad for NetBSD's /bin/sh.
2002-10-28 17:36:04 +00:00
bouyer
d522c87431 Use ${LOCALBASE}/bin/gtar if it exists. 2002-10-27 18:27:11 +00:00
jlam
36571484d7 Remove comment about filtering out libtool archives that applied to
buildlink1 but is no longer true with buildlink2.
2002-10-23 19:07:56 +00:00
jlam
84c2d05213 Actually glib/buildlink.mk still uses this. Thanks wiz! 2002-10-23 17:50:40 +00:00
jlam
416feb0be7 Unless PKG_RCD_SCRIPTS=YES and RCD_SCRIPTS is non-empty, don't create
${RCD_SCRIPTS_DIR} as it's not used at all.
2002-10-23 17:43:16 +00:00
wiz
b56fb57bf8 Remove USE_LIBINTL and _DO_LIBINTL_CHECKS, which have been replaced
by devel/gettext-lib/buildlink2.mk.
2002-10-23 12:21:29 +00:00
jlam
eb37e4bb5f Only create RCD_SCRIPTS_DIR if RCD_SCRIPTS is defined and non-empty in
the package Makefile.
2002-10-23 01:16:41 +00:00
jlam
a6b9c0d3c0 x11.buildlink.mk is no more so remove checks for X11_BUILDLINK_MK. 2002-10-22 22:57:56 +00:00
jlam
0ebae1a37f Have USE_IMAKE imply USE_X11BASE imply USE_X11. Now we can just check if
USE_X11 is defined instead of USE_X11 || USE_X11BASE || USE_IMAKE.
2002-10-22 22:54:07 +00:00
jlam
ad1b0af1a4 Unused. 2002-10-22 22:08:19 +00:00
wiz
4281bb0656 Remove share/locale per PR 18649 by Lubomir Sedlacik. 2002-10-22 12:53:19 +00:00
seb
fc6bb7b338 Grep for 'Make' in ${GMAKE} --version output for recording its version.
Compare...

$ gmake --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386--netbsdelf
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.

to...

$ gmake --version
GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
2002-10-21 21:58:59 +00:00
jlam
4d0aee253b Move X11BASE setting for Solaris to a more appropriate place now that we
don't need to worry about USE_XPM.
2002-10-21 21:46:00 +00:00
wiz
555b0a21c7 Purge unused USE_XPM (use graphics/xpm/buildlink2.mk instead). 2002-10-21 13:58:14 +00:00
wiz
144d00183a Remove traces of now unused USE_XAW. 2002-10-21 01:40:56 +00:00
wiz
022dd28384 Remove (currently unused) USE_LTDL code -- use libtool/buildlink2.mk instead. 2002-10-21 01:23:03 +00:00
wiz
6b9d47990b USE_GLX has been obsoleted a long time ago -- remove it here too. 2002-10-21 01:18:55 +00:00
wiz
16407c1798 Remove USE_MESA -- now unused. 2002-10-21 01:17:11 +00:00
jlam
c2431016c7 Document RPM_DB_PREFIX:
# Used in the rpm package to note the prefix of the path to the RPM
# databases.  The RPM databases are stored in ${RPM_DB_PREFIX}/lib/rpm.
# Possible: any valid location, e.g. ${LOCALBASE}
# Default: /var/pkg
2002-10-20 23:12:50 +00:00
wiz
c56722e180 Use :Q to quote COMMENT. Proposed by Alan Barrett. 2002-10-20 22:19:22 +00:00
jlam
8d07e4003b SAMBA_WITH_MSDFS is no longer needed...samba always builds with MSDFS
support now.
2002-10-20 19:52:29 +00:00
jlam
980f9a3271 SETUID_ROOT_PERMS is a convenience definition to note an executable is
meant to be setuid-root, and should be used as follows:

	SPECIAL_PERMS+= /path/to/suidroot ${SETUID_ROOT_PERMS}
2002-10-20 18:01:47 +00:00
seb
7bb88e29b0 Gmake's configure does not support anymore --disable-nsec-timestamps.
So remove it and associated variable.
2002-10-20 16:45:04 +00:00
wiz
accb9cb69d Remove obsolete USE_FREETYPE2 support; all users have been converted to use
freetype2's buildlink2.mk.
2002-10-20 11:47:04 +00:00
jlam
8f33914f7c Generate the INSTALL/DEINSTALL scripts at post-build time, and use proper
make dependencies to ensure that the actual scripts are up-to-date if the
sources are changed.
2002-10-20 09:10:42 +00:00
jlam
9ee42664eb Generate the rc.d scripts at post-build time and use proper make
dependencies to deal with changes in the source rc.d script file (this is
possible now that some variables have moved to bsd.prefs.mk from
bsd.pkg.mk).
2002-10-20 04:11:39 +00:00
jlam
0905c3678b Move some variable definitions from bsd.pkg.mk to bsd.prefs.mk so that
they may be used in conditional statements in *.mk files before bsd.pkg.mk
is included.
2002-10-19 20:33:59 +00:00
minoura
0472a082cd 1. Strip out nb? suffix from EMACS_VERSION
2. New variable PKGNAME_PREFIX, which is either null string or xemacs-
depending on EMACS_FLAVOR.  Intended to use like:
DEPENDS+=	${PKGNAME_PREFIX}apel>=10.4:../../devel/apel
BUILD_DEPENDS+=	${PKGNAME_PREFIX}apel>=10.4:../../devel/apel
2002-10-19 06:48:03 +00:00
jlam
ad8e5c1fab Substitute for ${RCD_SCRIPTS_DIR} in MESSAGE files. 2002-10-19 01:33:51 +00:00
jlam
68e548cdf0 Make fake-la work on a.out machines. Fix based on patch in pkg/18694
by itohy@netbsd.org.
2002-10-18 15:41:08 +00:00
heinz
834e71adf4 Only delete scripts in RCD_SCRIPTS_DIR if PKG_RCD_SCRIPTS is YES
(approved by jlam).
2002-10-17 16:15:14 +00:00
grant
bc0094b054 Use mtree and pkg_* from bootstrap-pkgsrc if they exist.
ok'd by agc.
2002-10-17 14:39:18 +00:00
itojun
0685a2304f fine tar in /bin, or /usr/bin 2002-10-16 23:42:00 +00:00
jlam
b57616f9a3 Knock off a TODO item: when generating the internal list of acceptable
JVMs from the package-provided PKG_JVM_ACCEPTED list, filter out those
JVMs that aren't available for the current platform.  This allows a
package to simply list all JVMs that may be used to build it in
PKG_JVM_ACCEPTED, regardless of platform issues, instead of having to
construct a different PKG_JVM_ACCEPTED based on the platform we are using.
2002-10-14 12:10:54 +00:00
jlam
70ec1b606e Back out previous...accidentally committed work-in-progress. 2002-10-14 11:48:04 +00:00
jlam
d7dfb4fdd1 Allow for a way to specify which JVMs are acceptable for each
platform, and use the intersection of these JVMs and the ones
listed in PKG_JVMS_ACCEPTED as the JVMS that may really be used.
Currently, we assume all of the JVMs are usable by all platforms.
2002-10-14 11:05:48 +00:00
jlam
c6eef55b94 Fix typo (missing leading underscore), and add a currently unreachable
section that errors out if there is no acceptable JVM found.
2002-10-14 07:25:04 +00:00
kim
d4f819ef7a Add support for enabling MSDFS in Samba. 2002-10-13 23:13:50 +00:00
jlam
94fedbecad Reorder EVAL_PREFIX, PKG_JAVA_HOME, and CLASSPATH sections so that
EVAL_PREFIX is evaluated at the correct time so that the variables it
defines are usable by the CLASSPATH code and the buildlink2 code.
2002-10-13 09:38:58 +00:00
jlam
00028d58c0 Initial cut at java.mk that completely replaces the USE_JAVA-handling code
in bsd.pkg.mk.  The java.mk Java handling is largely based on the
lang/python/pyversion.mk file.

There are two new variables:

	PKG_JVM_DEFAULT is a user-settable variable whose value is the
		default JVM to use.

	PKG_JVMS_ACCEPTED is a package-settable list of JVMs that may be
		used as possible dependencies for the package.

Two existing variables have been redefined to be only read-only, though
there is some logic to handle legacy /etc/mk.conf which may contain an
explicit PKG_JVM=...

	PKG_JVM is a publicly readable variable containing the name of
		the JVM we will be using.

	PKG_JAVA_HOME is a publicly readable variable containing
		${JAVA_HOME} for the PKG_JVM described above.

To do:

	Have some way to specify which JVMs are acceptable for each
	platform, and use the intersection of these JVMs and the ones
	listed in PKG_JVMS_ACCEPTED as the JVMS that may really be used.
	Currently, we assume all of the JVMs are usable by all platforms.

	I'm not sure if Darwin's special stub sun-{jre,jdk}13 packages
	are usable by buildlink2.  This needs to be verified.
2002-10-13 09:29:12 +00:00
jlam
94362c8d1d The JVM packages all now install such that "pkg_info -qp <jvm-pkg>" returns
JAVA_HOME for that package, so we don't need _JAVA_PREFIX anymore.
2002-10-13 08:01:27 +00:00
jlam
9b414a89c6 Create BUILDLINK_FILE_CMD.<pkg>, which is a shell pipeline that outputs to
stdout a list of files relative to ${BUILDLINK_PREFIX.<pkg>}.  The shell
variable $${pkg_prefix} may be used and is the subdirectory (ending in /)
of ${BUILDLINK_PREFIX.<pkg>} to which the PLIST is relative, e.g. if
`pkg_info -qp foo' returns "/usr/pkg/java/kaffe", then $${pkg_prefix} is
"java/kaffe/".
2002-10-13 07:13:42 +00:00
wiz
dd9c03590f Document some xlockmore options.
Patch from Lubomir Sedlacik in PR 18635.
2002-10-13 00:36:20 +00:00
bouyer
90ee03f829 Assign a default value to SPARC_TARGET_ARCH for the if MACHINE_ARCH == sun4
too.
2002-10-12 20:25:49 +00:00
agc
acd94fb634 On Solaris, MACHINE_ARCH on Suns can be sun4c or i86pc with
bootstrap-pkgsrc, so adjust accordingly.

Also indent a little better.
2002-10-12 17:17:22 +00:00
jschauma
038079f3df Remove NS_INST variable, obsoleted by last changes to www/netscape7 2002-10-11 20:52:00 +00:00
jlam
7a45d6d21f * Modify example buildlink2.mk: we now also want a variable called
BUILDLINK_PKGBASE.<pkg> that is the ${PKGBASE} for that package and can
  be used as "pkg_info ${BUILDLINK_PKGBASE.<pkg>}".  This variable is
  currently only used if the buildlink2.mk file uses
  BUILDILNK_PLIST_CMD.<pkg> (described below).

* Create readable variable BUILDLINK_PLIST_CMD.<pkg> that is a pipeline of
  shell commands that outputs to stdout a list of the files installed the
  <pkg>, relative to its installation prefix.
2002-10-09 23:17:54 +00:00
jlam
f274c4cf29 Rearrange _BUILDLINK_USE target code a bit to allow for BUILDLINK_FILES
to be a shell command, e.g.:

BUILDLINK_FILES=	`cd ${LOCALBASE}; ${LS} -1 lib/libfoo.*`
2002-10-09 22:10:04 +00:00
jlam
917d46efdf * Create variables BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS that are
readable through CONFIGURE_ENV and MAKE_ENV.  These may be used to fix
  up packages that use imake to check the appropriate locations for headers
  and libraries.

* Don't be so aggressive in prepending _BLNK_{CPP,LD}FLAGS to
  {C,CPP,CXX,LD}FLAGS.  The buildlink2 wrapper scripts will automatically
  filter out bad -[IL] paths, even if their added inadvertantly by package
  Makefiles, so we can simply append them to the existing
  {C,CPP,CXX,LD}FLAGS.  We try to be smarter about appending them to avoid
  needless duplication.
2002-10-09 20:58:10 +00:00
jlam
8ee3d01d39 Allow BUILDLINK_ENV to override shell environment settings in
${CONFIGURE_ENV} and in ${MAKE_ENV} for the configure and build processes,
respectively.  This allows overriding the value of "CC" passed to the
build, e.g.:

	BUILDLINK_ENV+=	CC="/usr/pkg/pthread/bin/pgcc"
2002-10-09 10:24:34 +00:00
schmonz
99eaa93523 Following up on previous, EXPR=/bin/expr on Darwin. 2002-10-09 00:00:26 +00:00
jlam
37a58f77ff Note this this file is not for use by package Makefiles. 2002-10-08 14:32:10 +00:00
jlam
267d5b11dd Unused. 2002-10-08 13:46:08 +00:00
jlam
6466fc055c Unused. 2002-10-08 13:39:00 +00:00
jlam
950843c223 Unused. 2002-10-08 12:55:49 +00:00
jlam
6502fab273 Recognize ${FIND} and ${XARGS}. 2002-10-08 11:32:34 +00:00
jlam
e098523a14 Substitute for ${FIND} and ${XARGS}. 2002-10-08 11:31:24 +00:00
jlam
71a2b3fa8b Recognize ROOT_USER and ROOT_GROUP in MESSAGE files. 2002-10-08 11:01:50 +00:00
jlam
d0fb8d064a Unused! Remove it to prevent new packages from using it instead of using
buildlink2.
2002-10-08 08:00:56 +00:00
jlam
0bff1e81cd Fix error messages to display if the compiler tools aren't in the PATH when
creating the buildlink2 wrapper scripts.  Based on patch in pkg/18425 by
grant@netbsd.org.
2002-10-08 01:06:33 +00:00
wiz
e5ebd8f39a Move BUILD_USES_GETTEXT_M4 logic to automake.mk. 2002-10-07 21:47:49 +00:00
jschauma
58933cb993 Document (commented) SAWFISH_THEMES variable, specifying the DISTFILES for
wm/sawfish-themes (default: about 180 themes available on themes.freshmeat.net)
2002-10-07 17:09:11 +00:00
hubertf
c378823256 Add switch GIMP_WITH_HELPBROWSER to build gimp with help browser.
Disables to "no", which results in no gnome-libs being needed.

Patch contributed by Stefan Krüger <skrueger@europe.com> in private mail,
with some changes from me.
2002-10-07 14:54:42 +00:00
seb
31d37f8832 Full pathname for expr command. 2002-10-06 22:16:41 +00:00
dmcmahill
b89364002b fix typo in comment and an error in the usage output (position of
bar and libbar were swapped).
2002-10-06 20:15:05 +00:00
wiz
8cfd589740 Mention buildlink2.txt. Closes PR 18542 by Greg Woods. 2002-10-05 22:06:32 +00:00
jlam
561ca1b8b7 Add new bsd.pkg.install.mk tunable variable: SPECIAL_PERMS.
SPECIAL_PERMS are lists that look like:
		file user group mode
	At post-install time, file (it may be a directory) is changed to be
	owned by user:group with mode permissions.

SPECIAL_PERMS should be used primarily to change permissions of files or
directories listed in the PLIST.  This may be used to make certain files
set-uid or to change the ownership or a directory.

Packages that install setuid executables should list them in SPECIAL_PERMS
so that the correct user and group will be used for file ownership, even
if the uid/gid changes between the package creation and the package
installation.
2002-10-04 23:46:26 +00:00
jlam
d940548856 Instead of the incredibly dense _print_* stuff, use a (hopefully) more
readable way of print messages.
2002-10-04 23:35:51 +00:00
jlam
3b536452b9 Add definitions for EXPR == expr, used for portable shell arithmetic. I
was only able to check the paths for NetBSD and Linux...Solaris and Darwin
pkgsrc developers should change the path to expr in the right defs.*.mk
file.
2002-10-04 23:32:17 +00:00
jlam
36647028eb Don't use JAVA_HOME as the user may have it incorrectly set in the
environment.  Instead, create a new variable PKG_JAVA_HOME, which is
passed to the configure and build processes via:

	JAVA_HOME=${PKG_JAVA_HOME}

to override any environment setting for JAVA_HOME.  This should fix
pkg/17989.
2002-10-04 11:19:26 +00:00
jlam
7b96c8d97c Add USE_OSS to BUILD_DEFS if it's defined. 2002-10-03 20:31:14 +00:00
jlam
ab22ba864a Created a new variable USE_OSS that is used to enable OSS audio support in
preference to or in place of Sun audio support in various packages.  People
using audio/oss should set USE_OSS in their /etc/mk.conf when building
packages.
2002-10-03 20:30:21 +00:00
jlam
b8684da367 Rename "OSS" variable to "HAVE_OSS". 2002-10-03 20:24:33 +00:00
wiz
a741933477 Sync with new autoconf213, automake14 packages and autoconf, automake updates. 2002-10-03 19:36:36 +00:00
jwise
80a79f514d Back out previous -- needs more thought. 2002-10-03 18:20:46 +00:00
jwise
4b31d5108f Fix a long-standing problem with dependencies for java packages, introduced
when support for BUILD_DEPEND-only java packages was introduced -- this problem
was preventing java from being registered as a dependency for a number of java-based
packages.
2002-10-03 16:07:27 +00:00
jlam
67255d948b Invent a new publicly readable variable OSS that is YES/NO for whether
audio/oss is installed.  Also add an example in the comments at the top
of the file that shows how to use the OSS variable.
2002-10-03 08:58:05 +00:00
jlam
3278f50981 Create "DEVOSSSOUND" which is used where we'd like for programs that use
the ossaudio emulation to use /dev/sound instead of /dev/audio.  For OSS,
DEVOSSSOUND == DEVOSSAUDIO == /dev/dsp.
2002-10-03 08:04:28 +00:00
jlam
bd6ecd6552 Recognize when 4Front OSS is installed on a NetBSD system and use real
OSS instead of the ossaudio OSS emulation library when building software.
2002-10-03 02:56:32 +00:00
dillo
cfe021d515 add AUTORECONF variable 2002-10-02 18:56:47 +00:00
dillo
5e15133d7d add makefile fragments for packages that need automake / autoconf to build. 2002-10-02 18:10:15 +00:00
jschauma
dd7020be6e Document NS_INST variable, determining if netscape7 uses the complete or
the recommended (default) install, as pointed out by wiz.
2002-10-01 13:35:12 +00:00
jlam
46dcc3cf14 Really, really fix the problem I was trying to fix with rev 1.6. I want
to only add -Ldir/.libs for *.la files that are not named with absolute
paths or named with an absolute path starting with ${WRKSRC}.  This should
fix the problem with converting kdebase3 to buildlink2.
2002-10-01 09:51:22 +00:00
jschauma
d2dd18dbfa Add PKG_LANG variable, defaulting to english.
Currently only used by www/netscape7 but this can potentially be used by
many packages to help localize the installation.  Ok'd by wiz.
2002-09-30 13:55:54 +00:00
rh
5b9570bb28 Correctly fetch ALLFILES containing '=' characters 2002-09-29 01:38:32 +00:00
jlam
3f254d2f51 * Split _BLNK_TRANSFORM_SED into 4 variables, as even with 3 it was
overflowing the make variable size limit.

* Rename _BLNK_WRAP_ENV to _BLNK_WRAP_SETENV, and use _BLNK_WRAP_ENV to
  set the shell environment for the wrappee.  Allow BUILDLINK_WRAPPER_ENV
  to add to the shell environment.
2002-09-28 23:46:42 +00:00
uebayasi
561b979f39 Nuke a bogus invocation of 'pkg_info -I' and use 'pkg_info -e' instead.
Simplify the '!=' lines.

Pointed out by wiz (a.k.a. wizd(8)).
2002-09-28 14:19:51 +00:00
rh
8c9edc8e2e Make machine/soundcard.h an alias for sys/soundcard.h if non-existent 2002-09-27 15:17:18 +00:00
jlam
73b1e2ab06 Provide a way for buildlink2.mk files to convert a build dependency to
a full dependency.  BUILDLINK_DEPMETHOD.<pkg> is now a space-separated
list of the words "full" and/or "build", and if any of them is "full",
then a full dependency on <pkg> is used.  buildlink2.mk files may now do:

	BUILDLINK_DEPMETHOD.<pkg>+=	full

to convert from a build to a full dependency.

Previously, if a package Makefile set BUILDLINK_DEPMETHOD.<pkg>=build,
there was no way to override its value consistently.
2002-09-27 12:21:41 +00:00
rh
0cbef82639 Add MASTER_SITE_GNUSTEP 2002-09-27 10:36:53 +00:00
wiz
35129dfeba Add share/locale/is. 2002-09-27 09:51:48 +00:00
jlam
84cb9a37e9 Create a new variable USE_X11_LINKS that controls whether packages that
use buildlink2 and set USE_X11 will use x11-links, or if they will simply
symlink the X11 files directly into ${BUILDLINK_DIR}.  If USE_X11_LINKS is
"YES" (the default), then x11-links is used.  If USE_X11_LINKS is "NO",
then the X11 files are symlinked directly.

There is a choice here between speed and flexibility.  Using x11-links is
faster since you don't need to spend time symlinking all of the X11 files
into ${BUILDLINK_DIR}.  However, if you update your X11 installation, then
the x11-links package will likely be out-of-date.  Conversely, directly
symlinking the X11 files will protect you from changes in your X11
installation when you update, but there is a (small) time penalty to have
to do it for every package that uses X11.
2002-09-27 09:22:58 +00:00
jlam
57ede4f404 Change /usr/lib/*.la to ${BUILDLINK_DIR}/lib/*.la in libtool archives when
buildlinking them into ${BUILDLINK_DIR}.  This should allow cases where a
/usr/lib/libintl.la escaped into an installed libtool archive (during the
time when buildlink2 was broken for about 4 days) to be handled properly.
2002-09-27 00:22:06 +00:00
jlam
55ef787302 When PKG_DEBUG_LEVEL=2, set_PKG_DEBUG_SCRIPT is set to "${SH} -x". Use
_PKG_DEBUG_SCRIPT when running the INSTALL/DEINSTALL scripts so that they
may be easier to debug.
2002-09-26 21:04:11 +00:00
jlam
f9a095a3ea Create DEVOSSAUDIO, for the default OSS audio device. 2002-09-26 12:31:08 +00:00
jlam
3a00d7c948 Don't make ${RCD_SCRIPTS_EXAMPLEDIR} unless it doesn't exist, and if we
do make it, make it with the same permissions as outlined in the *.pkg.dist
files.
2002-09-26 09:59:09 +00:00
abs
5dcd7e65d1 At least jakarta-tomcat requires the same ${_ULIMIT_CMD} on do-install as
on do-build
2002-09-26 09:57:50 +00:00
jlam
021f618f90 USE_MOTIF is unused. 2002-09-25 06:31:00 +00:00
jlam
5983233cd7 Don't create the fake libtool archives unless USE_LIBTOOL is defined. This
fixes building gmake without libtool installed.
2002-09-24 22:16:42 +00:00
jlam
4a7c8310c5 Move pkgtools-related definitions into bsd.prefs.mk so that they may be
used by buildink2.mk files.
2002-09-24 21:54:49 +00:00
wiz
6c40f123f7 Some whitespace cleanup. 2002-09-24 13:59:20 +00:00
wiz
a9007ebbe1 Fix gnome path on ftp.tuwien.ac.at. 2002-09-24 13:01:02 +00:00
jlam
099d7836af Allow passing multiple items to BUILDLINK_DEPENDS.<pkg>. So, if we have
BUILDLINK_DEPENDS.foo=	foo>=1.0 foo<1.5

then this is converted to:

	DEPENDS+=	foo>=1.0:../../category/foo
	DEPENDS+=	foo<1.5:../../category/foo

We can use this to record upper bounds on dependency versions.
2002-09-24 10:41:25 +00:00
jlam
210d6f9c51 Use |, not : to separate case conditions. 2002-09-24 08:37:53 +00:00
jlam
0fb75d8658 For completeness, also allow for ./* when naming uninstalled libtool
archives, and also do the special handling for dependency_libs.
2002-09-23 23:51:28 +00:00
jlam
f2a3cbaeba Also add -L*/.libs for *.la that start with "../", which is also quite
common when referring to an uninstalled libtool archive.
2002-09-23 23:49:01 +00:00
jlam
3a13ebd730 The previous commit of libtool-fix-la let a lot of references to the build
directory escape into the installed *.la files.  Fix this by only adding
-L*/.libs if the *.la file is uninstalled, and by filtering out references
to ${WRKSRC}.
2002-09-23 22:32:07 +00:00
markd
427592ad77 Add mimedefang defaults 2002-09-23 13:37:21 +00:00
jlam
e11cfce83c * buildlink1 -> buildlink2
* Replace ELK_USE_{X11,MOTIF} with ELK_GUI, which is either "none" or is
  some combination of "xaw" and/or "motif".
* Reenable Motif -- it seems to build properly with OpenMotif-2.0.x.
* Modernize this package a bit and clean up how linker flags are passed to
  the build process by using the new variables available.
2002-09-23 08:45:40 +00:00
jlam
8c44b289f4 Missing a /lib on the end of the library path. 2002-09-23 08:41:00 +00:00
jlam
63ee7336e7 Provide a separate variable "X11_LDFLAGS" that just contains the linker
flags for finding the X11 libraries.  The value of X11_LDFLAGS is appended
to LDFLAGS if the packages uses X11.
2002-09-23 08:35:12 +00:00
jlam
04cb5535df Add the -Wl,-R flags to find the widget library. The ld wrapper script
understands "-Wl,-R" to be just "-R", so it will work fine.
2002-09-23 08:29:56 +00:00
jlam
d6df64f924 Allow for wrapper-specific transformations of arguments that occur after
the main transformations have been performed.

The ld wrapper can now accept "-Wl,*" arguments and transform them
appropriately by stripping of the -Wl and the commas.  This will obiviate
the need for logic in pkgsrc that strips away the "-Wl," depending on
whether the platform was a.out or ELF, and whether the individual package
chose to link using "cc" or "ld".
2002-09-23 01:11:39 +00:00
jlam
513bfa31b8 Allow other Makefiles to specify a PERL5_GENERATE_PLIST that overrides the
one provided by bsd.pkg.mk when generating the PLIST from PERL5_PACKLIST.
2002-09-22 12:19:36 +00:00
jlam
48fe50ff78 Don't strip past non-whitespace characters. 2002-09-21 23:31:41 +00:00
jlam
3b54a65495 Handle removing the rpath flags in the wrappers if USE_BUILDLINK2 is set. 2002-09-21 23:19:22 +00:00
jlam
17ffee9884 Clarify comment for BUILDLINK_TRANSFORM. 2002-09-21 20:51:03 +00:00
jlam
39aeb0b76e Fix typo: s/11/x11/. From pkg/18365 by Roland.Dittel@epost.de. 2002-09-21 20:49:21 +00:00
jlam
84927fc8d8 Don't require setting the version of the replacement pthread package needed
by pthread.buildlink2.mk if the default one from the package's
buildlink2.mk suffices.
2002-09-20 23:46:38 +00:00
jlam
39ed96c8d6 Create PTHREADBASE, which has the base prefix location for the pthread
libraries.
2002-09-20 08:27:21 +00:00
jlam
424a6c350f Fix problem with linking against uninstalled libtool archives that in turn
depend on other uninstalled libtool archives.  During the relinking process
the newly installed libraries weren't being found.  We now insert the
appropriate -Ldir flags to allow them to be found in the uninstalled
locations.
2002-09-20 00:59:48 +00:00
jlam
c54fb6c8cd Protect against -Wl,-rpath,/usr/local/lib if LOCALBASE != /usr/local. 2002-09-20 00:57:43 +00:00
grant
3af39f4e3c Add RCD_SCRIPTS_SHELL to automatic rc.d script handling, defaulting to
${SH}. Enables rc.d script portability for non-NetBSD systems.

as discussed with jlam.
2002-09-20 00:45:00 +00:00
jlam
072abe06cf Restore the ability to not automatically install the rc.d script into
/etc/rc.d.  This is controlled by the new variable PKG_RCD_SCRIPTS which
may be set in /etc/mk.conf or in the shell environment in which the
INSTALL script is executed.  PKG_RCD_SCRIPTS only takes effect if
${PKG_CONFIG} == "YES" and defaults to NO.
2002-09-19 10:20:50 +00:00
jlam
26ffd9ecf0 Automatically generate and install the rc.d scripts if specified by
RCD_SCRIPTS.  From the comments in bsd.pkg.install.mk:

# rc.d scripts are automatically generated and installed into the rc.d
# scripts example directory at the post-install step.  The following
# variables are relevent to this process:
#
# RCD_SCRIPTS                   lists the basenames of the rc.d scripts
#
# RCD_SCRIPT_SRC.<script>       the source file for <script>; this will
#                               be run through FILES_SUBST to generate
#                               the rc.d script
#
# RCD_SCRIPTS_EXAMPLEDIR        the directory in which to install the
#                               example rc.d scripts
#
# If the source rc.d script is not present, then the automatic handling
# doesn't occur.
2002-09-19 09:02:40 +00:00
jlam
992f7e5394 Recognize ghostscript-esp{,-nox11}. 2002-09-18 23:06:03 +00:00
jlam
e507190d0d When using bsd.pkg.install.mk, if a DEINSTALL or INSTALL file already
exists, then use it as the default value of DEINSTALL_EXTRA_TMPL or
INSTALL_EXTRA_TMPL.
2002-09-18 21:15:07 +00:00
tron
d37d1a1495 Add secure HTTP support to the "wget" package. It is turned on by default
and can be turned of by "WGET_USE_SSL=NO".
2002-09-18 19:51:53 +00:00
abs
4ce6a8c4c2 Always Linux-*-i[3456]86, never Linux-*-i386.
Fixes ap-jk build breakage on Linux systems.
2002-09-18 11:08:25 +00:00
jlam
36b46a2390 Split up the UNTRANSFORM variables into *.{1,2,3} so that they won't
exceed any maximum length on values stored in a variable.
2002-09-18 02:14:35 +00:00
jlam
7d8a00b308 Modifications and additions to create a dummy libtool archive to represent
a system library so that we can prefer a system library to a pkgsrc one
when building with pkgsrc.
2002-09-18 00:46:58 +00:00
jlam
0d2ebb8aba Move the LIBTOOL definition outside of the USE_LIBTOOL conditional so that
it may be used by buildlink2.
2002-09-17 23:53:50 +00:00
jlam
5bcd5a4093 Ensure that the PROTECT and UNPROTECT variables are clobbered by properly
ordering them and using += instead of an accidental = .  This should fix
pkg/18324 by John Kohl <jtk@kolvir.arlington.ma.us>.
2002-09-17 19:15:35 +00:00
jlam
9ab9a8e0fc Add REPLACE_BUILDLINK, REPLACE_BUILDLINK_PATTERNS, REPLACE_BUILDLINK_SED to
bsd.buildlink2.mk.  This allows packages that use buildlink2 to fix up
*-config and other shell scripts that hardcode wrong library names as a
side-effect of how buildlink2 works, e.g., the package thinks "-laa" works
because the wrapper silently converts it to "-laa-x11.

REPLACE_BUILDLINK		files relative to ${WRKSRC}
REPLACE_BUIDLINK_PATTERNS	shell glob
REPLACE_BUILDLINK_SED		sed expression to run over the files named
				above
2002-09-17 06:20:14 +00:00
jlam
db716be0c3 Change the way that we note when a libtool file has been fixed by
buildlink2.  We used to create a timestamp file in the .libs directory.
Now, we add a line to the *.la and *.lai file that directly notes that it
has been "modified by buildlink2".  This makes it easier to debug problems
caused by using the wrong libtool during either a build or install by
checking if the *.la or *.lai files have the "modified by buildlink2" line.
2002-09-16 19:55:56 +00:00
jlam
9307af5faa Add a missing shell wildcard which was causing the expression to not
catch arguments with symbols that are special to the shell.
2002-09-16 19:06:41 +00:00
uebayasi
bde7f9bfcb * Assume each Emacs lisp package supports only (GNU) Emacs 20/21 by default.
* Slightly modify the way to prefix "xemacs-" to a package compiled for XEmacs.

* Suppress warnings issued when Emacs/XEmacs are not installed.
2002-09-16 12:51:34 +00:00
hubertf
067781c309 quote args to pkg_info, to prevent some shell trying to interpret them. 2002-09-16 10:04:39 +00:00
hubertf
44763c1291 show-installed-depends: properly quote pkg, as it can contain some things
the shell would definitely interpret in a wrong fashion (like
	"perl>=5.0" - we don't want to create some file).

Pointed out by Jan Schaumann <jschauma@netmeister.org> on tech-pkg.
2002-09-16 09:56:31 +00:00
mycroft
55f3b4a04d Don't pass down GHOSTSCRIPT_DEPENDS through MAKEFLAGS for now. It causes
shell quoting lossage.
2002-09-16 01:30:44 +00:00
rh
5d9dea26a6 Move xpkgwedge check from bsd.pkg.mk to bsd.prefs.mk so that X11PREFIX
location check within package Makefiles actually works as expected.
2002-09-15 11:58:22 +00:00
rh
4bde325dd1 Undo previous commit. This seems to be a much more suble error. 2002-09-14 03:21:11 +00:00
rh
378c55edfc Fix directory path to the X11 version of ghostscript-gnu. 2002-09-14 03:17:31 +00:00
uebayasi
bf3386ac95 * Prefix PKGNAME with "xemacs-" if the package is for XEmacs.
* Do the trick in mk/emacs.mk instead of each package's Makefile.
2002-09-14 02:19:29 +00:00
jlam
e9b56d18cc Recognize latest versions of ghostscript-gnu. 2002-09-13 22:30:09 +00:00
jlam
76e160e547 Recognize ghostscript-gnu-x11. 2002-09-13 20:23:37 +00:00
uebayasi
d177730c30 A Makefile fragment for Emacs Lisp packages. 2002-09-13 10:36:20 +00:00
jlam
50f2573239 Require at least 6.01. I don't think there are any more 6.0 installed out
there.
2002-09-13 06:54:17 +00:00
jlam
477c5648f1 Convert all of the GS_REQD to GHOSTSCRIPT_REQD. 2002-09-13 06:40:08 +00:00
jlam
a9e8a3eeca Add a ghostscript.mk file that may be included by packages that want a
dependency on ghostscript.  This handles the dependency patterns that will
match either ghostscript{,-nox11} and ghostscript-gnu{,-nox11} depending
on which version number of ghostscript is required.  From the comments at
the top of the file:

To use this Makefile fragment, simply:

(1) Optionally set GHOSTSCRIPT_REQD to the minimum version number of
    Ghostscript required by the package,
(2) Optionally set USE_GHOSTSCRIPT to "build" to only add a build-time
    dependency on Ghostscript,
(3) And include this Makefile fragment in the package Makefile,
2002-09-13 06:37:11 +00:00
jlam
b944dd3217 Add BUILD_DIRS and INSTALL_DIRS, which have the same semantics as
CONFIGURE_DIRS, and allows running the shell commands in the do-build and
do-install targets within the specified directories.  Both variables
default to ${WRKSRC}.
2002-09-12 10:34:29 +00:00
tron
01817b5b43 Add a "list" target which invokes "pkg_info -L" for the current package. 2002-09-08 06:59:26 +00:00
jlam
6a3ef162c6 Filter out -R and -Wl.-R arguments that point to /usr/local as well as
just -I and -L (modulo if LOCALBASE == /usr/local).
2002-09-07 07:33:14 +00:00
jlam
993383ae30 * Use a for loop to consolidate identical logic for removing paths in the
argument transform filter.

* Remove special ZOULARISBASE hack and use the new _BLNK_*PROTECT_SED
  variables to accomplish the same thing.
2002-09-06 14:39:41 +00:00
jlam
08c8404aae Create _BLNK_PROTECT_SED and _BLNK_UNPROTECT_SED variables to protect
${_PKGSRCDIR} and ${BUILDLINK_DIR} from any filtering, as they may be
subdirectories of ${LOCALBASE}, /usr/pkg, or /usr/local.

This should fix pkg/18142 and other puzzling problems reported on the
tech-pkg mailing list where it was necessary to revert back to buildlink1
versions of packages in order to build when the pkgsrc tree or the work
directories are kept under /usr/local.
2002-09-06 14:25:24 +00:00
jlam
e5981c7c8d Don't add the perl dependency if perl5/buildlink2.mk is included as the
buildlink2.mk file has it's own logic for how to add the perl dependency.
2002-09-06 08:10:40 +00:00
jlam
2552a2329c Minor whitespace nit. 2002-09-06 07:21:28 +00:00
jlam
3f8fb9faec Move the l:lib1:lib2 transformation to _BLNK_TRANSFORM_SED.3, which now
contains all of the transformations that we may want to use to fix up
any *-config scripts that have incorrect paths or library names.  Also
add some _BLNK_UNTRANSFORM_SED.* variables that do the opposite of the
corresponding _BLNK_TRANSFORM_SED.* variables, and that are used to clean
up libtool archives.
2002-09-06 07:20:20 +00:00
wiz
11b8523589 add mk locale dirs (for gnome-mime-data) 2002-09-05 16:29:56 +00:00
agc
cb0e38446b Apply patches from Lubomir Sedlacik <salo@Xtrmntr.org> in PR 18115 to
generalise the linker flags used to export symbols by setting them on
a per-OS basis.

> many packages force -Wl,-export-dynamic which is not portable outside GNU ld
> and cause problems e.g. on Solaris.  some of these packages use if
> conditionals either only for NetBSD or except SunOS, but the state is not
> coherent and it may complicate later when support for new OS is added to
> pkgsrc (e.g. ongoing work on HP-UX support).
>
> jlam proposed the following framework in discussion on tech-pkg:
>
>   http://mail-index.netbsd.org/tech-pkg/2002/06/21/0009.html
>
> now, ${EXPORT_SYMBOLS_LDFLAGS} is used instead of directly defining
> -Wl,-export-dynamic which is set in appropriate defs.*.mk to reasonable
> values.  packages should be converted to this framework by:
>
> 1) replacing LDFLAGS+= -Wl,-export-dynamic and LIBS+= -export-dynamic with:
>
>    LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
>
> 2) for use in patchfiles, add this variable to MAKE_ENV if needed:
>
>    MAKE_ENV+= EXPORT_SYMBOLS_LDFLAGS=${EXPORT_SYMBOLS_LDFLAGS}
>
> 3) replace occurances of -Wl,-export-dynamic and -export-dynamic in patch
>    files with:
>
>    $(EXPORT_SYMBOLS_LDFLAGS)
2002-09-04 14:47:32 +00:00
jlam
e3d8bd520f Also protect -L${ZOULARISBASE}* from being transformed. 2002-09-03 22:10:17 +00:00
jlam
a72ff273d0 Invert test in buildlink-${OPSYS}-wrappers that was causing the OPSYS
wrappers to not be generated.  I forgot to flip this back after testing on
my NetBSD box.
2002-09-03 22:06:50 +00:00
jlam
144e45523e Fix botch in previous commit which caused the sanitized PATH to not be
inserted into the wrapper scripts.
2002-09-03 21:43:40 +00:00
jlam
e90ca9f172 Add a missing shell wildcard which was causing the expression to not
catch arguments with symbols that are special to the shell.  This should
fix pkg/18156 by Matthias Scheler.
2002-09-03 21:36:18 +00:00
jlam
721f556b8c Don't munge references to directories in ${ZOULARISBASE} if
${ZOULARISBASE} != ${LOCALBASE}.  This should fix problems compiling
pkgtools/digest with zoularis where ${ZOULARISBASE} != ${LOCALBASE}.
2002-09-03 03:14:10 +00:00
jlam
08bc981080 Add OPSYS-specific section for overriding the generic wrapper scripts, and
add one section for SunOS to possibly allow using the SUNWspro compilers
when building X11 packages that use imake.  Many thanks to Matthias Scheler
for his help on this.

Also use _BLNK_OPSYS instead of OPSYS in bsd.buildlink2.mk so that's it's
easier to pretend I'm using a different OS when doing buildlink2 work.
2002-09-02 21:53:23 +00:00
abs
de040ce391 openoffice requires the unlimit on configure (for jdk) as well as for build.
Add ${_ULIMIT_CMD} to do-configure:
2002-09-02 02:42:26 +00:00
jlam
48ac015754 Don't protect the creation of ${_BLNK_LIBTOOL_FIX_LA} with USE_LIBTOOL.
This script is part of the buildlink2 infrastructure and is harmless if
not used.  This allows devel/zlib to build on Solaris.  Problem noted by
Stoned Elipot.
2002-09-01 18:38:15 +00:00
wiz
87fc391620 Fix sourceforge path on ftp.tuwien.ac.at. 2002-09-01 16:15:32 +00:00
tron
df0b4367aa The "Xpm" library is distributed with Solaris 9. Handle this case like
XFree86 4.x and don't install the package.
2002-09-01 15:13:41 +00:00
schmonz
169b48dc9d Move default definitions of P4USER, P4GROUP, P4ROOT, and P4PORT here. 2002-09-01 04:59:05 +00:00
fredb
0c11c3b7f2 Add TRPlayer license, in support of soon-to-be-imported TRPlayer package. 2002-08-31 19:51:17 +00:00
grant
dc8fcff76a Add variables for openssh privilege separation to bsd.pkg.defaults.mk:
OPENSSH_USER
	OPENSSH_UID
	OPENSSH_GROUP
	OPENSSH_GID
	OPENSSH_CHROOT

Use these to automatically create user/group if they do not already
exist. Assists platforms which do not have an 'sshd' user by default,
while adding flexibility for NetBSD systems.

Checked by Stoned Elipot <seb@netbsd.org>.
2002-08-31 10:08:59 +00:00
wiz
ff35ca18f0 Another sourceforge mirror site. 2002-08-30 12:54:29 +00:00
abs
dfd095b58c Add 'UNLIMIT_RESOURCES+=datasize' if we are using sun-jdk14. On at least
NetBSD/i386 1.6 datasize needs to be at least 192MB to build jakarta-tomcat.
Also set it for sun-jdk as that can expand to {sun-jdk13,sun-jdk14}...
2002-08-30 10:46:46 +00:00
jlam
81fd4ce214 Rename _BLNK_X11PKG_DIR to BUILDLINK_X11PKG_DIR and make it publicly
usable.
2002-08-29 22:29:03 +00:00
jlam
7b02107173 Number questions and answers to make referring to specific Q&As easier. 2002-08-29 17:08:49 +00:00
wiz
561201e58b Remove superfluous 'be'. pkg/18104 by Julio Merino. 2002-08-29 14:02:28 +00:00
wiz
da994f1178 It's APACHE_USER instead of APACHE_SUEXEC_USER now. 2002-08-29 10:16:44 +00:00
jlam
85d49fe337 Teach about x11/neXTaw. 2002-08-28 15:20:39 +00:00
seb
9a2cbf0ab0 Allow more flexibility in the handling of UNLIMIT_RESOURCES.
Each word of UNLIMIT_RESOURCES is supposed to be a knob on
ULIMIT_CMD_<word> variable which value if defined is added to _ULIMIT_CMD.
The ULIMIT_CMD_* variables are set per $OPSYS in defs.*.mk and are overridable
by the user.

Solaris' default value of ULIMIT_CMD_memorysize adjusted as suggested in PR
pkg/18087 by Jonathan Perkin <sketch@rd.bbc.co.uk>.
2002-08-28 11:06:17 +00:00
jlam
7a9849cf96 Don't try to multiply define the same target for generating buildlink2
wrapper script.  This can occur if you set something like LD=cc where
the cc wrapper is already generated from CC=cc.
2002-08-28 04:49:16 +00:00
jlam
3cabf7e0ed Fix USE_FORTRAN in the USE_BUILDLINK2 case. 2002-08-27 17:35:02 +00:00
jlam
6976525599 FC and F77 point to the same thing, so no need to create wrappers for
both of them -- just create wrappers for one, then set the appropriate
env vars to handle the other one.
2002-08-27 17:34:04 +00:00
jlam
e4d02a9cf4 In print-PLIST, use "${RMDIR} dir 2>/dev/null || ${TRUE}" instead of just
using "true" at the end.
2002-08-27 06:06:38 +00:00
grant
e2b0ec1e59 deprecate SQUID_SYSCONFDIR in favour of PKG_SYSCONFDIR.squid 2002-08-26 06:42:10 +00:00
jlam
7230ff5dd9 PKG_SYSCONFDIR is not supposed to be settable, so change its setting from
?= to =.  Note in Packages.txt that the only variables that a user should
customize in /etc/mk.conf are PKG_SYSCONFBASE and PKG_SYSCONFDIR.<pkg>.
2002-08-26 05:17:39 +00:00
jlam
4ab7ebefaa Remove estimates on increased build times as they're probably not still
accurate.
2002-08-25 22:16:44 +00:00
jlam
fff8372661 Pull up change in buildlink2 branch:
Rename NO_BUILDLINK2 to NO_BUILDLINK.  This better matches what it's
supposed to disable -- the "buildlink" targets.
2002-08-25 18:52:05 +00:00
jlam
944ecea87e It's USE_BUILDLINK2, not USE_BUILDLINK2_ONLY. 2002-08-25 18:51:31 +00:00
dmcmahill
e9286ba966 add cy, en@IPA, fa, ia locale's used by gtk-2.0.6. 2002-08-24 02:18:01 +00:00
wiz
e6c4e8251c Add some more sourceforge mirror sites. 2002-08-23 11:26:07 +00:00
jlam
3cfe800533 Create the include and lib buildlink dirs so that Darwin's compiler won't
complain on stdout (!) when -I or -L args are passed to it and break
scripts that check for output.
2002-08-23 00:27:59 +00:00
jlam
afd2d15ee3 Use sed instead of a funky make RE variable to sanitize the PATH. It was
breaking when the directory names had RE characters like "+".
2002-08-22 20:20:33 +00:00
jlam
b119dbc8ef Merge pkgsrc/mk from the buildlink2 branch back into the main trunk. 2002-08-22 08:21:26 +00:00
grant
a4a0e792bf set USE_INET6 if we are on an IPv6 capable Solaris host. 2002-08-21 08:40:40 +00:00
hubertf
7508b153db Add CVS_FLAGS that will be passed to 'cvs update' before builds.
Allows specifying a branch ("-rnetbsd-1-6") or the trunk ("-A") easily
from the build.conf file.
2002-08-20 02:17:56 +00:00
seb
6490d0675b Now by default the support of micro- and nano-second timestamp values provided
by stat(2) is disabled: it causes grief even for package building.

This is adjustable by the GMAKE_NSEC_TIMESTAMPS variable.

Bump PKGREVISION.
2002-08-19 18:39:14 +00:00
seb
ae89e1a1e1 Actually Alistair was right: $packages and $distfiles also need to be
$mkdirprog'ed, it helps on a fresh/virgin/cleaned up bulk building system.
2002-08-15 10:42:19 +00:00
fredb
fed81d8aec Document `IMAP_UW_NO_SSL'. 2002-08-15 00:34:04 +00:00
grant
af823178c5 make this work on Solaris by using ${EGREP} instead of ${GREP}. 2002-08-14 02:38:25 +00:00