Commit graph

862 commits

Author SHA1 Message Date
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