Commit graph

1038 commits

Author SHA1 Message Date
jlam
b3dec5f544 On Solaris 7, when `find dir -name foo -name bar' in invoked, only an
implicit `-print' action is performed on bar and not on foo.  Surround
the search pattern in \( ... \) and add an explict -print so that all of
the results of the find are printed.

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

instead of

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

Hopefully this might mean I don't commit incorrect PLISTs.
2001-10-29 15:10:14 +00:00
tron
8d0e937ff7 Add a new "show-vars" target which allows to display several makefile
variables at once.
2001-10-26 21:42:44 +00:00
jlam
83a062506e If AUTOMAKE_OVERRIDE=YES then we touch files in ${WRKSRC} in such a way
that GNU autoconf/automake are not executed during the build process, even
if the tools exist in the build environment.  This prevents the build
process from overwriting any changes made to the configure script or to the
Makefile.in files.
2001-10-26 17:03:04 +00:00
agc
507d23ecbf Also delete the magic invocation of scripts/configure and
scripts/{pre,post}-install - there is nothing that uses any of these,
and it incurs needless overhead.
2001-10-26 16:03:26 +00:00
wulf
967aaf280f Changed PKGDIR assignment to allow migration of files currently held in
${.CURDIR}/pkg directory to the toplevel of the package. It remains
backward compatible with the existing system allowing a progressive
transision process. The long term goal is a reduction of overheads and
processing time when working with the cvs tree.
2001-10-26 15:08:43 +00:00
agc
d52dd5005a At present, if there is a pre-<target> or post-<target> script in
the scripts/ directory, it will be run automatically as part of
the build process, by bsd.pkg.mk.  There are now exactly 5 packages
in pkgsrc which use this facility, and yet, for every package build,
the existence of a script is checked by bsd.pkg.mk once before the
target is executed, and once afterwards. This incurs needless
overhead.

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

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

Tested as "still" working on 1.5.2.

Bump minor number of pkg and make pkgsrc depend on this version.
2001-10-26 07:47:38 +00:00
tron
758b507b69 Sort "PATCH_SITES" using "MASTER_SORT" and "MASTER_SORT_REGEX", too. 2001-10-25 18:12:53 +00:00
jlam
51436ad116 The do-configure target has some "stuff" that is supposed to be done after
the pre-configure target is called but before the configure script is
called, but it's added in a non-extensible way.  This "stuff" is the
replace-ncurses step and the ltconfig-override step.  Move these steps out
into their own targets that are named as prerequisites to the do-configure
step.  The prerequisites are specified in the private variable
_CONFIGURE_PREREQ, to which other independent targets may be appended.
2001-10-24 19:42:28 +00:00
hubertf
46a42a2e26 Get rid of BUILD_ROOT and replace it with PKGSRCDIR (which was there
before!)
2001-10-17 23:23:15 +00:00
tron
57f481af78 Pass "${USETOOLS}" down to package builds so that packages which use BSD
style makefiles can be build without a tools directory.
2001-10-12 15:40:56 +00:00
jlam
c46d036469 Allow people who set USE_BUILDLINK_X11 so as to experiment with the
buildlink-x11 package, to have that package installed.
2001-10-10 05:57:14 +00:00
jlam
ffdd7ac071 Back out last change that moved the prepending of BUILDLINK_CPPFLAGS and
BUILDLINK_LDFLAGS to CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS from
bsd.buildlink.mk to bsd.pkg.mk.  They're unnecessary after the recent
changes to bonobo/buildlink.mk and to libglade/buildlink.mk that removed
their settings of BUILDLINK_CPPFLAGS.
2001-10-09 13:54:10 +00:00
tron
cb4432edd5 Prepend "${BUILDLINK_CPPFLAGS}" and "${BUILDLINK_LDFLAGS}" to "${CFLAGS}",
"${CPPFLAGS}", "${CXXFLAGS}" respectively "${LDFLAGS}" in "bsd.pkg.mk" and
not in "bsd.buildlink.mk" because "${BUILDLINK_CPPFLAGS}" and
"${BUILDLINK_LDFLAGS}" might get changed several times by the
"buildlink.mk" files of various packages.
2001-10-05 21:32:59 +00:00
agc
ed7610d006 Use the usual _PKG_SILENT and _PKG_DEBUG definitions in the
show-installed-depends target.
2001-10-04 22:01:54 +00:00
agc
12106c0620 use ${PKG_INFO} rather than pkg_info in show-installed-depends target,
so that the correct setting of PKG_DBDIR is used, and the correct
pkg_info binary too, presumably.

Make show-installed-depends work on Solaris (untested) by only defining
the target if DEPENDS is defined.
2001-10-04 21:48:12 +00:00
jlam
2b9404e054 If USE_IMAKE is set, then ensure that the buildlink-x11 package isn't
installed, as it currently breaks builds that use imake.  I made an
announcement on current-users and tech-pkg on this, but having the make
logic place to verify that buildlink-x11 is actually gone is better.
2001-10-04 07:56:06 +00:00
tron
9f0eb84c74 Add "prdownloads.sourceforge.net" as primary site to the of list
sourceforge download servers. It is the fastest one from "ftp.netsd.org"
and my home system.
2001-10-03 07:57:04 +00:00
jlam
6c797a0afa Allow customizing the message for _SU_TARGET by substituting for "$action",
where action can be "install", "package", "create user for", etc., instead
of blindly always saying "install".  Define "action" before calling
${_SU_TARGET} whereever it is used.
2001-10-01 21:15:11 +00:00
jlam
3ad1fec0e7 Have x11.buildlink.mk add -Wl,-R${X11BASE}/lib to LDFLAGS directly, instead
of relying on bsd.pkg.mk to do it.  This change just makes x11.buildlink.mk
more self-sufficient.  Also add a warning that x11.buildlink.mk shouldn't
be included in any buildlink.mk files since what it appends to *_POST_SED
variables must come last.
2001-10-01 17:14:40 +00:00
abs
e31ba171a2 Add 'show-installed-depends' - neat implementation thanks to Hubert. 2001-09-30 22:10:33 +00:00
mycroft
1fa6a808a7 I have no idea where it got broken, but put back the creation of .package_done
files.
2001-09-25 20:26:37 +00:00
tron
d9e3ce1e50 Fix cut and paste error in last commit. 2001-09-24 11:02:49 +00:00
tron
85ee00aa9d Add "PKGVERSION" to "PLIST_SUBST" by default. Trailing package source
version numbers (e.g. "nb1") are automatically removed.
2001-09-24 09:48:31 +00:00
jlam
0cb3a96be8 Fix problem with Solaris' /bin/sh not accepting an empty list in a for
loop noted in pkg/13894 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>.
The suggested fix was applied.
2001-09-14 18:54:43 +00:00
jlam
fec4edb91a Document the new Motif-related variables. Deprecate USE_MOTIF in favor of
including motif.buildlink.mk, which contains more sophisticated and
complete logic for detecting the various Motif options that may be
installed.  Though deprecated, USE_MOTIF is still recognized, though it
does no more than include motif.buildlink.mk.
2001-09-14 01:52:40 +00:00
agc
5d918d6e52 Add a just-in-time su mode for "make package" by factoring out the code
whcih does the su(1), and using that. Also make the deinstall target use
the same common code.
2001-09-12 10:38:12 +00:00
wiz
bd02cc8c26 Make print-PLIST work again if no linux=procfs mounted.
Patch by hubertf.
2001-09-11 16:41:36 +00:00
martin
478cff1cb0 Add support for two environment variables to help update all your
installed packages and only rebuild everything once:

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

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

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

