Commit graph

192 commits

Author SHA1 Message Date
reed
491c5d65f1 Improvements for DESCRiption and COMMENT.
(The DESCRiption was same as the other gettext package,
and the COMMENT mentioned "Tools".)
2004-03-08 18:14:33 +00:00
jlam
bf6e059da4 Reorder some lines so that BUILDLINK_USE_BUILTIN.<pkg> set in the
environment overrides all other settings.
2004-02-18 16:35:27 +00:00
jlam
ec993afa1a LIBTOOL_OVERRIDE and SHLIBTOOL_OVERRIDE are now lists of shell globs
relative to ${WRKSRC}.  Remove redundant LIBTOOL_OVERRIDE settings that
are automatically handled by the default setting in bsd.pkg.mk.
2004-02-14 17:21:32 +00:00
jlam
7788e26d45 USE_BUILDLINK should be "yes", not just defined. 2004-02-14 16:17:02 +00:00
grant
52f1b46a37 remove unneeded CONFIG_{GUESS,SUB}_OVERRIDE, as bsd.pkg.mk does this
automatically now.
2004-02-14 00:54:44 +00:00
jlam
d2b62c66fb Create a new variable PREFER_NATIVE that has the opposite semantics
as PREFER_PKGSRC.  Preferences are determined by the most specific
instance of the package in either PREFER_PKGSRC or PREFER_NATIVE.  If
a package is specified in neither or in both variables, then PREFER_PKGSRC
has precedence over PREFER_NATIVE.
2004-02-12 02:35:06 +00:00
jlam
1edfa505ed Reorganize code so that any dependencies are checked as part of deciding
whether the software is built-in or not.  This facilitates implementing
the forthcoming PKGSRC_NATIVE variable.
2004-02-12 01:59:37 +00:00
jlam
7c68eb548f Move the INCOMPAT_FOO checks to a more natural location within the
block that decides whether package FOO is built-in or not.  If the
platform is listed in IMCOMPAT_FOO, then treat FOO as being not
built-in.
2004-02-11 11:30:49 +00:00
jlam
7699290f10 If we're passing through MAKEFLAGS variables whose values may contain
spaces, use the :Q modifier instead of double-quoting the value.  This
avoids breakage when executing the just-in-time su targets.
2004-02-06 19:04:24 +00:00
jlam
317cc72791 Make PREFER_PKGSRC just yes/no or a list of packages. This makes it
simpler to understand.
2004-02-05 07:17:14 +00:00
jlam
e7133cac25 Rename BUILDLINK_PREFER_PKGSRC to PREFER_PKGSRC so that we can use its
value outside of buildlink-related files.
2004-02-05 07:06:15 +00:00
jlam
07a9d8dfb2 Support a new global variable:
BUILDLINK_PREFER_PKGSRC
	This variable determines whether or not to prefer the pkgsrc
	versions of software that is also present in the base system.

	This variable is multi-state:
		defined, or "yes"	always prefer the pkgsrc versions
		not defined, or "no"	only use the pkgsrc versions if
					needed by dependency requirements

	This can also take a list of packages for which to prefer the
	pkgsrc-installed software.  The package names may be found by
	consulting the value added to BUILDLINK_PACKAGES in the
	buildlink[23].mk files for that package.
2004-02-05 06:58:02 +00:00
jlam
01a5abff01 Support BUILDLINK_DEPENDS.<pkg> being a list of values. 2004-01-24 03:12:31 +00:00
tron
1c3192189f Don't use "-Wl" on platforms which define "_USE_RPATH" to "no". This
fixes build problems under Darwin.
2004-01-15 23:04:00 +00:00
jlam
5997a8acaf Add some double quotes and move a section into a protected region so we
don't keep re-evaluating it.
2004-01-11 06:29:38 +00:00
jlam
27458276fc Use l:foo: instead of S:...: to remove a library. 2004-01-06 19:13:13 +00:00
jlam
2a243f33ac It's "overwrite" not "overview"!! 2004-01-06 04:37:52 +00:00
jlam
2c03f435c8 bl3ify 2004-01-05 11:17:10 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
83a20f5433 Don't need to set BUILDLINK_PREFIX.gettext explicitly as bsd.buildlink3.mk
does it correctly for us.
2004-01-05 09:37:05 +00:00
jlam
c9ff27d270 Sow BUILDLINK_USE_BUILTIN.<pkg> and reap _NEED_<PKG> variables. 2004-01-05 09:31:31 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
danw
e06a3e973e add -DSTATIC=static to the Darwin-specific defines so that libintl
doesn't completely gratuitously export a symbol that conflicts with
libiconv
2003-09-25 03:00:57 +00:00
wiz
b6a06da843 Undo last. While it may make live easier, it's not good for binary
packages.
2003-08-02 09:25:44 +00:00
grant
924e3daff6 when determining whether iconv is required, don't require gettext-lib
0.11.5nb1 or higher, 0.11.5 is good enough.

