Commit graph

2311 commits

Author SHA1 Message Date
kristerw
e7c52c4ac8 Note that USE_MMX is used by snes9x too. 2002-12-28 17:14:10 +00:00
schmonz
8c4d798daf More ideas: _STRIPFLAG_CC, _STRIPFLAG_INSTALL, compiler optimization flags. 2002-12-27 20:34:53 +00:00
grant
2e18bd5caf Both buildlink caching methods work on Solaris 8 and Darwin 6.2.
Enable full caching for any SunOS arch and Darwin 6*.
2002-12-27 07:00:51 +00:00
uebayasi
289160ecdb * Garbage collect IGNORE -> SKIP migration.
* {NOT,ONLY}_FOR_PLATHOME mismatch is not an error.  Set
  PKG_SKIP_REASON for those cases.  This makes bulk builds happier.
2002-12-27 06:53:42 +00:00
jlam
a0712b80ae Move java.mk to java-vm.mk to avoid name conflict with devel/mk-files as
suggested by Simon J. Gerraty.
2002-12-26 20:52:09 +00:00
jschauma
a6012250a1 Full caching still works on Irix. Yay. :) 2002-12-26 17:53:48 +00:00
jlam
d8c9789a55 Add some libtool workarounds for software authors that don't follow the
libtool documentation.  Specifically, many authors now link against an
uninstalled libtool archive with:

	-L../package/source/dir -lfoo

instead of the correct (according to the libtool documentation):

	../package/source/dir/libfoo.la