This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
2001-09-09 20:36:07 +00:00
tv
ea4db8a84e Since libtool has now been split, it's no longer necessary to have a
BUILD_DEPENDS on libtool for the USE_LIBTOOL/non-USE_LTDL case; instead,
just depend on libtool-base (thus skipping the libtool-info and libtool
package compilation where appropriate).
2001-08-27 15:05:54 +00:00
hubertf
72a293c7e6 print-PLIST: remove emul/linux/proc entries before sorting. No need to
waste processing time on data we're going to discard.
	     Pointed out by Tomasz Luchowski <zuntum@netbsd.org>.
2001-08-24 10:50:03 +00:00
hubertf
aeed7c63ec * When applying patches, also look in $LOCALPATCHES/$PKGPATH for
any local patches that the user wants to maintain outside of
   pkgsrc.
 * print-PLIST: ignore Linux procfs entries
2001-08-24 00:54:46 +00:00
abs
8eee1675b7 gnu patch is used under Linux as well as Solaris 2001-08-23 16:37:27 +00:00
jlam
64194bcde5 Set the default BUILDLINK_X11_DIR to ${X11BASE} so that in the absence
of x11.buildlink.mk, it still points to a working X11R6 hierarchy.
2001-08-23 04:21:02 +00:00
jlam
c2c4606f78 By default, don't use pkgtools/buildlink-x11 to cause packages that use
imake to be buildlinked as it's not necessary for those packages.  Many
thanks to Frederick Bruckman <fredb@immanent.net> for pointing this out.