fixes build with slightly older installation of gettext-lib.
2003-08-02 05:59:20 +00:00
martti
e69ab8c365 COMMENT should start with a capital letter. 2003-07-21 16:35:12 +00:00
grant
91f00f1cbc s/netbsd.org/NetBSD.org/ 2003-07-17 21:21:03 +00:00
wiz
1f6effdcaf Only depend on gettext-lib>=0.11.5nb1 if iconv is needed.
Noted by Matthias Scheler.
2003-07-14 09:32:43 +00:00
wiz
43fa0c7cb6 PKGREVISION bump for libiconv update. 2003-07-13 13:50:19 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jschauma
39c404f625 Revert last after libtool now behaves as expected. 2003-03-27 18:59:37 +00:00
jschauma
f0c026d2f4 Make this install using the correct major under Irix. Oddly, libtool determines
the right version for most other packages (AFAICT), but this package seems
to be different.
2003-03-27 15:39:38 +00:00
jmmv
fc675ae0c8 Fix build on Darwin, using patch in PR pkg/20396 by Yves de Champlain. 2003-03-22 11:35:44 +00:00
jlam
3ef633718c (1) Publicly export the value of _OPSYS_RPATH_NAME as RPATH_FLAG;
Makefiles simply need to use this value often, for better or for
    worse.

(2) Create a new variable FIX_RPATH that lists variables that should
    be cleansed of -R or -rpath values if ${_USE_RPATH} is "no".  By
    default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
    additional variables may be appended from package Makefiles.
2003-03-14 19:37:30 +00:00
jlam
a0020ab00f Use BUILDLINK_LIBICONV_LDADD instead of hard-coding "-liconv". This should
fix the problem where gettext-lib on certain OSes that already have iconv
functions in libc don't need to link against libiconv.
2003-03-07 05:59:48 +00:00
jlam
d2939d01fe Avoid a conditional based on the value of GNU_CONFIGURE. This allows
gettext-lib/buildlink2.mk to be included anywhere in a Makefile instead
of only after where GNU_CONFIGURE may be defined.
2003-01-05 22:16:53 +00:00
jlam
db5abc6f54 Remove -no-undefined from libtool arguments as it causes gettext-lib to
not build a shared library on platforms that libtool thinks can't handle
inter-library dependencies, e.g. OpenBSD and Solaris.
2002-12-23 14:54:22 +00:00
jlam
c3eb9a3255 These packages are no longer needed to bootstrap buildlink2. Simplify the
building of these packages by using buildlink2.
2002-12-22 19:04:07 +00:00
jlam
efefdc43bd Add "-liconv" along with "-lintl" to LIBS if we are using a newish (0.11.x)
gettext.
2002-12-20 07:11:42 +00:00
schmonz
b3b7f82b4e Work around a obscure compiler error in devel/gtexinfo on Darwin. Patch from
<URL:http://mail.gnu.org/pipermail/bug-gnu-utils/2002-September/002920.html>.
2002-12-12 08:59:10 +00:00
jlam
da7a2ac9f5 Allow an installed gettext-lib-0.10.35nb1 to satisfy gettext dependencies
if we don't actually require gettext-lib>=0.11.5.  For other installations
where keeping an older gettext around isn't wanted, convert the gettext
dependency to >=0.11.5 and include the necessary buildlink2 magic for
libiconv support.
2002-12-11 22:22:47 +00:00
drochner
d30acbc4c4 oops, the 0.11.5 should be for the GNU gettext case only.
Do it better now - ugly but the logic here is a bit twisted.
2002-12-10 20:00:57 +00:00
drochner
13f2f0cc41 require gettext-lib>=0.11.5. Linking against an old one can lead to
confusion.
2002-12-10 19:46:29 +00:00
jlam
0f9709c801 gettext-0.11.5's gettext.m4, used by newer GNU configure scripts, no longer
uses a compile/link test to determine the presence or absence of libintl.
Instead it uses a file existence test for libintl.{a,so,la} in specific
directories.  buildlink2 can't work around this, but gettext.m4 does
provide a new configure option "--with-libintl-prefix" to specify in which
directory to look for libintl, so use it.  It's harmless on older GNU
configure scripts as they will ignore unknown options, but it will fix
gettext detection with newer GNU configure scripts that use the new
gettext.m4.  Also protect a forced cache value from being passed to the
configure script unless libintl really does exist.
2002-12-02 22:06:55 +00:00
jlam
07d6b42666 The correct style is "foo-[0-9]*", not "foo-*", when wildcarding a package
for a dependency match.
2002-12-02 11:26:44 +00:00
jlam
bf1f0b5251 Simplify by using BUILD_DIRS instead of custom do-build and do-install
targets.
2002-12-02 11:24:40 +00:00
drochner
16af549a21 bite the bullet and upgrade to 0.11.5
There are too many changes to list in a sensible way.
The most visible change for me is that libintl requires libiconv now.
Also untangled the 3 sub-pkgs -- a common patch dir makes it too complex.