The workarounds convert the former into the latter.  Changes originally
suggested by Rene Hexel <rh@netbsd.org> in private e-mail.
2002-12-26 17:17:32 +00:00
jlam
e287e42e02 Rewrite wrapper scripts so that it is possible to add wrapper-specific
logic and caching in a more natural way.
2002-12-26 17:08:55 +00:00
wiz
0fa9b394d7 Update comment for USE_MMX to reflect changes. 2002-12-26 05:02:36 +00:00
wiz
04beced10d Add USE_MMX option. 2002-12-26 04:29:21 +00:00
schmonz
80035235a9 buildlink1 is dead. Long live buildlink2! (Perhaps Q2 should be removed.) 2002-12-26 04:12:49 +00:00
grant
979fccc403 add support for PLIST.common_end to automatic PLIST handling, which is
used after PLIST.${OPSYS}.
2002-12-25 12:32:32 +00:00
grant
b81e5288fc Introduce automatic platform dependant PLIST handling, as proposed on
tech-pkg (http://mail-index.netbsd.org/tech-pkg/2002/11/27/0014.html).

Packages no longer need to override PLIST_SRC to support differing
PLISTs across platforms.
2002-12-25 12:24:57 +00:00
grant
1d6ceb0dfd Add optional Xft support to Mozilla and Phoenix, to enable various
font features including anti-aliasing.

The new variable MOZILLA_USE_XFT defaults to NO.

Bump PKGREVISIONs.

From Eric Gillespie in PR pkg/19433.
2002-12-25 09:21:42 +00:00
jlam
f971bdb801 Let p:path convert both:
path/subpath/libfoo.so => -Lpath/subpath -lfoo
and
	path/libfoo.so => -Lpath -lfoo

This fixes converting /usr/lib/libintl.so into "-L/usr/lib -lintl", which
wasn't happening before.
2002-12-25 06:00:41 +00:00
schmonz
0ca78d8fed Add a to-do item:
(*) Since buildlink2 is a layer of abstraction atop the toolchain,
        it's a logical place to deal with the vagaries of unusual
        toolchains. For example, on Darwin we could reliably pass
        the "-no-cpp-precomp" switch to every compiler invocation
        by emitting it from the compiler wrapper. Likewise, the
        use of _USE_RPATH in bsd.pkg.mk might be better handled in
        the linker wrapper.
2002-12-25 05:16:12 +00:00
jlam
8ccbcfd479 Check for USE_BUILDLINK2 != no instead of just whether USE_BUILDLINK2 is
defined because we really want to the former.
2002-12-25 04:48:20 +00:00
wiz
a38d335b46 Goodbye, buildlink1. 2002-12-24 20:20:45 +00:00
agc
715752bb11 Comments begin with the '#' character in Makefiles, not '$' 2002-12-24 09:08:47 +00:00
jschauma
d6b704935b Eliminate another ZOULARISBASE.
Tabify.
2002-12-23 23:03:23 +00:00
jschauma
d3bbfc3720 Don't test for OPSYS to set rpath et al, but rather use _OPSYS_RPATH_NAME.
Suggested by Stoned Elipot.  Thanks.
2002-12-23 22:50:29 +00:00
jschauma
ed4d223810 ZOULARISBASE is certainly never used on Irix. Let's get rid of it. 2002-12-23 22:34:00 +00:00
jschauma
945bcf8e9d Let's be consistent:
Always check for ${OPSYS} == "IRIX" (and not once for != and once for ==)
Always use "-Wl,-rpath,/path" rather than sometimes "-Wl,-rpath -Wl,/path"
and sometimes "-Wl,-rpath,/path".
2002-12-23 22:33:14 +00:00
wiz
08dc6b4886 Add sq locale (for glib2). 2002-12-23 21:41:51 +00:00
wiz
2a28b6a4ef Fix gnome dist path on ftp.tuwien.ac.at. 2002-12-23 21:02:44 +00:00
jlam
7fcfeb7629 Note that buildlink2 and full caching both work on IRIX (thanks, jschauma!) 2002-12-23 17:31:15 +00:00
jlam
06e0805659 Note that to test buildlink2, we need to build & install, but to test
caching, only building is needed.
2002-12-23 17:17:32 +00:00
jlam
d9c2c12997 Note that Solaris 8 & 9 work with full caching enabled (thanks grant, salo!).
Also change _BLNK_CACHE_ALL to take wildcard lists of MACHINE_PLATFORMs so
that specific operating system versions can be nailed down.
2002-12-23 17:09:17 +00:00
grant
d2d6576c3b - full caching works on Solaris 8.
- only building pkgs is required.
- update platforms.
2002-12-23 16:21:10 +00:00
wiz
af45bf6ae7 Remove an USE_BUILDLINK_ONLY test (not set anywhere any longer). 2002-12-23 15:14:54 +00:00
wiz
d14e78a5d6 Unused. 2002-12-23 15:13:58 +00:00
jlam
1566cdd893 Convert the lists into a capability matrix for ease of maintainence, and
change "MacOS X" versions into their "Darwin" equivalents.
2002-12-23 15:10:05 +00:00
wiz
4574fc2037 Remove reference to f2c's (long removed) buildlink.mk.
Also s/buildlink.mk/buildlink2.mk/ in a comment.
2002-12-23 14:15:35 +00:00
wiz
f0da31f644 Update comments for MOTIF* variables. 2002-12-23 14:10:00 +00:00
seb
21fc387aba Better use '-[0-9]*' than '-*' for wildcard conflicts registration. 2002-12-23 11:24:40 +00:00
jlam
dbbb22cec3 buildlink2 works on NetBSD-1.5.x (thanks gendalia!). Also note that we
can test using gettext-lib instead of gettext, now that gettext-lib has
been converted to use buildlink2.
2002-12-23 03:42:39 +00:00
cjep
7d8302b95c Add an extract method for zoo archives 2002-12-23 01:59:43 +00:00
wiz
ff83298890 Add a new variable MPLAYER_ENABLE_RUNTIME_CPU_DETECTION that governs
the runtime CPU checks; it defaults to YES, which makes the binary package
usable on more machines; setting it to NO might make mplayer a bit faster.
Suggested by veego.
2002-12-23 00:05:32 +00:00
atatat
8865f34c24 Add the LSOF_LESS_SECURE_SOCKETS for the lsof pkg. 2002-12-22 20:05:34 +00:00
jlam
cfaa1ad9ff The buildlink2 problems on non-NetBSD platform seem to be related to
correct manipulation of variables containing values with escaped
metacharacters by the shell.  The new code only does partial caching, which
doesn't cache "special" arguments that contain escaped metacharacters or
other oddly quoted values.  On certain platforms listed in _BLNK_CACHE_ALL
in bsd.buildlink2.mk, we do full caching, which has enormous speed benefits
since it avoids an extra sed invocation per "special" argument.

Known working platforms:

	MacOS X 10.1.5 (schmonz)
	MacOS X 10.2 (grant)
	NetBSD 1.6 [full caching] (jlam)
	OpenBSD (cjep)
	Solaris 8 (grant)
	Solaris 9 (salo)
2002-12-22 19:02:43 +00:00
wiz
2cd46ae1f0 "Possible:" instead of "Possible,", noted by Jeremy C. Reed. 2002-12-22 17:16:23 +00:00
salo
ae087ffe0d .elseif -> .elif. Thanks to grant for pointing this out. 2002-12-22 10:09:46 +00:00
salo
dbe1dbb68d When pkg_install is installed over zoularis, new tools reside in
${ZOULARISBASE/sbin so look there as well.  Otherwise old tools are used
(or new tools are not found if old tools were removed).
2002-12-22 09:30:03 +00:00
wiz
e0c1d850f0 Add GNU_PROGRAM_PREFIX, defaulting to "g". See PR 18886 for details. 2002-12-22 01:23:50 +00:00
tron
35aeb202cd Fix broken environment passed to "pkg_tarup" command to make "tarup"
target work again.
2002-12-21 15:06:04 +00:00
jlam
a8e95a52e8 Use a symlink, not a hard link, so that we don't break when pkgsrc is on
a different filesystem than the system headers.  Fix from PR 19452 by
Arto Huusko <arto.huusko@utu.fi>.
2002-12-19 15:17:10 +00:00
abs
591f119875 Initial config for 'wonka' - still under development 2002-12-19 12:45:48 +00:00
wiz
6ddf303d29 uni-paderborn does not provide X contrib any more. 2002-12-18 14:19:13 +00:00
schmonz
e1c77ef496 Introduce _OPSYS_HAS_INET6, and use it to determine the default
value of USE_INET6.
2002-12-18 06:18:14 +00:00
drochner
75bd8ee495 let it recognize emacs-nox11, patch submitted by Hiramatsu Yoshifumi
per PR pkg/19147, with a small variable name change by me
(emacs21-nox11->emacs21nox)
2002-12-17 16:54:13 +00:00
dmcmahill
e1b159d710 bump PKGTOOLS_REQD to 20021123. The primary motivation is to ensure support
for 'pkg_admin pmatch' which is used by some pkgs (eg gettext-lib/buildlink2.mk).
The pmatch command was not present in 1.5.* systems.  This fixes part of the
problem seen with libintl-using pkgs on 1.5.*
2002-12-16 23:07:32 +00:00
salo
4e528fa8a9 Add TEE and TSORT (required for bulk builds). 2002-12-16 09:18:56 +00:00
schmonz
5279b8c64b Add DATE, FGREP, NICE. 2002-12-16 05:07:21 +00:00
salo
1449f89b48 Add DATE and NICE (required for bulk builds). 2002-12-15 13:03:02 +00:00
salo
4ff76ecb85 Add FGREP. 2002-12-15 02:12:32 +00:00
taca
6e1eb8c978 Previous commit breaks pkgsrc on NetBSD current since OS_VERSION isn't
pure numeric value "1.6K".

So, sperate ".if" directive comparing OS_VERSION into two ".if" directives.
2002-12-15 01:15:24 +00:00
schmonz
a582dc31ff Default to USE_INET6 = NO on Darwin < 6.0, whose IPv6 bits are a red herring. 2002-12-15 00:40:29 +00:00
jschauma
ea31bf10a2 Make sure that on IRIX{,64} LOWER_OPSYS matches what most configure
scripts seem to expect.  While we're at it, add a vendor.
2002-12-12 03:02:41 +00:00
jschauma
8ae27a67ce Use pkgsrc's perl in favor of /usr/sbin/perl -- this way we know what
we're dealing with.
2002-12-11 22:39:11 +00:00
hubertf
3b578bd37b * pass BSD_INSTALL to programs, just like the other BSD_INSTALL_* macros,
but _only_ the install program's path.
 * check for a few variables before using them.
2002-12-11 21:01:05 +00:00
grant
8992d7bdd7 revert oops in last commit. 2002-12-10 13:11:38 +00:00
grant
99f7fad5d5 use the form MESSAGE.${OPSYS}-${MACHINE_PLATFORM} for automatic
MESSAGE file handling.

pointed out by Masao Uebayashi.
2002-12-10 13:08:34 +00:00
wiz
6e77852ef9 Remove trailing whitespace. 2002-12-10 12:50:48 +00:00
tron
ac47c1e51e Add directory "share/pixmaps" which is used by multipled packages. 2002-12-09 15:52:08 +00:00
grant
5b32eafd0e use /usr/xpg4/bin/grep as GREP, as /usr/bin/grep does not support -e. 2002-12-09 05:38:57 +00:00
grant
1fb16f97a6 Solaris has /usr/include/iconv.h, but it's not GNU iconv. Mark it
incompatible.

Fixes buildlink2 problems with converters/libiconv, which assumed that
iconv was in the base system (on Solaris) due to the existance of
/usr/include/iconv.h.
2002-12-09 01:22:07 +00:00
cjep
0db91836b9 Add an entry for WDM_MANAGERS. 2002-12-07 21:23:25 +00:00
seb
0a1888108c Partially revert to behavior of revision 1.1100 wrt MESSAGE_SRC:
only if if MESSAGE_SRC and MESSAGE are _not_ already set fall back to setting
MESSAGE_SRC to ${PKGDIR}/MESSAGE if it exists.

This fix builds of mail/sendmail{,811}/.
2002-12-07 16:03:12 +00:00
schmonz
a2849a9dca Replace IGNORE into PKG_FAIL_REASON and PKG_SKIP_REASON, so pkgsrc
can stop builds when a dependency is broken, yet continue builds
when a dependency is merely skipped (usually because it duplicates
functionality in the base system). Thus IGNORE_FAIL, the
oft-misunderstood and naught-documented option, goes away.

This addresses many people's complaints on tech-pkg@ and other
lists, as well as PR pkg/18157.
2002-12-07 02:37:56 +00:00
wiz
bac349fdc6 Remove now unused MPLAYER_FONT variable. 2002-12-06 14:25:07 +00:00
jmmv
3a9c0b552e Add TKPASMAN_USE_SSL variable, used by the new package security/tkpasman. 2002-12-05 21:52:33 +00:00
grant
5681068404 Add OS and arch specific MESSAGE file handling. This removes the
need for packages to override MESSAGE_SRC to provide platform
specific install messages.
2002-12-05 05:41:39 +00:00
agc
3c7775dbdd Eliminate another usage of ${OPSYS} in bsd.pkg.mk - realy on Darwin
defining _OPSYS_PERL_REQD to the correct value to make sure there's
a valid perl version for that platform.
2002-12-03 21:13:37 +00:00
agc
c4b7d25c61 Add a layer of abstraction into bsd.pkg.mk for Java settings - set the
path to the java home directory depending upon whether the operating
system includes Java by default. Use the operating system-dependent
definitions files to set this value.
2002-12-03 20:53:39 +00:00
jschauma
7383ef8541 s/-path/-rpath/ 2002-12-03 20:20:59 +00:00
agc
1418b13a80 Use ${_PATCH_CAN_BACKUP} rather than hardcoding an OPSYS value into
the logic for doing backups when applying patches, and set the value
accordingly in the opsys-dependent defs file.
2002-12-03 19:24:26 +00:00
agc
642c8c8176 Use a more generic way of determining, on an opsys-dependent basis,
whether the gettext package should be used.
2002-12-03 19:17:33 +00:00
agc
7dc9a2b816 Handle the different rpath directive to the linker for Irix in a different,
more generic, way - use an abstraction called ${_OPSYS_RPATH_NAME} which
takes the value "-rpath," or "-R", set appropriately in the opsys-dependent
defs files.
2002-12-03 19:11:30 +00:00
agc
46e9326213 Abstract out the base value of libtool required into _OPSYS_LIBTOOL_REQD,
and use that rather than a hardcoded ${OPSYS} default in bsd.pkg.mk
2002-12-03 18:57:52 +00:00
agc
d9242dfee4 Apply patches from Sergey Svishchev in PR 19221 to get the correct value
for localpatches and to make that directory available in the sandbox.
2002-12-03 18:49:39 +00:00
jschauma
45310e629d Commit patch from Nick after testing it on IRIX.
This patch corrects a typo and uses PKGCONFIG_OVERRIDE_SED rather than
adjusting sed lateron in the target.
Modification of the patch:  use '-Wl,-rpath,/path' rather than '-Wl,-rpath -Wl,/path'
as suggested by jlam in another email.
2002-12-03 16:16:37 +00:00
jlam
7eabdf1ddf Allow package Makefiles to define REPLACE_LOCALEDIR, which is a space-
separated list of files relative to ${WRKSRC} on which we do PKGLOCALEDIR
replacement.  This is in addition to the files on which we already do the
PKGLOCALEDIR replacement (Makefile.in* and Makefile*).
2002-12-03 08:31:41 +00:00
jschauma
ba81d6296d IRIX wants -rpath (missed in last commit) 2002-12-02 17:08:40 +00:00
jschauma
6695c7df6a Add initial support for IRIX.
Again, anybody's feedback (success or failure) will be appreciated.
2002-12-02 17:07:27 +00:00
jlam
b2aa3a580b Move the PKGLOCALDIR section a little lower so it isn't in the middle of
the logic for another section.  This is purely for readability.
2002-12-01 13:24:14 +00:00
dmcmahill
d77e699759 add some more error checking. In particular if the bulk-cache creation
fails, then abort the build.
2002-12-01 05:53:43 +00:00
grant
a352f694c2 turn on USE_INET6 in a KAME IPv6 environment other than NetBSD. 2002-11-30 16:49:00 +00:00
cjep
0334020af6 Former OpenBSD and FreeBSD tags were borked in the last commit. 2002-11-30 15:19:40 +00:00
cjep
836cdc49dc OpenBSD x11 dist file. May need some tuning.
I should mention Arrigo Triulzi, who provided a login to an OpenBSD 3.0
machine and also a machine to play with OpenBSD 3.2 and pkgsrc. Thanks
Arrigo!
2002-11-30 15:18:35 +00:00
cjep
c6114dd136 An initial OpenBSD pkg dist file. 2002-11-30 14:42:38 +00:00
cjep
9bb6adc2f6 defs file for OpenBSD. 2002-11-30 14:40:55 +00:00
salo
0f04684113 Conditionalize _PKGLOCALEDIR_FILES pattern for ${FIND}. Some packages need
patching Makefile not Makefile.in.  Depends on HAS_CONFIGURE || GNU_CONFIGURE.
2002-11-30 14:10:06 +00:00
wiz
98031f9b63 Add locale/am. 2002-11-29 17:22:01 +00:00
salo
fd4ecd6aa4 Introduce new framework for handling packages' locale directories.
The logic is:
 - if package defines USE_PKGLOCALEDIR and PKGLOCALEDIR is not 'share' as GNU
   autotools expects then
 - fix variables 'localedir', 'gnulocaledir' and define coorect 'LOCALEDIR' in
   the Makefile.in.* files

From Packages.txt:

 10.29 Packages providing locale catalogues
 ==========================================

If the package provides its own locale catalogues, the variable
USE_PKGLOCALEDIR should be defined.  It will ensure that the package's
Makefile template files are fixed and point to the correct locale directories
(which may vary, depending on OS), if necessary.  See also section 5.1 for
details about ${PKGLOCALEDIR}.  This functionality is buildlink2-only.
2002-11-28 14:21:32 +00:00
uebayasi
09bd111644 * EMACS_VERSION_ACCEPTED -> EMACS_VERSIONS_ACCEPTED
* Set CONFLICTS appropriately so that Emacs version and XEmacs version of a
  package can't be installed at once.
2002-11-27 09:13:47 +00:00
jlam
8cf22817fd Move X11BASE transformations ahead of LOCALBASE transformations to handle
the case where X11BASE is a subdirectory of LOCALBASE, e.g. /usr/pkg/X11R6.
2002-11-26 22:46:59 +00:00
jschauma
5137ea96ec 'Applying pkgsrc patches' it is. 2002-11-26 15:19:50 +00:00
jschauma
b96be0d7de Don't say: 'Applying ${OPSYS} patches', just 'Applying patches'.
We do not have opsys-specific patches, and this note becomes more
and more confusing the more OSs we support with pkgsrc.
Pointed out and patch provided by Jeremy C. Reed (reed at reedmedia dot net)
in PR pkg/19172.
2002-11-26 15:00:55 +00:00
salo
81f845e191 Add note about IMAKE on Solaris with native compilers.
Move SAWFISH_THEMES to proper location.
2002-11-26 10:27:06 +00:00
jlam
df1f4c5ddd Restore usual meaning for AUTOMAKE_OVERRIDE so that it works even if
USE_BUILDLINK2 is defined.  AUTOMAKE_OVERRIDE == "yes" is the default, and
means that pkgsrc will try to avoid executing the GNU autotools during the
build process.  Setting AUTOMAKE_OVERRIDE to "no" will avoid these extra
steps by pkgsrc, so that the GNU autotools will be automatically invoked
if they are found (though they may not necessarily invoke the correct ones
and the effects may be surprising...do this only if you know what you are
doing).
2002-11-26 08:59:04 +00:00
martti
57e44c940d Added POSTFIX_USE_LDAP 2002-11-26 07:20:21 +00:00
jlam
450af8676e Don't match common delimiters ['";:] when doing matches for substitutions.
Addresses PR 19159 by grant@netbsd.org.
2002-11-25 19:43:23 +00:00
jlam
5d04f81d5e In the _BUILDLINK_SUBST_USE target, save the original file from which we
generate the "sed-substituted" file with a ".blsav" suffix.  This is
primarily useful for debugging purposes.
2002-11-25 19:32:47 +00:00
schmonz
7de9ecd613 Use green threads with blackdown-jdk13 on NetBSD/powerpc. 2002-11-25 18:16:33 +00:00
jschauma
d0100dffb8 Back out previous change of PKGTOOLS_REQ; fix does not necessitate
update.
2002-11-24 20:13:16 +00:00
chris
e5df1562c4 Update config.sub and guess to the latest version, 2002-11-13.
Note we vary only be a couple of lines for sh5le.
2002-11-24 15:31:34 +00:00
jdolecek
9826582938 introduce PKG_HAVE_KQUEUE variable - defined if OS supports kqueue(2)/kevent(2)
interface
2002-11-24 09:17:44 +00:00
jschauma
42586b0ea1 Bump PKGTOOLS_REQD to 20021123 to prevent users from using tools that
could not correctly de-install packages if cwd is part of PLIST of the
to be deleted package.  This closes PR pkg/18384.
2002-11-23 22:53:38 +00:00
dillo
2ec06e22a2 If PKGSRC_RUN_TEST is yes, make all run test. This results in test
being run during the first part of a make; make install sequence.
(As suggested by Greg A. Woods on tech-pkg.)
2002-11-23 10:19:29 +00:00
schmonz
84c5f0a066 Darwin doesn't yet have a working equivalent to sysutils/user
because I'm a slacker. Take a months-old hint from Johnny in PR
16628 and set PKG_CREATE_USERGROUP to NO in the meantime.
2002-11-23 04:43:05 +00:00
salo
8fe1ab8d3a Make gcc default compiler for packages using imake on Solaris.
Addresses PR pkg/18077 and PR pkg/18430 and possibly others.
2002-11-23 00:00:36 +00:00
jlam
e44ac5236f Don't blindly assume that directores listed in OWN_DIRS* and MAKE_DIRS*
that are outside of ${LOCALBASE} belong to the package that lists them.
If the directory already exists before the package is installed, then
we don't presume ownership of the directory.

This addresses pkg/18383 by Grant Beattie.
2002-11-21 10:11:57 +00:00
jlam
c010f2b300 Default to USE_BUILDLINK?=no, and change checks for !defined(USE_BUILDLINK2)
into whether USE_BUILDLINK is "no".
2002-11-21 00:49:32 +00:00
jlam
da67e62bd4 Instead of inventing our own "missing" script, just use the GNU one. 2002-11-21 00:21:11 +00:00
jlam
01d682a253 "Import" the "missing" script from GNU automake 1.7. 2002-11-21 00:13:34 +00:00
jlam
6b4443ffdc Reimplement hide-autotools target by making better use of make targets.
Also document what that section of the Makefile does.
2002-11-20 22:34:35 +00:00
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