This is accomplished by ripping out all of the Makefile logic related to
buildlink-x11.  It will be added back in a separate file (as noted by the
additional check for X11_BUILDLINK_MK, but will still not be the default.
2001-08-22 17:34:19 +00:00
tv
d4f0e2715c Remove "-" from default su command. It's more reliable to let some of the
environment be inherited from pkgsrc during an implicit su for install;
root's .-files may set variables that fiddle with how pkgsrc works.
2001-08-20 14:41:48 +00:00
dogcow
10023af344 change BUILD_DEPENDS+= bzip2-0.9.0b:../../archivers/bzip2 to >=0.9.0b;
otherwise, extracts fail when bzip2-1.0.1 is installed.
2001-08-16 01:49:09 +00:00
jlam
cd4bfb05da Update build dependency on buildlink-x11 to >=0.7. 2001-08-08 07:24:57 +00:00
abs
b17128a573 ftp.digital.com seem to have dropped their cpan archive - switch to loaded 2001-08-01 16:18:18 +00:00
jlam
cb3a5c9daf Move -a from XMKMF_FLAGS to XMKMF. Thus, if a package wants to run
xmkmf without building all the Makefiles too, then it can set
XMKKF=${XMKMF_CMD} ${XMKMF_FLAGS} (same as default but without the -a).
2001-07-30 05:04:32 +00:00
hubertf
822fcf2541 work around HAVE_BUILTIN_MESA not set when USE_GLX is set. 2001-07-27 12:19:15 +00:00
wiz
e786e881f0 Force move new file over old one in REPLACE_PERL (at least one package
needs that).
2001-07-26 08:39:35 +00:00
jlam
a16dfdacab If USE_BUILDLINK_ONLY is defined, then use f2c/buildlink.mk instead of
directly adding a dependency on f2c.
2001-07-25 23:49:41 +00:00
jlam
9d08dcf929 Change the EVAL_PREFIX logic so that if
EVAL_PREFIX=    FOODIR=foo

is defined, then FOODIR's value is only saved if the package foo was
found.  This causes FOODIR to keep being reset until the package foo
is installed, which makes EVAL_PREFIX work properly with buildlink.mk
files.  This should fix various problems people have been having with
files not being linked in when a dependency is built via a "make build"
in a package that uses that dependency further up the chain.
2001-07-25 07:36:40 +00:00
hubertf
f652ba9c24 Change indentation (whitespace changes only!):
.if 			.if
  .if			.  if
  .else		=>	.  else
  .endif		.  endif
  .endif		.endif

Patch contributed by Marc Espie <espie@liafa.jussieu.fr> in preparation of
merging latest changes with the OpenPackages project. Thanks Marc!
2001-07-18 22:43:32 +00:00
jlam
c18e4e27f6 Rename "FILE" to "FILE_CMD" since ".for FILE" is a common idiom in BSD
makefiles, and this interferes with the conditional definition of FILE
in defs.*.mk.
2001-07-15 12:40:03 +00:00
tron
cd704ea25b Improve Java handling via "USE_JAVA" option:
- The "sun-jre" and "sun-jdk" packages can now be directly selected by
  setting "PKG_JVM" to "sun-jdk". "JAVA_HOME" is set to
  "${LOCALBASE}/java/jre/bin" in this case which fixes PR pkg/11901
  by myself.
- Only set "CLASSPATH" to "${JAVA_HOME}/lib/classes.zip" if that file
  really exists.
2001-07-13 11:28:23 +00:00
jlam
d3bc280f55 Add definitions for CMP pointing to cmp utility and use it in bsd.pkg.mk. 2001-07-13 06:16:02 +00:00
tron
75a2304553 Fixes for "tarup" target:
- Add missing "${_PKG_SILENT}${_PKG_DEBUG}" in front.
- Create category directories as required.
2001-07-10 12:04:43 +00:00
tron
805f15ed41 Add new "tarup" target which allows to create a binary package from an
installed package with the "pkg_tarup" utility.
2001-07-10 11:51:57 +00:00
tv
d6c0d5882c * Make perl stop installing anything in the man3 directory. It's starting
to install things like "open.3" and "lib.3" which confuse users.  Perl
  ships with a documentation tool, "perldoc", for this purpose; create a
  MESSAGE indicating that it should be used instead.  (Perl still installs
  command line program manual pages in man1.)

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

=====

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

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

    The cleanest solution is to integrate bsd.perl.mk into the perl5-base
    pkg, and let those who have not upgraded perl yet use the runtime
    definitions in <bsd.pkg.mk>.
2001-07-09 17:10:25 +00:00
dmcmahill
7190c9bfae add OSVERSION_SPECIFIC to BUILD_DEFS if defined so it ends up in the binary
package.  This way we can look at a binary package and determine what versions
of the OS it may run on.
2001-07-07 17:10:36 +00:00
jlam
d8e22debda Update buildlink-x11 to 0.6. Changes include moving the custom overrides
of X11.rules settings below the inclusion of <X11.rules>.  This should
cause overrides to work correct for XFree-3.3.x systems.
2001-07-05 17:22:59 +00:00
jlam
619f213103 Document the logic that sets XMKMF_CMD. 2001-07-05 04:58:12 +00:00
jlam
00655f3659 Update buildlink-x11 to 0.5. Changes from previous version are the
addition of the xmkmf script from the XFree86-4.0.x distribution, which
understands passing -D options through to imake.  Update the dependency
on buildlink-x11 in bsd.pkg.mk for packages using USE_BUILDLINK_ONLY to
>=0.5.  Also, if USE_BUILDLINK_X11 is set, then refer to ${BUILDLINK_DIR}
for location of X headers and libraries.
2001-07-05 04:47:27 +00:00
perry
27004b36eb fix a problem with HAVE_BUILTIN_XPM 2001-07-04 23:44:27 +00:00
jlam
8c0e21a260 buildlink-mk requires that BUILDLINK_DIR always be set, so set it if
undefined and pass it through MAKE_ENV.
2001-07-02 21:28:45 +00:00
jlam
d51560f78a Bump build-dependency on xpkgwedge to >=1.5, and add a build-dependency
on buildlink-x11 if USE_BUILDLINK_ONLY is defined.  Pass all of
CPPFLAGS/CFLAGS/CXXFLAGS/LDFLAGS to buildlink-x11 through PKGSRC_* versions
of those values.  Also add preliminary support for USE_BUILDLINK_X11 for
buildlinking X11R6 instead of USE_X11 (hi zuntum!).
2001-07-02 21:06:51 +00:00
jlam
8d8c3630b3 Make check for Xpm in XFree86 look like the checks for Mesa and freetype2. 2001-07-02 08:02:33 +00:00
jlam
a56d13d64f Make sure the -DBuildLink gets passed through to subdir Imakefiles if
BuildLink is defined.  Bump xpkgwedge version number to 1.4 and increase
xpkgwedge dependency version in bsd.pkg.mk.
2001-07-01 21:13:20 +00:00
jlam
acff708464 Resurrect LIBTOOL_OVERRIDE. It's needed for lesstif-0.92.32 which uses
the latest libtool in its sources (there's no ltconfig, only ltmain.sh).
2001-06-30 03:36:48 +00:00
jlam
2365ad8d70 Bump build dependency on xpkgwedge to >=1.3 to handle buildlink.mk files
properly for imake-using packages, and cause pass -DBuildLink to xmkmf
(and thus to imake) if USE_BUILDLINK_ONLY is defined.
2001-06-29 18:29:27 +00:00
wiz
2844ba8358 Update MASTER_SITE_XCONTRIB server list, inspired by a posting to tech-pkg
by Jim Bernard <jbernard@mines.edu>.
2001-06-28 16:54:07 +00:00
zuntum
38712c01b3 o move REPLACE_PERL code to more proper location -- to the do-patch target;
now it works when NO_CONFIGURE is set
2001-06-27 11:40:25 +00:00
zuntum
578c864e81 o introduce REPLACE_PERL
it chdir's to ${WRKSRC} and automatically replaces /usr/bin/perl,
  /usr/local/bin/perl and /usr/pkg/bin/perl with ${PERL5} in each file
  listed in REPLACE_PERL variable in package's Makefile
2001-06-27 11:24:15 +00:00
tron
b3685d9e9b The GNU patch used under Solaris doesn't understand "-b .orig", use
"-z .orig" instead.
2001-06-21 05:48:29 +00:00
jlam
cbfd838f6a Do previous in a different way. 2001-06-21 04:52:56 +00:00
jlam
998f5cb300 Try to fix check for XAW_TYPE. 2001-06-21 04:49:08 +00:00
hubertf
d63b65d51d As proposed by Luke Mewburn on tech-pkg, make sure to always use
simple backups with suffix ".orig", in case someone has set
SIMPLE_BACKUP_SUFFIX and/or VERSION_CONTROL in $env.
2001-06-21 01:58:27 +00:00
jlam
c459aefcea Move default setting of XAW_TYPE to bsd.prefs.mk. 2001-06-20 19:36:03 +00:00
assar
dec515e55c do not check for ACCEPTABLE_LICENCES when deinstalling. closes PR pkg/13211 2001-06-19 11:54:56 +00:00
jlam
b642e040c7 Create USE_BUILDLINK_ONLY variable that doesn't add -L${LOCALBASE}/lib
to LDFLAGS if it's defined.  This is intended for use by package developers
to catch packages that implicitly use libraries from ${LOCALBASE}/lib
without depending on the correct package.
2001-06-18 21:23:35 +00:00
jlam
e133a65d29 Add BUILD_USES_GETTEXT_M4 to set a build dependency on either an older
version of gettext or gettext-m4.
2001-06-16 04:11:30 +00:00
jlam
850064cf9e Fix typo...LIBS gets added to CONFIGURE_ENV, not CONFIGURE. 2001-06-13 07:09:33 +00:00
jlam
0d141af71a Split XMKMF into XMKMF_CMD and XMKMF_FLAGS and set XMKMF_CMD conditionally
base on whether we use xpkgwedge or not.
2001-06-12 20:39:13 +00:00
jlam
8848ee6991 If GNU_CONFIGURE is defined, then pass LIBS to the GNU configure script.
There are 40 packages in pkgsrc that do this.
2001-06-12 20:30:09 +00:00
jlam
c5b999b208 Use ${SORT} and ${WC} instead of sort and wc. Also some minor whitespace
fixes.
2001-06-12 13:17:01 +00:00
jlam
28c0882df0 Migrate some OS-specific variable definitions into OS-specific files.
Include it in bsd.prefs.mk to allow their use much earlier in Makefiles,
and try to use the variable references instead of directly invoking the
programs in bsd.prefs.mk and bsd.pkg.mk where possible.
2001-06-12 12:49:55 +00:00
jlam
a057ade2a3 Make CPPFLAGS part of MAKE_ENV and CONFIGURE_ENV as 220 packages want it
to be.
2001-06-11 06:30:59 +00:00
wiz
ee2b1fc6ba Fix 'make mdi' when no previous distinfo-file exists. 2001-06-09 12:56:21 +00:00
wiz
43d6c58239 Deprecate DIGEST_FILE and PATCH_SUM_FILE (replaced by DIGEST_FILE, and not
used anymore in pkgsrc).
2001-06-09 12:15:59 +00:00
tron
3cf55fa68a Fix typo in "IMAKE_MAN_CMD" for Solaris. 2001-06-07 16:21:24 +00:00
tron
c177d6ce4c Fix thinko in last commit. 2001-06-07 15:40:15 +00:00
tron
1c6fd1b4db Use "/usr/ccs/bin/make" under Solaris if "USE_IMAKE" is defined. 2001-06-07 15:34:16 +00:00
skrll
a94ba4caf9 Improve logic around USE_LIBTOOL and USE_LTDL. 2001-05-24 19:39:55 +00:00
agc
c759c2faf4 To check patches using the checkpatch target, a special version of
patch(1) is needed, which supports -C (which checks that the patches
would apply cleanly).  As we use message digests to verify our
patches, and as we don't have a modified patch on NetBSD, Solaris and
Linux, remove the checkpatch target, and all references to the
PATCH_CHECK_ONLY definition.
2001-05-24 13:58:18 +00:00
agc
e8e5fab5c3 When displaying a list of "dependencies" in the run-depends-list
target, don't display what we're doing if PKG_DEBUG_LEVEL is non-zero
- the output of run-depends-list is fed to pkg_create(1) and encoded
in the binary package as a list of @pkgdep lines, and expanding the
output is not the right thing to do.
2001-05-24 13:28:36 +00:00
agc
9c4448f118 Use full pathname for xargs, since it isn't a builtin. 2001-05-23 09:18:26 +00:00
agc
a6d943268f Save the version of the package extracted in the ${EXTRACT_COOKIE}, and
check at installation time that this version matches ${PKGNAME}.

Idea by abs, implementation by hubertf, minor munging by me.
2001-05-22 11:43:36 +00:00
hubertf
765504717b make the bin-install target look at some FTP servers (stored in
BINPKG_SITES). As discussed on tech-pkg.
2001-05-20 01:58:19 +00:00
hubertf
ebe9b8274a Fix two problems when using a ksh(1) as /bin/sh (ln -sf /bin/ksh /bin/sh [*]):
* umask handlint due to umask producing different number of leading 0s in
   ksh(1) and sh(1)
 * dependency handling is different due to "`...`" being interpreted
   differently

([*] needed on NetBSD 1.5.1_BETA2/cobalt, as /bin/sh keeps on dumping core
     in ramdom situations.)
2001-05-20 00:54:09 +00:00
skrll
d3c108e26d Make sure that all ELF symlinks gets removed from the PLIST when doing
a.out automatic shlib handling. The offending symlink is created when
using the, somewhat strange, libtool -release option.

Reported by David Brownlee <abs@netbsd.org> on tech-pkg. Tested by myself
and David.
2001-05-18 16:23:20 +00:00
abs
cefca782ca Set XARGS to xargs (NetBSD/Solaris) or xargs -r (linux). 2001-05-18 10:29:10 +00:00
jlam
16458031a7 Add MAKE="${MAKE_PROGRAM}" to CONFIGURE_ENV. This ensures that GNU
configure scripts are aware of which make program is invoked during the
build process.
2001-05-18 02:08:17 +00:00
abs
cf4b3c088a If we can use the Linux jdk on NetBSD-*-i386, we can probably risk it on
Linux-*-i386
2001-05-17 15:01:43 +00:00
abs
9926e0fe2f Fix chown and chgrp paths on linux (at least redhat 6.2) 2001-05-17 14:52:33 +00:00
abs
4a4e51ea41 Skip all the -lintl checks on Linux 2001-05-17 14:51:41 +00:00
agc
138260e643 If there are no CKSUMFILES, don't try to append ${DIST_SUBDIR} when
setting _CKSUMFILES.
2001-05-17 11:12:31 +00:00
drochner
27e04a07f0 pull in python-mk if USE_PYTHON is defined, just like USE_PERL5 2001-05-14 13:44:23 +00:00
agc
acad04b09e Add support for .lha extensions, provided in PR 12888 by Ben Collver
(collver@linuxfreemail.com)

"In the current pkgsrc, .lzh distfile archives are automatically
handled by bsd.pkg.mk.  It is also common for lha archives to have the
file extension .lha."
2001-05-14 12:58:51 +00:00
agc
bdd681ea46 Bump the value of LIBTOOL_REQD to match the one in the package. 2001-05-09 10:25:38 +00:00
dmcmahill
2398fb901f put the PERL5_REQD outside the USE_PERL5 check so packages can do:
BUILD_DEPENDS+=               perl>=${PERL5_REQD}:../../lang/perl5
2001-05-09 02:13:01 +00:00
agc
fb856da086 Check that the ${PACKAGES} directory exists, before trying to cd there.
This modification allows "make readme" to succeed even if the ${PACKAGES}
hierarchy does not exist.

Fixes PR 12480 from Arto Selonen (arto@selonen.org), and addresses
PR 12362 from Masao Uebayashi <uebayasi@soum.co.jp>
2001-05-03 13:01:04 +00:00
tron
30af28a87c Add a variable "PERL5_REQD" which can be used to set the minimum required
Perl 5 version. The default is "5.0" for now.
2001-04-26 08:35:38 +00:00
abs
416b0f4c7f in the USE_JAVA and jdk case, add
BUILD_DEPENDS+=                {sun-jdk,jdk}-*:../../lang/jdk
This allows the run DEPENDS to use sun-jre
2001-04-24 15:30:27 +00:00
wiz
510c5f6a22 Improve message if distinfo parts don't get modified. Closes pkg/12718. 2001-04-23 20:53:50 +00:00
tron
d873219a87 Fix creation of "Size" entries in "distinfo" if the distfile is a softlink. 2001-04-22 08:00:41 +00:00
jlam
4240ca2c86 Update dependency on perl-mk to 1.1. 2001-04-22 06:28:30 +00:00
wiz
61b1ac8adf Don't generate checksums for patches that will get ignored in the apply
step anyway (*.orig, *.rej).
2001-04-21 12:56:56 +00:00
wiz
b436947ca8 Don't change distinfo file if no checksums/sizes are modified. 2001-04-21 12:40:58 +00:00
jlam
2505570ce2 Handle freetype2 package like the MesaLib package as it is bundled with
XFree86-4.0.x.
2001-04-19 19:11:59 +00:00
dmcmahill
bb37361cf0 when USE_FORTRAN is set and we don't have f77 set, or we've asked for
f2c instead of f77, then use a DEPENDS not BUILD_DEPENDS because pkgs
need the shared libraries at run time.
2001-04-18 21:50:46 +00:00
tron
31370297b8 Reorder "MASTER_SITE_SOURCEFORGE" in the interest of performance. 2001-04-18 10:53:02 +00:00
hubertf
7cd277e0a0 show-var: implement quoting via make's :Q modifier, instead of home-brewn. 2001-04-17 16:56:21 +00:00
agc
dc170907cc Distinfo changes.
+ move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
+ include distfile filesizes in distinfo

If there's no distinfo file (the name comes from FreeBSD, no point in
being gratuitously incompatible), then use existing files/{md5,patch-sum}
files.
2001-04-17 09:07:01 +00:00
tron
a6bb98db40 Invert new variable "LIBTOOL_REQD" analogous to "PKGTOOLS_REQD" for the
required version of the "libtool" package.
2001-04-16 00:55:37 +00:00
skrll
4a72123aef {BUILD_}DEPEND on devel/libtool 2001-04-15 07:54:49 +00:00
kei
3395899cb7 Check if ${DIST_SUBDIR} exists before deleting it when doing "make distclean". 2001-04-13 05:27:20 +00:00
fredb
3aee0d0499 Prepare for update of pkgsrc openssl to 0.9.6. 2001-04-09 02:54:22 +00:00
hubertf
58c237d9a9 Invent ZOULARISBASE, defaulting to $LOCALBASE/bsd, to make it possible
to setup Zoularis (or similar :-) environments to be closer to hier(7).
2001-04-08 14:14:11 +00:00
dmcmahill
95ccaf56e0 use dewey version for the f2c BUILD_DEPENDS. 2001-04-07 12:45:20 +00:00
tron
b6657ecd26 Switch to another German GNOME mirror again because the old one is dead.
There must be a curse on such mirrors.
2001-04-07 08:05:00 +00:00
hubertf
7f891b4114 Add ';' missed when moved from () to {;}
Pointed out by zuntum on some mailing list.
2001-04-04 23:14:37 +00:00
skrll
b03d946ff4 Make USE_LTLDL depend on libtool-base as libltdl is there. 2001-04-04 13:46:11 +00:00
simonb
0e9357ef02 Relax version of unzip needed. 2001-04-04 07:47:33 +00:00
tron
ab901585d6 Depend only on "libtool-base" package if "USE_LIBTOOL" is defined. This
doesn't only avoid circular dependences under Solaris, it makes more
sense in general because the libtool documentation is irrelevant to most
users which only want to build shared libraries.
2001-04-04 06:43:43 +00:00
skrll
935026630f Use the latest libtool. 2001-04-03 17:58:33 +00:00
hubertf
f90bf3c39e Replace subshell commands in (...) by {...;} for speed.
Based on patch from Chris Coleman <chrisc@vmunix.com>.

Timing of "make show-var VARNAME=COMMENT" in pkgsrc/x11:

new:
2.744u 0.888s 0:16.69 21.6%     0+0k 809+201io 55pf+0w
2.827u 1.047s 0:07.72 50.0%     0+0k 0+189io 0pf+0w
2.913u 0.992s 0:06.91 56.4%     0+0k 0+168io 0pf+0w
2.978u 0.997s 0:06.88 57.5%     0+0k 0+169io 0pf+0w
3.017u 0.886s 0:07.88 49.3%     0+0k 0+186io 0pf+0w

old:
2.921u 0.987s 0:07.04 55.3%     0+0k 2+183io 0pf+0w
2.931u 1.051s 0:08.49 46.8%     0+0k 0+169io 0pf+0w
3.065u 0.816s 0:08.33 46.4%     0+0k 0+174io 0pf+0w
2.962u 0.987s 0:08.08 48.7%     0+0k 0+181io 0pf+0w
2.661u 1.228s 0:08.50 45.6%     0+0k 0+171io 0pf+0w
2001-04-03 12:06:31 +00:00
wiz
274cb1ee43 Remove IDENT, since we don't seem to need it anymore. 2001-04-02 20:58:01 +00:00
hubertf
54b86c5214 Don't use regexp substitution where plain substitution is intended,
it might yield some surprising results.

Pointed out by Marc Espie <espie@schutzenberger.liafa.jussieu.fr>
2001-03-29 22:08:21 +00:00
skrll
f0e86f3cde Minor optimisation 2001-03-28 14:34:00 +00:00
skrll
f6d53e29e6 Correct the DEPENDS on libtool in the USE_LTDL case and make sure the
latest and greatest libtool is used in the USE_LIBTOOL case.
2001-03-28 14:01:28 +00:00
hubertf
e32afb6fea Change BUILD_DEPENDS semantics:
first component is now a package name+version/pattern, no more
executable/patchname/whatnot.

While there, introduce BUILD_USES_MSGFMT as shorthand to pull in
devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current).