This pkg used to expose buildlink2 problems - the pkg libintl was
pulled in in cases where USE_GNU_GETTEXT was not set. There were
some improvements to libtool filtering, and x11/gtk builds now, so
I hope this is settled.
2002-11-27 17:41:05 +00:00
jlam
25e15d0369 Add a default _BLNK_LIBINTL_FOUND definition (used later in the file) in
the USE_GNU_GETTEXT == YES case.
2002-11-26 21:56:07 +00:00
jlam
df076ce1a8 More changes to try to get gettext-lib/buildlink2.mk to work properly on
Linux systems that include gettext() routines in glibc.  We now properly
substitute for libintl.la references in libtool archives, and we don't
produce the fake libintl.la since it has no meaning if there is not a real
libintl.
2002-11-26 10:25:05 +00:00
jlam
be6a887a9d Allow for Linux systems where the gettext() routines are incorporated into
glibc instead of in a separate libintl.
2002-11-20 08:48:03 +00:00
jlam
2d05f52f17 This file appears to be unused now. 2002-11-14 23:12:39 +00:00
wiz
462f42b076 dylan-* still need this. 2002-10-24 17:04:15 +00:00
wiz
57633167f9 Unused. 2002-10-23 11:52:28 +00:00
jlam
05e99838f5 Remove GETTEXT_REQD knob...just using the available
BUILDLINK_DEPENDS.gettext knob is sufficient.
2002-10-16 22:13:52 +00:00
jlam
4b4d51ab11 Create GETTEXT_REQD variable that defaults to "0.10.35nb1" and represents
the version of the gettext library needed by a package.  The system libintl
is considered to be equivalent to "gettext-lib-0.10.35nb1".  Add a few
additional bits to fool newer configure scripts into accepting the system
libintl if GETTEXT_REQD == 0.10.35nb1.
2002-10-16 22:07:47 +00:00
jlam
e93173bd31 Check that /usr/lib/libintl.* also exists before we use the system libintl
instead of GNU gettext from pkgsrc.  Fixes pkg/18570.
2002-10-07 19:11:16 +00:00
jlam
7465b42efd We want to say -L${BUILDLINK_PREFIX.gettext-lib}/lib, not
-L${BUILDLINK_DIR}/lib, because we don't need to lie to the compiler
anymore.
2002-09-27 00:44:33 +00:00
jlam
47752131c1 buildlink2 doesn't care about _USE_RPATH...it will do the right thing for
each platform anyway.
2002-09-24 22:10:59 +00:00
jlam
02234080c8 Create a dummy libtool archive for the system libintl.*, otherwise, in the
future when pkgsrc's libintl.so depends on libiconv.so, libtool will be
confused and use the wrong libintl when we want the system one.
2002-09-18 01:05:45 +00:00
jlam
14351923a1 Merge devel/gettext-lib from buildlink2 back into the main trunk. This
package is used to build shells/bash2, which is needed to use buildlink2
on Darwin.
2002-08-23 01:22:40 +00:00
seb
3975007add Solaris fix... Now that gettext-lib's buildlink.mk makes it required on Solaris
fix build and PLIST:
- obey PKGLOCALEDIR
- fix libtool's install mode invocation.
2002-08-19 19:20:30 +00:00
jlam
d88554c247 Create new variables INCOMPAT_ZLIB, INCOMPAT_BZIP2, INCOMPAT_READLINE,
INCOMPAT_GETTEXT that are analogous to INCOMPAT_ICONV and contain lists of
shell wildcards intended to match against ${MACHINE_PLATFORM}.  These
variables are used to note those platforms that have the named packages in
the base system but are incompatible in some way from the pkgsrc version
of the same package.  Change INCOMPAT_CURSES to have the same sematics as
above.  These variables allow much greater precision in specifying which
platforms have broken (for the purposes of pkgsrc) versions of software in
the base system that must be ignored.

The buildlink.mk files for these packages define private _INCOMPAT_*
versions of these variables, and they contain the default lists of
platforms that are known to have incompatible software bits.

