Commit graph

2060 commits

Author SHA1 Message Date
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
agc
a4d0d788d6 Make sure that /var/games exists in the sandbox, and has the correct
permissions.
2002-08-12 16:33:11 +00:00
seb
9ddc0ee2a9 New feature: this script now create $sandbox/sandbox, a shell script
to ease the use of the sandbox.

$sandbox/sandbox umount
  Umount the null mounts from the sandbox
$sandbox/sandbox mount
  Mount the null mounts required by the sandbox (useful across reboots, ...).
$sandbox/sandbox whatever
  Runs the command passed as arguments, chrooted into the sandbox.
  Typical usage would be `$sandbox/sandbox /my/favourite/shell'.
$sandbox/sandbox
  Same as `$sandbox/sandbox /bin/sh'

Approved by agc.
2002-08-12 15:19:49 +00:00
seb
5670256c19 - Remove $sandbox/etc/localtime before copying /usr/share/zoneinfo/GMT over.
This prevent surprise when /etc/localtime -previously copied over in the
  sandbox by pax/tar- is a symlink to /usr/share/zoneinfo/whatever.
- Improve somewhat some messages.
- Make sure $sandbox/$packages and $sandbox/$distfiles are created instead of
  $packages and $distfiles.
2002-08-12 14:47:07 +00:00
agc
e9822c16a7 In the build script, set BATCH=1 and DEPENDS_TARGET=bulk-install in the
environment, and pass them down to the bulk build. This means that the
/etc/mk.conf (or $MAKECONF) can be shared between ordinary builds and
bulk builds.
2002-08-12 14:20:59 +00:00
agc
84639e443b Add the default for USERPPP_GROUP for the userppp package 2002-08-12 12:15:12 +00:00
agc
335e691b7a Don't null-mount all of /var - just do /var/mail for just now, so that
the packages which expect a sane mail delivery set up can configure and
build within the sandbox.
2002-08-12 10:12:09 +00:00
agc
c57f1d48cf Also null-mount /var from inside the sandbox 2002-08-12 09:55:35 +00:00
agc
c2edb365bc Specify defaults for the Free wnn user and group. 2002-08-12 09:47:34 +00:00
agc
7832e64d14 Don't assume that this is a shell script - instead, realise that it's
written in perl, and call the environment variable "BMAKE" accordingly
(it's set to the name of the NetBSD make(1) program).
2002-08-12 08:46:54 +00:00
tron
4b4b32f248 Move "ftp.fi.netbsd.org" from "MASTER_SITE_LOCAL" to "MASTER_SITE_BACKUP".
This will reduce load on "ftp.netbsd.org" a bit and still make our
local distribution files available during outages.
2002-08-11 16:56:51 +00:00
tron
5c7aa4554d Add "ftp.fi.netbsd.org" to "MASTER_SITE_LOCAL" so that e.g. building
the "openssl" package works while "ftp.netbsd.org" is down.
2002-08-11 09:59:43 +00:00
jlam
11382ac762 Depend on the hard-syscall version of pth if we using it as a pthread
replacement via pthread.buildlink.mk.
2002-08-08 15:34:17 +00:00
jlam
c8a6f4234b Allow non-Darwin platforms to build perl58. We're in pkgsrc lockdown down
just prior to branching for 1.6, so this should be okay now.  I also want
to see this built in the bulk-builds for testing purposes.
2002-08-08 06:10:03 +00:00
agc
b517957acd Don't create the ${INTERACTIVE_COOKIE}s in the ${WRKDIR} - this will fail
if the interactive stage is "fetch", since there will be no ${WRKDIR} at
that time.

Instead, since ${INTERACTIVE_COOKIE}s are only used in bulk builds, create
them in the package directory, along with the related .broken.`hostname`
file.
2002-08-07 15:12:45 +00:00
veego
e58778ca63 Prepare for the mplayer 0.90pre6 aka 0.90rc6 update:
- Change the mplayer default font size from 18 to 14
- Add MPLAYER_USE_REALMEDIA, defaulting to NO
  Used by mplayer to enable realmedia support by using the realplayer
  libraries. Note that this only works on i386 and also adds a
  dependency for the linux emulation to this package.
2002-08-07 12:46:49 +00:00
agc
7d725beb1b Correct the position of a closing parenthesis in a comment 2002-08-07 12:14:12 +00:00
agc
742d20ca58 A small shell script to set up a sandbox (usually for a pkgsrc bulk
build), using null mounts.
2002-08-07 12:03:00 +00:00
agc
9a4f22c0ba Make these scripts useful on platforms other than NetBSD by using a BMAKE
environment variable, which contains the name of the make(1) program to
invoke - suggestion by Julien Letessier some time ago, the confusion mine,
since I thought he was referring to something else completely.

Don't rely on there being a POSIX tr(1) in the path by default - test
explicitly for both "yes" and "YES".

Set the default for PRUNEDISTFILES to "no", since we can't assume that
the user wants us to delete something which he may have been keeping
around, and there are other ways of accomplishing this aim (lintpkgsrc
-o, for example).

Clean up some superfluous white space at the end of lines.
2002-08-07 10:56:11 +00:00
agc
b1e763d5bc Add a missing "-o" from the compound test in the if statement 2002-08-06 18:14:49 +00:00
jlam
28130fad6c USE_BUILDLINK_X11 is dead too with the removal of pkgtools/buildlink-x11. 2002-08-06 06:11:12 +00:00
jlam
2fd2e60ce0 USE_BUILDLINK_X11 is dead, too. 2002-08-06 06:10:41 +00:00
jlam
fcf2d2e2bc Remove completely unused code for buildlink-x11 that is never going to see
the light of day in pkgsrc.
2002-08-06 05:56:36 +00:00
lukem
7978d8d155 revert previous as it is borken. per testing by me and discussion with jaromir.
(/brickage to certain vi clones with syntax editing...)
2002-08-05 08:09:01 +00:00
jdolecek
7db72790ae fix \ botch - need double \ to get the the \ properly generated
in wrapper script
2002-08-04 17:03:58 +00:00
jlam
7472947b84 Fix _JAVA_PKGBASE definition in "sun-jdk" case so that when used as a
pattern with "pkg_info -e <pattern>", we can actually match a full package
name.
2002-08-03 19:51:20 +00:00
hubertf
f65cd0defb print-PLIST:
* move redundant sed expression into variable to only maintain it once
 * properly catch grep return code in *both* cases (makes substitution
   of pkg variables in @dirrm statements / directory names work)
2002-08-03 00:15:30 +00:00
jlam
88ca8458b4 Add support for XAW_TYPE == "neXtaw". 2002-08-02 20:14:34 +00:00
jlam
3b6db329d0 A package Makefile may add the word "optional" to PTHREAD_OPTS, which
will override the effects of any instance of the word "require".  This
should _only_ be used by those packages that can be built with or
without pthreads _independently_ of whether any of its dependencies need
pthreads.  Currently, this only only www/mozilla, which uses its own
threading library if native pthreads is unavailable, despite that it
uses GTK+, which _does_ need pthreads.
2002-08-02 05:38:37 +00:00
schmonz
856d2fdf3e Set JAVA_HOME correctly on Darwin. 2002-08-01 13:25:26 +00:00
jlam
74efb51f8c Alter the way pkgsrc handles dependencies on pthreads. We now bless the
hard-syscall version of GNU pth as the official pthread replacement
package for those platforms that don't have a native pthread library.
USE_PTHREAD is now deprecated in favor of directly include
pthread.buildlink.mk, but the behaviour may be tweaked by setting
PTHREAD_OPTS to contain any of "native" and "require".  More complete
documentation may be found in the first half of this file.
2002-08-01 05:40:29 +00:00
jlam
554bc08289 We no longer expect PTHREAD_TYPE to be defined after including
bsd.prefs.mk.  It's value is now supposed to be checked after including
pthread.buildlink.mk.
2002-08-01 05:36:33 +00:00
jlam
fad3c804a0 * Rename _JAVA_PKGNAME to _JAVA_PKGBASE which more accurately reflects its
contents.

* Each PKG_JVM needs its own special _JAVA_PREFIX_DEFAULT hardcoded as
  there's no way to discern the subdirectory of ${LOCALBASE}/java in which
  the PKG_JVM is installed.

* If PKG_JVM == "sun-jdk", allow either sun-jdk13 or sun-jdk14 to be used,
  preferring whichever one is already installed, but otherwise using the
  best default for a given platform.
2002-07-31 14:48:03 +00:00
wiz
7c5034a857 Add "${_PATCH_BACKUP_ARG} .orig" to PATCH_DIST_ARGS too.
Fixes Solaris problem reported in pkg/17769 by Valeriy E. Ushakov.
2002-07-31 14:43:29 +00:00
wiz
2e29143b54 Add APACHE_USER and APACHE_GROUP variables, remove APACHE_SUEXEC_USER. 2002-07-30 18:42:14 +00:00
grant
93c8ef6a61 back out OBJOSMACHINE stuff as it is superfluous. pointed out by
jlam.
2002-07-30 00:09:23 +00:00