Patch by Alistair Crooks <agc@netbsd.org>
2001-03-27 03:19:43 +00:00
manu
60771f6ec8 Added default JVM for PowerPC: blackdown-jdk13. Approved by Jim Wise. 2001-03-26 21:36:02 +00:00
agc
f021b66108 Provide a default digest algorithm in the case where FAILOVER_FETCH is
set, and a distfile which isn't in files/md5 is attempted to be
downloaded.

Fixes a problem pointed out by Dan Mcmahill.
2001-03-26 17:08:19 +00:00
fredb
4a384ed135 Correctly handle the common case where "MANZ" setting is protected
by ".ifdef BSD_PKG_MK" in /etc/mk.conf, but "MANZ" handling, in
the package, relys on the system's "bsd.man.mk", which _CAN_
_NOT_ see variables protected by ".ifdef BSD_PKG_MK".  By passing
"MANZ" in through "MAKE_ENV", only if "MANZ" is defined, we ensure
that the PLIST handling and the package's own handling are on the
same wavelength.
2001-03-26 17:04:50 +00:00
hubertf
910ce3a461 Clean up after installing digest, also use DEPENDS_TARGET to install
(in case someone wants something else then a 'install')
2001-03-26 00:55:39 +00:00
skrll
2cc8a1834e Handle the symlinks created by libtool on a.out for certain invocations
of libtool involving the -release option.