This addresses pkg/17775 submitted by Julien T. Letessier
<julien.letessier at sun dot com>.
2002-08-07 06:10:32 +00:00
schmonz
4acf5a5358 Use CONFIG_{GUESS,SUB}_OVERRIDE to fix build problem on Darwin, noted by
Randy Beaudreault <maccult@pacbell.net>.
2002-07-19 03:07:21 +00:00
wiz
3ca5c72084 Only use -R if the linker supports it. Patch by Rob Latham in pkg/15652. 2002-02-21 12:08:32 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00
jlam
7146b14699 Define INTLLIBS to be the flags needed to link against libintl.a, and pass
${INTLLIBS} through to the configure environment.  This should fix
pkg/14360 (x11/gtk: gtk-config does not list "-lintl") by Jun-ichiro itojun
Hagino <itojun@itojun.org>.
2001-10-26 19:18:36 +00:00
veego
63ad910dee SVR4 packages have a limit of 9 chars for a package name.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.
2001-10-18 15:20:01 +00:00
jlam
d0c69a0d50 Pass the appropriate linker flags in LIBS along with -lintl to ensure that
-lintl is picked up by the linker.
2001-08-25 02:35:25 +00:00
jlam
d2eb68d2a6 Add dir_DEFAULT setting used by EVAL_PREFIX logic to set the default
installation directory in case the package isn't installed.
2001-07-27 13:33:18 +00:00
jlam
7b1d3cb465 Mechanical changes to buildlink.mk files to use EVAL_PREFIX to set
BUILDLINK_PREFIX.<pkgname>.  This allows buildlink to find X11BASE packages
regardless of whether they were installed before or after xpkgwedge was
installed.  Idea by Alistair Crooks <agc@pkgsrc.org>.
2001-07-20 01:54:31 +00:00
jlam
cb76bd5efc Move inclusion of bsd.buildlink.mk to start of file. 2001-07-01 22:59:08 +00:00
jlam
ed0debd89f Mark as USE_BUILDLINK_ONLY. 2001-06-28 18:30:26 +00:00
jlam
34d11d8a0f Generalize how the dependency pattern may be specified. Instead of just
FOO_REQD=1.0 being converted to foo>=1.0, one can now directly specify
the dependency pattern as FOO_DEPENDS=foo>=1.0.  This allows things like
JPEG_DEPENDS=jpeg-6b, or fancier expressions like for postgresql-lib.
Change existing FOO_REQD definitions in Makefiles to FOO_DEPENDS.
2001-06-23 19:26:48 +00:00
jlam
072be2ad69 Use bsd.buildlink.mk instead of duplicating code all over the place. 2001-06-11 01:59:33 +00:00
jlam
5d02f04b3a Use cookies (.*_done) to determine whether headers and libs have been
linked from a particular package, and add a pre-configure target to
the buildlink.mk file to more painlessly use buildlink.mk files.  A
${BUILDLINK_TARGETS} variable still exists in case a package _must_
define NO_CONFIGURE.
2001-06-10 00:09:29 +00:00
wiz
5be454e29d ' '->'\t' 2001-06-09 15:25:18 +00:00
jlam
f3aabc7a15 Comment the last commit. 2001-05-28 06:08:57 +00:00
jlam
ea23929312 Make sure that -lintl is add to LIBS in CONFIGURE_ENV to work around
broken gettext.m4.
2001-05-28 06:07:16 +00:00
jlam
2810e8ca5d Add buildlink.mk file to link the appropriate libraries and headers into
${BUILDLINK_INCDIR} and ${BUILDLINK_LIBDIR}, to be used by other packages.
2001-05-28 03:00:23 +00:00
wiz
895c0ce6a7 Deprecate PATCH_SUM_FILE; use distinfo file from gettext. 2001-04-21 13:52:25 +00:00
frueauf
249c7fec91 Add "CONFLICTS=gettext<=0.10.35" since it installs the same files that
gettext-0.10.35 and older versions installed.
2001-04-21 12:53:29 +00:00
wiz
dfb2d5edc6 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 00:44:09 +00:00
agc
d7d36b3561 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 10:57:56 +00:00
wiz
df7a79b66d Remove makepatchsum target. 2001-03-16 13:08:48 +00:00
wiz
94dc65fbec Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:38:16 +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
itojun
1ca82b0d3b move installation of gettextize files to devel/gettext.
repair gettext build on fresh install.  re-introduce gettextize file
installation.  reported by: mycroft
2000-11-29 05:05:28 +00:00
wiz
7e41edf4f4 add HOMEPAGE 2000-11-16 02:40:12 +00:00
itojun
a73e62cbee no info on this directory 2000-10-31 17:07:59 +00:00
itojun
6859c75478 split devel/gettext into devel/gettext and devel/gettext-lib.
TODO: gettext-lib can be omitted if we have /usr/lib/libintl.a.
2000-10-31 17:06:17 +00:00