print-PLIST on an a.out machine probably doesn't handle these, i.e. it
doesn't remove them from the PLIST.
2001-03-23 17:11:17 +00:00
tron
f4912b797b Add a version check for the installed Zoularis version. 2001-03-23 16:02:23 +00:00
tron
aa40aef12e Use "tar" coming with Zoularis under Solaris. 2001-03-23 14:09:23 +00:00
agc
0611c740ad Sort command name definitions into alphabetical order, following the
renaming of LOCALEDIR to PKGLOCALEDIR.
2001-03-21 12:12:25 +00:00
agc
7a3e46acb2 Check for the existence of the ${LICENSE} file before trying to access it.
Pointed out by Thomas Klausner.
2001-03-20 12:39:00 +00:00
fredb
b03f6971a6 As discussed on tech-pkg, introduce USE_RMAN to accomodate the XFree86-4.x
installed "rman".
2001-03-20 00:04:15 +00:00
tron
36939cf3c6 Add "ftp1.sourceforge.net" to "ftp3.sourceforge.net" to source forge master
site list.
2001-03-19 17:05:02 +00:00
tron
27fa876a3c Replace two dead German GNOME mirrors by a working one. 2001-03-18 19:27:02 +00:00
skrll
b2868a2d7b Use the most recent libtool. 2001-03-18 17:12:51 +00:00
wiz
147525d532 Remove NO_DESCRIBE, since it doesn't seem to be used or make sense. 2001-03-16 12:43:45 +00:00
wiz
444abcc357 Deprecate NO_EXTRACT, since it wasn't working anyway for a long time now.
Use
EXTRACT_ONLY=	# empty
instead.
2001-03-16 11:45:01 +00:00
abs
6617e1518f Update the pkgtools out of date instructions to
Please "make install" in ../../pkgtools/pkg_install.
2001-03-15 13:31:04 +00:00
skrll
a8d1e7fa28 Re-enable the -release option of libtool. ELF is fully supported with a.out
support to follow. Note this in documentation.

Bump revision of libtool to nb3 and update dependencies.

Update (sort) known affected PLISTs.

Fixes pkg/12368 by Kimmo Suominen <kim@tac.nyc.ny.us>
Fixes problems with cross/* noted on tech-pkg and packages by
	Chuck Cranor <chuck@research.att.com>, and
	Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2001-03-12 11:23:01 +00:00
tron
7ba1910424 Invoke "xmkmf" with full pathname to avoid problems on systems with two
X11 installations like e.g. Solaris with OpenWindows and XFree86.
2001-03-11 09:51:59 +00:00
wiz
573662c236 Remove (accidentally committed, I guess) 'set -x'. 2001-03-07 16:04:55 +00:00
hubertf
5545634923 _FETCH_FILE: mixed up quotes in calculation of CKSUM2 2001-03-07 15:47:33 +00:00
agc
416162fe0d Make sure that we only try to perform checks on distfiles and patches
if there's a corresponding checksum in files/md5 or files/patch-sum
2001-03-07 14:57:49 +00:00
wiz
2d46430151 Special-case digest the same way as pkg_install to avoid
chicken-and-egg problem. Patch by Alistair Crooks.
2001-03-07 09:52:53 +00:00
hubertf
ee3eb6eff6 check-shlibs: don't complain about uninstalled pkg on pkgs that have
NO_PKG_REGISTER set (like pkg_install)
2001-03-07 00:26:26 +00:00
wiz
afcceaff60 Move PKGTOOLS_VERSION check to bsd.prefs.mk for speedups in recursive tree walks.bsd.pkg.mk bsd.prefs.mk
Bump required version number of PKGTOOLS to 20010306 for the latest bugfixes
and the -V option support.
2001-03-06 16:00:15 +00:00
agc
9c273b7c78 Add support for message digests other than md5 into pkgsrc. This is done
by using the pkgsrc/pkgtools/digest package, and adding dependencies in
bsd.pkg.mk to make sure that that package is up to date.

There is no discernable performance decrease in using sha1 checksums
over md5 ones, and most people advocate the use of sha1 or rmd160 over
md5.

As part of this change, move the initial setting of LOCALBASE, X11BASE
and CROSSBASE into bsd.prefs.mk from bsd.pkg.mk.

Addresses PR 11809.
2001-03-06 14:50:45 +00:00
skrll
184da7784d Fall back to the default configuration when unable to infer a tag.
This helps with c compilers that libtool doesn't recognise.

Bump the revision.
2001-02-28 10:16:57 +00:00
skrll
ba7d9319bd Update libtool to be based on a CVS snapshot of the multi-language branch 2001-02-27 08:20:23 +00:00
tron
bcc2a69700 Add "PKGLOCALEDIR" to "PLIST_SUBST" by default. 2001-02-26 19:40:19 +00:00
tron
650dfe176b Rename "LOCALEDIR" variable to "PKGLOCALEDIR" to avoid conflicts with
"bsd.own.mk" under NetBSD-current.
2001-02-26 19:39:17 +00:00
wiz
5d96551965 Sync patterns for man page compression with those for PLIST generation.
(cat? should only contain pre-formatted man pages, which our man only
recognizes as such if they match *.0).
2001-02-26 17:23:37 +00:00
wiz
6975986ad7 Fix the BUILD_DEPEND for perl-mk. Noted by David Brownlee. 2001-02-21 16:45:04 +00:00
wiz
347ae34952 Use the make :Q modifier for quoting strings for the shell, instead of
manually doing it (in some places).
2001-02-21 15:01:29 +00:00
wiz
9ccafbc52a Use ${LOCALBASE}/share/mk/bsd.perl.mk (as installed by perl-mk), if it
exists, to set some variables, instead of starting perl for getting the
values (fallback code to old case still there).
BUILD_DEPEND on perl-mk in USE_PERL5 case for speed-up reasons.
2001-02-20 16:42:10 +00:00
hubertf
2670c125b7 Evaluate PERL5_SITELIB, PERL5_SITEARCH and PERL5_ARCHLIB only if
USE_PERL5 is actually set. Some speedup...
2001-02-19 18:30:36 +00:00
wiz
d6858dc916 Do some more escaping in show-var. Inspired by hubertf. 2001-02-19 10:50:45 +00:00
wiz
ccbccdc81b Fix show-var target (if variable contains " or `, like some COMMENTs do). 2001-02-17 19:36:27 +00:00
tron
7811606bd1 Add german CPAN mirror. 2001-02-17 15:55:47 +00:00
wiz
1b7f0d246f Change COMMENT handling:
COMMENTs are now a variable in the Makefile instead of a pkg/COMMENT
file. The COMMENT var should be in the maintainer block after the
homepage.
Modify bsd.pkg.mk, pkglint, url2pkg, and port2pkg (last one untested)
for the new behaviour. Document new state in Packages.txt.
This should save lots of inodes, and lots of time when untarring/updating.
Idea by Alistair Crooks.
For the time being, accept pkg/COMMENT instead of a COMMENT var to avoid
a flag day.
2001-02-16 13:06:17 +00:00
agc
63fe128a5a Make sure we record the RCS Ids of all of the patch files in the
BUILD_VERSION information (pkg_info -b)

Correct the English in the licence gripe.
2001-02-15 13:49:04 +00:00
tron
dd09712ae5 Rename "${LOCALEBASE}" variable to "${LOCALEDIR}" to avoid mix-ups with
"${LOCALBASE}".
2001-02-13 11:47:00 +00:00
sommerfeld
cfdc9474b8 Work around (now fixed) bug in file(1) for arm32 a.out dynamically
linked programs.  The buggy file(1) on arm32 objects reports "shared
library" for both programs and shared libraries, which results in
broken automatic shared lib handling.

Discussed on tech-pkg, approved two weeks ago by agc.
2001-02-12 01:17:24 +00:00
skrll
bf7394d921 Fix print-PLIST target so that files with whitespace in are dealt with
correctly.
2001-02-05 18:35:48 +00:00
jtb
077fab1d0a Set the variables F77 and FFLAGS in the configure environment (CONFIGURE_ENV). 2001-02-02 04:53:31 +00:00
hubertf
d0319ffdcf add ftp-access for MASTER_SITE_SOURCEFORGE (on ftp.sourceforge.net) 2001-01-31 00:34:41 +00:00
jlam
c91f1d5afe Typo in comment for SMART_MESSAGES. 2001-01-30 23:18:36 +00:00
wiz
b96e0b67e2 Don't do input redirection for sed if not necessary. 2001-01-29 14:40:26 +00:00
wiz
b979f7222a Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @VARIABLE@, nor @@VARIABLE@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
2001-01-29 11:34:21 +00:00
jwise
8fbf4b11a5 As per discussion on tech-pkg, correct behavior of `make package' in the
case where DESTDIR is set.

Previously, if DESTDIR was set when a pkg was installed, $DESTDIR/var/db/pkg/+CONTENT
would get `@cwd $DESTDIR/$PREFIX', as would the +CONTENT archived in the
binary package.  The first is correct, the second is not.

Now, @cwd in the +CONTENT recorded in the binary package gets $PREFIX (no $DESTDIR).
This allows binary packages built into a DESTDIR to be installed on a
real system.  The @cwd in the installed PKG_DBDIR ($DESTDIR/var/db/pkg)
remains the same.

In addition, the full path ($DESTDIR/$PREFIX) is recorded in @src in the
binary package's +CONTENT, for reference purposes.

This patch is the same as that posted to tech-pkg, except that variable
names have been clarified as suggested by hubertf.
2001-01-29 01:56:51 +00:00
dmcmahill
35c7ea926b always show depends in show-depends-dirs even if the package is broken. 2001-01-28 18:53:58 +00:00
skrll
e88e90d76d Look for the latest libtool. 2001-01-26 16:48:17 +00:00
agc
71d2649a63 Don't use a Dewey decimal relational operator when matching package names
in the "show-downlevel" target, since a number of package names do not
correspond to Dewey decimal version numbers (e.g. 2.4.1p1)

Instead, use pkg_info(1) to retrieve the installed package name, and
compare that against ${PKGNAME}.

Fixes PR 12041, from Bernd Ernesti
2001-01-25 21:20:05 +00:00
wiz
eb0f106fcf Remove OVERRIDE_LIBTOOL code per discussion on packages.
(There's no package that's not happy enough with OVERRIDE_LTCONFIG.)
2001-01-25 10:43:21 +00:00
dmcmahill
39e5bd2d7c make the show-depends-dirs target be robust for depends which have
their directories specified as :../foo instead of :../../bar/foo
2001-01-22 22:43:10 +00:00
dmcmahill
daf18d1a07 make sure the libtool dependency caused by USE_LIBTOOL is in place for
the show-depends-dirs target.
2001-01-22 04:06:45 +00:00
dmcmahill
700bd47064 add 'show-depends-dir' target. This shows the directories of the "top level"
depends for the package.  Both build and run depends are shown.  This is
a non-recursive target.  Ie, only explicitly depends are shown.

Example:
bondage 109 # cd /usr/pkgsrc/cad/geda && make show-depends-dirs
 cad/gschem cad/gnetlist cad/gsymcheck cad/geda-utils cad/geda-docs

This target is useful for collecting dependency tree information for bulk
builds.
2001-01-22 04:00:54 +00:00
veego
aaa83f3415 Add support for SVR4_PKGNAME:
SVR4 has a lenght limitation of the package name: Only 9 characters are allowed.
 Thats not a real problem since gensolpkg, which is used to create a SVR4
 packages, truncates the PKGNAME to 9 characters, but there is a second problem.

 Normaly you have a vendor identifier in that package name. gensolpkg uses
 at the moment TNF, so we only have 6 characters left, and that is insufficient
 for a few packages like the amanda ones. Where the real lenght should be
 limited to 5 characters so one can choose to use a vendor string up to 4
 characters.

 SVR4_PKGNAME should be only added to a few packages where the truncation of
 the PKGNAME does not produce an unique package name, e.g the amanda packages.

You will need pkgsrc/pkgtools/gensolpkg 1.9 which will be commited in the
next few days to use SVR4_PKGNAME.

TODO: add SVR4_PKGNAME support to pkglint.
2001-01-21 22:41:03 +00:00
tron
53c8b8c46f Solaris 8 includes the GNU patch command as "/usr/bin/gpatch". 2001-01-17 20:46:57 +00:00
agc
e9f4c3ed7d Remove NO_WRKDIR, which is incompatible with read-only pkgsrc, and not used 2001-01-15 19:46:29 +00:00
jlam
a2ca4cdaa9 Add SSLCERTS make variable, set to either /etc/openssl/certs or
${SSLBASE}/certs depending on whether we use in-tree OpenSSL or
pkgsrc/security/openssl.
2001-01-13 18:35:09 +00:00
tron
3a68b03e5e Don't cause a build failure if "${CC} -version" doesn't work. 2001-01-13 00:18:51 +00:00
tron
f875da8c21 Use input redirection when invoking "bzcat" because at least the version
distributed with Solaris 8 doesn't like symbolic links.
2001-01-11 10:53:10 +00:00
tron
8e16d67590 Invoke second "xargs" command with "-n 256" in "print-pkg-size-depends"
because Solaris's "xargs" will otherwise invoke "pkg_info" with no
package names when a package has no dependences.
2001-01-10 13:10:46 +00:00
tron
96ab8e4f4b Solaris 2.8 and newer includes "gzip". 2001-01-10 11:54:59 +00:00
tron
ae42043514 Define "LOCALEBASE" (not "LOCALBASE") at single place depending on the
operating system.
2001-01-10 10:53:42 +00:00
jlam
ee3de91357 Correct comment on SHLIB_HANDLING 2001-01-05 18:03:14 +00:00
agc
d530450306 Add a "show-license" target, and a "show-licence" alias, to display
the package's licence, if it's non-standard.
2001-01-05 17:37:12 +00:00
agc
9c2d582fc9 The way that shared objects were handled in the PLISTs and bsd.pkg.mk was
out of date - it was based on a.out OBJECT_FMT, and added entries in the
generated PLISTs to reflect the symlinks that ELF packages uses. It also
tried to be clever, and removed and recreated any symbolic links that were
created, which has resulted in some fun, especially with packages which
use dlopen(3) to load modules. Some recent changes to our ld.so to bring
it more into line with other Operating Systems also exposed some cracks.

+ Modify bsd.pkg.mk and its shared object handling, so that PLISTs now contain
the ELF symlinks.
+ Don't mess about with file system entries when handling shared objects in
bsd.pkg.mk, since it's likely that libtool and the BSD *.mk processing will
have got it right, and have a much better idea than we do.
+ Modify PLISTs to contain "ELF symlinks"
+ On a.out platforms, delete any "ELF symlinks" from the generated PLISTs
+ On ELF platforms, no extra processing needs to be done in bsd.pkg.mk
+ Modify print-PLIST target in bsd.pkg.mk to add dummy symlink entries on
a.out platforms
+ Update the documentation in Packages.txt

With many thanks to Thomas Klausner for keeping me honest with this.
2001-01-04 15:10:17 +00:00
wiz
2625fd3bcb Don't ignore previously set ${LIBS} in USE_LIBINTL case. 2001-01-04 14:17:54 +00:00
skrll
bbb3a7cfa2 Fix handling of SHLIB_HANDLING=NO. That is neither stage of do-shlib-
handling should be performed.

This fixes the build problems for emulators/compat1[23].
2000-12-31 12:21:07 +00:00
hubertf
ce9479d9bf * Remove old PLIST-mi/md.shared/md.static that was only used for
perl in a previous (pkgsrc) life.
 * add "lint" target to run pkglint
 * Add commented out direction on how to use bzip2 compressed
   binary packages
 * Some cleanup (clean target, ...)

Reviewed by Thomas Klauser <wiz@netbsd.org>.
2000-12-30 11:19:04 +00:00
hubertf
8472ad0a54 Add libtool in 'make fetch-list' output. Suggested by Klaus Heinz. 2000-12-19 02:32:22 +00:00
david
678a50db46 Add authoritative CPAN ftp site as a last resort in case packages have
not yet propagated to mirror sites. Closes PR pkg/11591 from Damon Brodie
2000-12-12 01:04:16 +00:00
wiz
8184259f54 REQ is no more, its place is taken by INSTALL & friends. 2000-12-08 10:17:36 +00:00
abs
90f1a1dea4 Enable 'PATCH_FUZZ_FACTOR?= -F0' by default, rather than just iff PKG_DEVELOPER 2000-12-06 16:29:16 +00:00
hubertf
a6d56be771 hush 2000-11-29 14:52:57 +00:00
hubertf
e601de8245 Quick close this can of worms again.
The ${PLIST} target must run after all the pre/do/post-install targets
were run (they may generate ${PLIST_SRC}!).

This whole code-path should use the make dependency system, not fork
make(1) over and over again.
2000-11-29 14:44:12 +00:00
hubertf
ef6d79f2dd * Rename some targets to fit into the usual "do-XXX calls real-XXX" scheme
* In real-su-install, do not call "make ${PLIST}" manually, but rather depend
   on the ${PLIST} file being there for the do-su-install target.
 * Break out shlib-handlink from real-su-install, and put it into target
   do-shlib-handling, which will either touch then PLIST (when called via
   the ${PLIST} target) or do the necessary steps to setup shared library
   handling (creating symlinks on ELF, running ldconfig on a.out, etc.,
   when called via real-su-install)
 * Removed some unnecessary tests (check if $PLIST is there when it
   can be assumed to be there, ...)
2000-11-29 13:18:22 +00:00
tron
91f4a994f8 Explicitly set "IS_BUILTIN_XPM" to "0" if the "xpm" library is not
installed because the "xpm" package will refuse to be built otherwise.
2000-11-29 12:40:55 +00:00
hubertf
5970f2e303 One "^" too much in last commit. 2000-11-29 11:39:25 +00:00
wiz
bf4a3f24eb Fix print-PLIST target (broken in 1.619). 2000-11-29 01:21:21 +00:00
hubertf
6ef7e0ffd6 * Make sure PKGPATH gets added to BUILD_DEFS (I thought it was there for a
long time. Oh well.)
 * Only replace the value of PATH for "PATH", not any variable whose name
   starts with PATH (like PKGPATH :-)

Hinted by Jason R. Mastaler <jason@mastaler.com> on tech-pkg.
2000-11-27 22:24:49 +00:00
tron
8e7d4f77b2 Don't remove package list entries ending on ".so" on ELF systems any more.
With "libtool-1.3.5nb9" or newer shared objects are named like that.
2000-11-27 15:57:43 +00:00
mycroft
528407f9bb Bump libfool version. 2000-11-26 21:12:54 +00:00
tron
15956d6339 Update "libtool" version number after recent changes by Charles M. Hannum. 2000-11-26 20:38:53 +00:00
tron
983f324c0a Partially back out revision 1.612 because it causes endless loops in
dependency checks if the "xpm" package is not installed.
2000-11-24 23:28:30 +00:00
hubertf
01aeef90ab fake-pkg:
* print registered dependencies only once - no functional change.
 * some whitespace changes
2000-11-22 10:40:21 +00:00
hubertf
f99369acf6 Fix NEED_NCURSES handling:
Let's take timidity, which needs ncurses and tk. By setting
NEED_NCURSES=1 and adding it to MAKEFLAGS, all other required pkgs
automagically depend on ncurses - tk, tcl (which is slurped in by
tk), ...
2000-11-21 00:16:43 +00:00
tron
5926d47d3d Rename ""__BUILTIN_XPM" to "IS_BUILTIN_XPM" and add it to "MAKEFLAGS" to
avoid expensive evaluation in recursive "make" calls as suggested by
Hubert Feyrer.
2000-11-20 09:33:39 +00:00
tron
28b6f82d2d Prevent an attempt to build the "xpm" package on a system with XFree86 4.0
or newer installed because it includes this library.
2000-11-20 09:02:25 +00:00
tron
af7722a80f Remove unnecessary whitespace in shell command. 2000-11-20 08:33:42 +00:00
hubertf
becf63b237 print-PLIST:
enclose s/// commands in single quotes, and protect '.' in OS_VERSION,
so that "135" does NOT get replaced by "${OS_VERSION}".

Detected in kdetoys-2.0
2000-11-18 21:55:28 +00:00
hubertf
7c6c6d304f Fix print-pkg-size-depends:
I now remember why I felt there was something wrong with the fix in PR
11433: it calls some target with PACKAGE_DEPENDS_WITH_PATTERNS=false, and
this will cause problems when someone has a different version installed
than what's currently in pkgsrc.

This was also what the XXX was for that I couldn't remember - all
dependencies were found installed at the time that the
print-pkg-size-depends target gets called, and as such we can call
run-depends list with the PACKAGE_DEPENDS_QUICK switch (to first print our
direct dependencies, and then look at their @pkgdep lines to get all their
depends - no need for recursion, as well store all a pkg's depends in it's
@pkgdep lines!). Using that, we can call "pkg_info -e" on all the patterns
to expand them to match what's really installed on the system, then make
that list unique (so that e.g. foo-1.0 and foo-* gets to the same pkg
twice, and then sorted out). After that we can calculate it's size as
before using "pkg-info -s".

Using this method is also a whole lot faster (due to no recursion).
2000-11-18 21:53:31 +00:00
tv
36e46ee02a Change multidepends for USE_JAVA software to use sun-jre,jdk instead of
blackdown-jre,jdk.
2000-11-18 01:03:33 +00:00
skrll
9ad61bf074 Bump libtool version for mycroft's changes to a.out library dependencies.
make check will fail on a.out platforms due to lib/10940.
2000-11-17 09:58:49 +00:00
hubertf
18a63152a7 Change the output of the 'install-depends' target so it fits
in 80 columns:


before:
===> mozilla-0.m18nb1 depends on installed package: gtk+>=1.2.8 - gtk+-1.2.8 found
===> mozilla-0.m18nb1 depends on installed package: ORBit>=0.5.1 - ORBit-0.5.3nb1 found
===> mozilla-0.m18nb1 depends on installed package: jpeg-6b - jpeg-6b found
===> mozilla-0.m18nb1 depends on installed package: png>=1.0.6 - png-1.0.8 found
===> mozilla-0.m18nb1 depends on file: /usr/pkg/bin/perl - found
===> mozilla-0.m18nb1 depends on executable: autoconf - /usr/pkg/bin/autoconf found
===> mozilla-0.m18nb1 depends on executable: zip - /usr/pkg/bin/zip found
===> mozilla-0.m18nb1 depends on executable: gmake - /usr/pkg/bin/gmake found

after:
===> Required installed package gtk+>=1.2.8: gtk+-1.2.8 found
===> Required installed package ORBit>=0.5.1: ORBit-0.5.3nb1 found
===> Required installed package jpeg-6b: jpeg-6b found
===> Required installed package png>=1.0.6: png-1.0.8 found
===> Required file /usr/pkg/bin/perl: found
===> Required executable autoconf: /usr/pkg/bin/autoconf found
===> Required executable zip: /usr/pkg/bin/zip found
===> Required executable gmake: /usr/pkg/bin/gmake found
2000-11-16 05:36:01 +00:00
fredb
e00213a7ca In the .SizeAll calculation, allow PKG_INFO to be a command with prefixed
environment variables, which it is by default. (Oops.)
2000-11-12 17:11:03 +00:00
tron
0bf6e40473 Add new "check" target which invokes "pkg_admin check" for the current
package.
2000-11-12 15:20:06 +00:00
fredb
fef36d5443 Calculate the .SizeAll information for pkg_info -S correctly.
Closes PR pkg/11433.
2000-11-12 02:46:53 +00:00
hubertf
cad2a20afa Stopgag fix to force people to unset PKG_PATH before doing pkgsrc
works (at least until we handle this more sane).
2000-11-11 19:13:41 +00:00
tron
9e71b8c25e The GNOME mirror on "ftp.informatik.uni-bonn.de" is working again. 2000-11-11 17:55:44 +00:00
tron
25a7dd8451 Add new master site list "MASTER_SITE_SOURCEFORGE" for
"download.sourceforge.net" and mirror sites.
2000-11-11 14:46:57 +00:00
hubertf
9020a8d498 Change substitution of %%PKG%% so it's expanded to ${PKGNAME} directly, not
via a tmp file. Also, there's no need to excape any possible HTML chars
(there won't be any in a PKGNAME).

Noted in PR 11462 by Jeremy C. Reed <reed@reedmedia.net>
2000-11-09 23:46:29 +00:00
itojun
3e7c6f02b8 USE_LIBINTL: workaround brokenness in gettext.m4 (configure.in fragment
ships with GNU gettext).
2000-11-09 14:02:46 +00:00
mjl
575d15100e Add -lXp to MOTIFLIB, needed by openmotif. 2000-11-02 12:17:03 +00:00
wiz
7382d63dd0 Move USE_NCURSES stuff from bsd.pkg.mk to bsd.prefs.mk.
Do executable bit testing in bsd.pkg.mk, REPLACE_NCURSES, slightly
different.
2000-11-02 03:01:40 +00:00
skrll
4cfb543114 Add CXX and CXXFLAGS definitions in HAS_CONFIGURE case.
Remove ac_cv_path_* stuff as this should be dealt with in the configure.

[Doing this from a KDE2 desktop!!!]
2000-11-01 09:06:22 +00:00
itojun
08cc65a9e2 declare USE_LIBINTL. 2000-10-31 17:20:07 +00:00
hubertf
fa21f27b18 Remove an unbalanced trailing ')'
Change reviewed by Thomas Klausner; see also PR 11317.

Mmm, doing pkgsrc work on Solaris :-)
2000-10-26 16:09:54 +00:00
jlam
e2ac9634c2 Update xpkgwedge to 1.0 and make appropriate changes to bsd.pkg.mk to handle
the new version of xpkgwedge.  Changes from xpkgwedge 0.4:

	* Redefine ImakeCmd to "imake -I$(PREFIX)/lib/X11/config" to
	  pick up X11 config files in $(PREFIX)/lib/X11/config before the
	  ones in the standard X11 tree.

	* Install a program called "pkgxmkmf" that's actually xmkmf, but
	  checks in $(PREFIX)/lib/X11/config before the standard X11 config
	  directory.

	* Create the host.def file in $(PREFIX)/lib/X11/config instead of
	  always in ${X11BASE}/lib/X11/config.

The benefits of this are:

	1) xpkgwedge can now install into $(PREFIX) instead of always into
	   $(X11BASE).

	2) Keeps the X11 tree "pure", and doesn't affect people who want
	   to run xmkmf and not include all the xpkgwedge stuff, even if
	   it's installed.

	3) Packages that install config files (lesstif, xview-config) can
	   now do so in $(PREFIX).

	4) People only have to use 'pkgxmkmf' instead of 'xmkmf', and
	   (hopefully) no other changes, if they want to use the config
	   files in xpkgwedge'd packages.
2000-10-23 17:32:06 +00:00
fredb
19129d3f98 Make target "mps" __identical__ __to__ target "makepatchsum", and not
simply depending on it.
2000-10-22 14:05:24 +00:00
rh
e35787cf4c Use UPDATE_TARGET (new) instead of DEPENDS_TARGET for 'make update'. This
allows the user to set DEPENDS_TARGET=update, which will now automatically
update all outdated prerequisite packages.
2000-10-22 08:22:24 +00:00
jlam
faa90cdf97 Make print-PLIST output the install-info lines only when it finds
files ending in ".info", not for any file that ends in "info".
2000-10-19 02:30:05 +00:00