Commit graph

3950 commits

Author SHA1 Message Date
grant
80e7ac22fb Darwin 7.7.x has poll() in libc, but no poll.h. Address this in GNU
configure packages by testing for poll.h and sys/poll.h and pretending
that there is no poll() if neither exist.
2004-12-20 13:09:04 +00:00
grant
8e83f3f367 fix MASTER_SITE_GNOME .au example. 2004-12-19 00:45:19 +00:00
grant
40a1b4637f transform -fPIC to -qnocommon and clarify the related comment. 2004-12-19 00:38:59 +00:00
jlam
8b2040b409 Always create a ${TOOLS_DIR}/bin/rpcgen to wrap the real rpcgen.
The wrapper will correctly set the CPP environment variable to a
stat((2)able path to a C preprocessor, then rely on the PATH to
find and invoke the real rpcgen.

Remove NO_EXPORT_CPP in package Makefiles where it was used just to
avoid problems with rpcgen.  The build system now just does the right
thing automatically without needing package-specific knowledge.

This fixes PR pkg/27272.
2004-12-18 19:24:26 +00:00
grant
7bbc828ce7 document QPOPPER_SPOOL_DIR. 2004-12-18 04:03:16 +00:00
jlam
651a4a40fd Ensure that libtool-base>=1.5.10nb7 is required for packages that set
USE_FORTRAN.
2004-12-18 00:14:04 +00:00
jlam
88648515a2 Rewrite func_infer_tag in the libtool script so that it's easier to
specify (hardcoded) compilers from which we can infer the correct tag
(CC, CXX, F77).  Use the following patterns to match compilers to
tags:

	CC:	*cc *xlc
	CXX:	*++ *CC
	F77:	*77 *fort

Bump the PKGREVISION to 1.5.10nb7 since we now infer the F77 tag from
likely Fortran compilers.  Also require at least this version of
libtool when building packages that set USE_FORTRAN.  This should fix
PR pkg/28661.
2004-12-17 16:24:22 +00:00
tron
ecdfaff3a2 Remove "http://aleron.dl.sourceforge.net/sourceforge/" once more because
it still doesn't work.
2004-12-15 14:38:53 +00:00
grant
22c75b5b2f fix perl modules path in cpan.pair.com URL. 2004-12-14 10:06:16 +00:00
kristerw
4b4db9826b Make bulk builds mark packages failing due to "no acceptable JVM found"
as unavailable instead of broken.
2004-12-14 00:08:57 +00:00
kristerw
fdb6419bd5 The documentation claims you can use -m as an alias for --mirror_only.
Make it so.
2004-12-11 02:49:57 +00:00
jlam
bda6801430 Create directories before putting files in them. This should fix
PR pkg/28480.
2004-12-11 00:32:16 +00:00
jlam
82d866954b Nuke bsd.perl.mk... we compute these values where they're needed in
perl5/buildlink3.mk already, so no need to include this file in
bsd.pkg.mk anymore.
2004-12-10 04:25:09 +00:00
jlam
452e77d799 From inspecting configure scripts, it seems FreeBSD wants "-D_THREAD_SAFE"
as part of the CPPFLAGS when building threaded apps.
2004-12-09 15:27:13 +00:00
wiz
cc53e3582a ftp2.sf.net is much more responsive than ftp3; replace the latter with the former. 2004-12-08 16:21:00 +00:00
schmonz
c0b159de2e In the show-options target, ensure that PKG_OPTIONS and friends
are non-empty before shelling out to xargs. Silences spurious output
from "pkg_chk -i" and probably others.
2004-12-05 23:23:50 +00:00
grant
c463b8b491 make sure some variables are initialized before using them. 2004-12-05 22:38:06 +00:00
grant
748314ae90 add handling for some required -Wl, transformations for packages that
assume Apple gcc on Darwin. thanks, Johnny :)

this allows perl to build with xlc.
2004-12-05 09:29:26 +00:00
grant
273a47a3d8 whitespace fix 2004-12-05 09:27:23 +00:00
grant
71232b1911 transform -dynamiclib and -fno-common to the appropriate arguments
for xlc.
2004-12-05 09:26:59 +00:00
grant
e221a993eb add show-options target which displays the options available, default,
and enabled for the current pkg, eg. mail/sendmail:

available: db2 db4 inet6 ldap sasl sasl2 socketmap starttls tcpwrappers
default: canna esound gif idea inet6 inet6 sj3 tcpwrappers wnn4
enabled: inet6 tcpwrappers
2004-12-05 09:20:48 +00:00
jlam
bd720de98f Allow the wrapper-specific transform scripts to replace one arg with
several args by setting split_arg="yes" as part of the transformation.
2004-12-05 03:43:18 +00:00
grant
17c0839438 don't throw away all "-Wl," arguments, they are needed to pass various
shlib options to the Darwin linker.
2004-12-05 02:47:52 +00:00
grant
b0797b36a4 fix typo 2004-12-05 02:41:31 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
dillo
36aee2a648 add MASTER_SITE_IFARCHIVE -- list of mirrors of the Interactive Fiction Archive 2004-12-02 21:56:06 +00:00
jlam
406700e994 Don't hardcode /usr/include/db.h and /usr/include/db1/db.h all over the
place.  Also, modify the buildlink-db1-db185-h target to use symlinks
instead of include <db.h> since several bdb implementations might be
buildlinked, and we need to be more precise about exactly which db.h
header is being used.
2004-12-02 17:40:49 +00:00
jlam
6c02e9e0aa If we're using the builtin dlopen(), and libdl.* doesn't exist, then
drop the "-ldl" option on the floor.  This "fixes" packages that
hardcode "-ldl" into the command line when linking software.
2004-12-02 15:04:16 +00:00
wiz
913b2647ad "the the" -> "the" 2004-12-01 09:52:59 +00:00
tv
29b0526b9b We already know that bsd.prefs.mk is included before this, so reduce make
parser churn by skipping a second include of it.

Use PKGDIR in preference to .CURDIR as in other .mk files.
2004-11-30 15:09:45 +00:00
jlam
28e0cb9288 Remove the trailing whitespace in the values of the toolchain variables
(CC, LD, CXX, etc.) if the default values have no arguments.  Now,
CC == "cc" and not "cc ".
2004-11-30 15:07:26 +00:00
jlam
eb9034727a Modify the way that the toolchain variables, e.g. CC, CPP, CXX, LD, etc.,
are handled.  The idea now is to simply remove the paths in the values
of these variables, leaving behind only the basename plus any arguments,
e.g.:

	CC= /usr/local/bin/gcc       becomes   CC= gcc
	CPP= /usr/local/bin/gcc -E   becomes   CPP= gcc -E

The wrapper scripts are generated for every unique executable mentioned
by the toolchain variables, so for the example above, only a "gcc"
wrapper script is generated for ${CC} and ${CPP}.  PKG_{CC,CPP,CXX,etc.}
are the paths to the executables wrapped by the wrapper scripts.

Note that it's now possible to set "CC" to something more than just the
path to the compiler, e.g.

	CC= cc -ffast-math -funroll-loops -fomit-frame-pointer

and the full value of ${CC} will be passed through via CONFIGURE_ENV
and MAKE_ENV.
2004-11-30 14:50:37 +00:00
seb
3e4e8e4fea Since last revision PTHREAD_AUTO_VARS defaults to 'no'. 2004-11-29 17:27:14 +00:00
tv
fbbc1e4cdf Remove anl.gov from _CYGWIN as it is either slow or dead most of the time. 2004-11-29 02:00:30 +00:00
jlam
c88ff0fa15 Set initial values for PKG_{CC,CPP,CXX,FC} which are used within the
${compiler}.mk files to discover the short names of the compilers.
This allows ccache.mk to properly create symlinks when CC is set
explicitly within /etc/mk.conf.
2004-11-28 21:32:47 +00:00
jlam
40377c791f Remove pre-buildlink and post-buildlink as part of getting pkgsrc ready
for pkgsrc-2004Q4.  The "buildlink" phase was removed for the last branch,
and this is the final cleanup.  "post-buildlink" is now "post-wrapper".
2004-11-28 19:19:51 +00:00
jlam
b87ac57b91 Don't show the currently selected options if there aren't any. 2004-11-28 08:00:51 +00:00
jlam
9636b9d697 Reverse the tests so that we actually check for the existence and not
the non-existence of the library -- this more accurately reflects what
we want to say.
2004-11-28 05:44:34 +00:00
grant
e71f192b37 CFLAGS+=-ma because most packages expect alloca to be available and
this makes it so with xlc.
2004-11-27 15:28:34 +00:00
xtraeme
ce8b80770c Remove "LYNX_SCREEN_LIB" option, not supported by the lynx package right
now, use PKG_OPTIONS.lynx+=foo bar instead.
2004-11-27 08:47:36 +00:00
jlam
add5eb0d1d Output the currently selected options after telling the user which
options are available.
2004-11-27 04:50:55 +00:00
jlam
172a3cdee1 Match NetBSD-2.x_RCn as well as NetBSD-2.x. 2004-11-26 21:04:46 +00:00
jlam
061ff7543b Move the section that defines DLOPEN_REQUIRE_PTHREAD outside of the
CHECK_BUILTIN.dl-protected section so that it's value can be usd after
dlopen.buildlink3.mk is included.  This should fix PR pkg/28422.
2004-11-26 17:42:42 +00:00
jlam
f96609e939 Check that USE_BUILTIN.dl is "yes", not that it's just defined. 2004-11-26 09:32:06 +00:00
jlam
bdbcf6f038 Don't auto-add -ldl to LIBS since most GNU configure scripts already
check for this condition.
2004-11-26 08:26:51 +00:00
jlam
96786425e0 Don't append BUILDLINK_CFLAGS.pthread to itself if pthread.builtin.mk
gets included multiple times.
2004-11-26 08:18:30 +00:00
jlam
b47bc866c0 Move all dlopen-handling code into dlopen.{builtin,buildlink3}.mk. 2004-11-26 08:15:25 +00:00
jlam
399f4ba496 More tightly integrate the OSF1 changes into pthread.builtin.mk by using
more feature tests instead of OPSYS tests.
2004-11-26 08:12:59 +00:00
jlam
825f6216b4 Split dlopen.buildlink3.mk into two files: dlopen.buildlink3.mk, which
is included by packages that use dlopen(), and dlopen.builtin.mk,
which checks for the presence of built-in dl*() functions.  On Darwin,
including dlopen.buildlink3.mk will cause the devel/dlcompat package
to be used if the base system lacks a dlcompat library.
2004-11-26 07:05:19 +00:00
jlam
67e7448da0 Fix the "MACHINE_PLATFORM" patterns by appending "-*". 2004-11-26 01:58:47 +00:00
jlam
a3af230352 Define DL_{CFLAGS,LDFLAGS,LIBS} as compiler/linker flags for building
or linking code that uses dl*() functions.  Also re-structure a bit to
pave the way for a future dlopen.builtin.mk that handles -ldl on some
platforms and dlcompat on Darwin.
2004-11-26 01:56:17 +00:00
jlam
f551f31daf Missing a make variable modifier. 2004-11-26 01:40:42 +00:00
jlam
72d942ad5a Add missing quotes. 2004-11-26 01:22:31 +00:00
jlam
cf6bd5fad8 Don't recursively define _DLOPEN_REQUIRE_PTHREADS. 2004-11-25 22:18:34 +00:00
jlam
b0427900c8 Perl is all about loadable perl modules, so include dlopen.buildlink3.mk.
If we include pthread.buildlink3.mk, then build with Perl ithreads
support.  Bump the PKGREVISION.

Nuke the perl58-thread package.  The perl package can now be forcibly
built with thread support by setting PERL5_USE_THREADS to "yes".
2004-11-25 22:02:49 +00:00
jlam
3c17831da9 Only include pthreads if we prefer native pthreads. This allows building
pkgsrc without any pthreads if we don't want to.
2004-11-25 21:43:19 +00:00
jlam
2e5e6fbf72 dlopen.buildlink3.mk should be added to packages that use dlopen() to
load shared objects.  Some platforms require pthreads to be linked
into the application if it uses dlopen() or else the applications will
core dump when they dlopen a shared module that _is_ linked with
pthread support.  Including dlopen.buildlink3.mk in a package Makefile
will cause pthread.buildlink3.mk to also be included.

It is up to the package to ensure that PTHREAD_{CFLAGS,LDFLAGS,LIBS}
(defined by pthread.buildlink3.mk) are passed to the compiler when
building/linking the applications, possibly by setting PTHREAD_AUTO_VARS
to "yes" in the package Makefile.
2004-11-25 21:33:36 +00:00
jlam
e2cc31acb2 Default USE_GIF to "yes". This affects graphics/tiff and x11/qt1,
which will now be built by default with the ability to write LZW-compressed
files.
2004-11-25 19:37:58 +00:00
jlam
3bbe73c68a Default PTHREAD_AUTO_VARS to the safer value of "no". Most packages
that use pthreads already implement their own probes for pthreads, so
we don't need to auto-add the compiler/linker flags.
2004-11-25 19:34:03 +00:00
wiz
c48a7167ce Sync MASTER_SITE_SOURCEFORGE with reality. 2004-11-24 15:36:34 +00:00
jlam
4952f1a79c Don't hard-code "lang/perl58". Instead, use the value of PERL5_PKGSRCDIR
which is computed based on whether perl or perl-thread should be the
default.
2004-11-23 19:44:02 +00:00
jlam
19c97f1019 Fix the find command used to print out all of the .broken* files. It now
prints out both the .broken.html and .broken.work.html files instead of
just the latter.
2004-11-23 19:31:46 +00:00
jlam
b72e03c8a5 Use CCPATH instead of referring to the C compiler by its full path in
multiple places.
2004-11-23 05:32:22 +00:00
jlam
539fa6a01b Whitespace changes. 2004-11-23 05:24:28 +00:00
dmcmahill
1efd592495 add {CC,CXX,FC,F77}PATH variables which give the complete path and
name of the {CC,CXX,FC,F77} compilers.  These will be used by pkgs
which need to know which compiler and where it is at run time.

Approved by jlam@
2004-11-23 00:46:26 +00:00
wiz
43de7f8bc0 Now that no package uses USE_GCC_SHLIB any longer, remove support
for it from compiler.mk.

Move the variable of the same name used by compiler/gcc.mk and
the gcc* buildlink3 files into private namespace (_USE_GCC_SHLIB).
2004-11-22 22:24:46 +00:00
wiz
1fdf9e5bd6 Remove a duplicate gnome mirror, and fix path on a second one. 2004-11-22 17:12:42 +00:00
wiz
1d2852cb72 Change perlfiles var to look for files from perl*,
not only perl, so that perl-thread files are not marked as leftovers.
2004-11-22 12:53:56 +00:00
grant
b4ba1b2d00 add OSF1 bits. 2004-11-20 23:30:22 +00:00
kim
f22d973c2f Add AMANDA_TMP 2004-11-20 23:09:48 +00:00
grant
4321a9c877 quieten spurious broken pipe output from cc. 2004-11-20 05:54:36 +00:00
grant
cda1ab8d17 add pthread glue for OSF1, patch from Tobias Nygren. 2004-11-20 05:19:12 +00:00
grant
c047f6663e backout cvs misfire 2004-11-20 04:38:09 +00:00
grant
919cb8bddb add framework support for Tru64 and the Compaq C compiler.
patches provided by Tobias Nygren <tnn at netilium dot org> with
minor changes by me.
2004-11-20 04:37:08 +00:00
tv
e281d8ed2c Remove PERL5_USE_THREADS setting now that the default is perl58-thread. 2004-11-19 13:10:05 +00:00
xtraeme
838274a29f OpenBSD's pax(1) doesn't support -O flag, so use the pkgsrc one. 2004-11-18 04:22:39 +00:00
xtraeme
78d6464808 OpenBSD was fork()ed from NetBSD, so this uses -lossaudio as well. 2004-11-18 04:00:50 +00:00
jlam
a96518e2b0 Remove some obsolete/deprecated variables that have been in this file
for over two years.  They're officially dead now for the upcoming
branch and beyond.
2004-11-17 23:28:12 +00:00
jlam
55ba984801 Move selection of the default perl58 (whether it is threaded or not) into
bsd.pkg.mk.  lang/perl58 now always builds perl58, while lang/perl58-thread
builds perl58-thread (POLS).  Fixes PR pkg/28343.
2004-11-17 22:55:14 +00:00
jlam
319f9f72eb PTHREAD_AUTO_VARS is "yes" or "no" for whether the values of the
variables PTHREAD_{CFLAGS,CPPFLAGS,LDFLAGS,LIBS} should be automatically
added to their respective variables.  Defaults to "yes".

Packages that only require some parts to be linked the the pthreads
compiler/linker options should set this to "no" and selectively add
those options via patches to the right makefiles..
2004-11-17 21:05:24 +00:00
jlam
b990d523e9 Generalize BUILDLINK_AUTO_LIBS.<pkg> to BUILDLINK_AUTO_VARS.<pkg>,
which is "yes" or "no" for whether the values of any of
BUILDLINK_{CPPFLAGS,CFLAGS,LDFLAGS,LIBS}.<pkg> should be appended
automatically to their respective variables.
2004-11-17 21:01:00 +00:00
jlam
9418b1ff37 BUILDLINK_AUTO_LIBS.<pkg> is "yes" or "no" for whether BUILDLINK_LIBS.<pkg>
should automatically be appended to LIBS.  It defaults to "yes".
2004-11-17 19:40:35 +00:00
tv
069c8dffba For some reason EVAL_PREFIX is not properly using the _DEFAULT values, so
re-add the ?= assignments.  (Will be fixed properly later.)
2004-11-17 17:18:33 +00:00
tv
f1b2b2d6a7 Don't check _*PREFIX/bin for the requested compiler hook program. If
PKGSRC_COMPILER requested it, assume that it's available, so that
compilation will (properly) fail if the hook program is somehow not
correctly installed.
2004-11-17 17:14:43 +00:00
jlam
81e4749b3f If we don't need to link against -ldb or -ldb1 (because the DB functions
are a part of libc), then remove "-ldb" altogether.  This should fix
GNU configure scripts that assume you need to at least link against
"-ldb".
2004-11-17 15:12:08 +00:00
jlam
b2320b8957 Preserve the .work.log file from a broken build as .broken.work.html
in the package directory, and add a link to it from .broken.html at
the point where the build fails.  Also adjust the auxilliary scripts
to handle/cleanup .broken.work.html files.

This should enhance the ability of developers to debug broken builds
by providing important information about what is happening as a build
progresses and fails.
2004-11-16 18:34:12 +00:00
tv
4b5d899ef8 Revert previous (re-add common CPP_PRECOMP_FLAGS). For consistency, also
move usage of _USER_DEPENDS and _OPSYS_MAX_CMDLEN to bsd.pkg.mk.
2004-11-16 18:04:00 +00:00
tv
2e3f2421db CPP_PRECOMP_FLAGS is a Darwinism only. Move its frobbing of CPPFLAGS to
platform/Darwin.mk (simplification).
2004-11-16 16:21:40 +00:00
jlam
d1152688ba If we're using db1, the create a compatibility header db_185.h that is
in newer Berkeley DB packages.
2004-11-15 18:23:40 +00:00
jlam
581bc42843 Whitespace nits. 2004-11-15 18:14:10 +00:00
jlam
9572207dcf Store the actual library options in BUILDLINK_LDADD.db1 and append that
to BUILDLINK_LIBS.db1.  This ensures that BUILDLINK_LDADD.${BDB_TYPE}
always resolves to the correct library options.
2004-11-15 18:01:58 +00:00
jlam
b67b0725c4 Rework the Berkeley DB detection in buildlink3:
* Add a db1.builtin.mk file that detects whether DB-1.85 functionality
    exists in the base system, and remove the distinction between
    "native" and the other Berkeley DB packages -- we now refer to
    db[1234].  This paves the way for any future databases/db1 package.

  * USE_DB185 shouldn't need to be set by any packages -- its correct
    value is now automatically determined by bdb.buildlink3.mk depending
    on whether we explicitly request db1 or not.  By default, if you
    include bdb.buildlink3.mk, you want DB-1.85 functionality and
    USE_DB185 defaults to "yes", but if you explicitly remove db1 from
    the list of acceptable DBs, then USE_DB185 defaults to "no".

  * Set BDB_LIBS to the library options needed to link against the DB
    library when bdb.buildlink3.mk is included.

  * We only add the DB library to the linker command automatically if
    we want DB-1.85 functionality; otherwise assume that the package
    configure process can figure out how to probe for the correct
    headers and libraries.

Edit package Makefiles to nuke redundant settings of USE_DB185.
2004-11-15 17:54:49 +00:00
tv
d1383b985f Set some _OPSYS_SHLIB_TYPE to precisely 'ELF' on platforms where a.out is
not being used by pkgsrc at all.  This saves some build time in
show-shlib-type.
2004-11-15 14:48:18 +00:00
jlam
4c79895c31 Add a mini-framework to centralise the handling of "hacks" for getting
particular packages to compile correctly.  bsd.hacks.mk auto-includes
the hacks.mk file in the current directory.  An example hacks file:

-------------8<-------------8<-------------8<-------------8<-------------
.if !defined(FOO_HACKS_MK)
FOO_HACKS_MK=	defined

### [Sun Nov 14 02:08:31 EST 2004 : jlam]
### arm GCC 2.95.x optimisation bug tickled when compiling
### lib/funkyfile.c.  Require a more recent version of GCC as a
### workaround and patch lib/funkyfile.c (patch-ae).
###
.if !empty(MACHINE_ARCH:Marm*)
PKG_HACKS+=	optimisation
GCC_REQD+=	3.0
.endif

.endif  # FOO_HACKS_MK
-------------8<-------------8<-------------8<-------------8<-------------

The comment which heads each individual hack should timestamp when the
hack was added and describe the bug that requires the hack.  By
separating out hacks to a separate file, we should be able to simplify
package Makefiles so that they are more readable.
2004-11-14 07:23:07 +00:00
jlam
3586ec85db Move PREFER_NATIVE_PTHREADS default setting to from pthread.buildlink3.mk
to defaults/mk.conf, where all defaults should live.
2004-11-12 22:34:15 +00:00
jlam
8a7d3d2ec6 Don't expand .la files in PLISTs that are symlinks. The expansion should
only occur with the real .la file.  This avoids the problem noted by
Greg Troxel in:

	http://mail-index.netbsd.org/tech-pkg/2004/11/12/0018.html
2004-11-12 21:21:08 +00:00
sketch
cc78d56bb6 Introduce LIBABISUFFIX for platforms which require ABI-dependant library paths. 2004-11-12 20:25:41 +00:00
jlam
92eea4d8e0 Insert the default values for WRAPPER_DEBUG and WRAPPER_UPDATE_CACHE as
defaults within the wrapper script.  This avoids requiring those two
variables to be defined in the shell environment for the correct defaults
to take effect.
2004-11-12 16:27:57 +00:00
jlam
d13b06f317 Bulk builds should be defaulting to building perl58. 2004-11-12 15:39:22 +00:00
jlam
af591191d2 Remove redundant uses of PTHREAD_{CFLAGS,LDFLAGS} now that they're added
automatically by pthread.buildlink3.mk.  Also, factor out the pthread
library out of PTHREAD_LDFLAGS into a standalone variable PTHREAD_LIBS
and use it in packages where necessary (usually the ones that don't
have a GNU configure script).
2004-11-12 06:39:19 +00:00
jlam
153b3f00b7 (1) Split out the native (built-in) pthread detection in
pthread.buildlink3.mk into a separate file, pthread.builtin.mk,
    that is handled using the usual builtin.mk logic.

(2) If pthread.buildlink3.mk is included by a package Makefile, then
    automatically add the necessary compiler and linker flags to
    compile and link pthread-enabled/reentrant code.  For native
    pthreads, this means passing -pthread to the compiler and linker.
    For the userland pthread replacement, we pass -D_REENTRANT and
    -lpthread instead.

(3) Add PTHREAD_{CFLAGS,LDFLAGS,LIBS} in both CONFIGURE_ENV and MAKE_ENV
    when pthread.buildlink3.mk is included so that the configure and
    build processes can use these values.  Remove these definitions
    from bsd.pkg.mk since PTHREAD_* variables are all declared within
    pthread.buildlink3.mk.

XXX For now, PTHREAD_LDFLAGS is a superset of PTHREAD_LIBS until
XXX packages that use use PTHREAD_LDFLAGS can be fixed.
2004-11-12 05:20:01 +00:00
jlam
e5817e65a2 Teach the native linker to accept "-pthread" by silently dropping it.
This allows "-pthread" to be added to LDFLAGS for use by both the
compiler and the linker.
2004-11-12 05:02:41 +00:00
jlam
88b9364ed3 Add a new variable BUILDLINK_LIBS.<pkg> which contains a list of -l...
options (library options) to be appended automatically to LIBS when
building against <pkg>.  LIBS is used by GNU configure scripts to note
the library options that are automatically added to the link command
line.
2004-11-12 04:57:31 +00:00
tv
6d01962e98 Well, the double libtool BUILD_DEPENDS is already annoying people and I'd
rather not force BUILD_DEPENDS through the (slow) reduce-depends dance, so
resurrect LIBTOOL_REQD (though in a bit more succinct manner).
2004-11-12 02:05:20 +00:00
tv
e8e85c8003 Bump that libtool version number back down to nb1 where it was in previous. 2004-11-11 22:34:12 +00:00
tv
d8c17c9d39 Change the way _OPSYS_LIBTOOL_REQD works slightly.
Rather than replacing the LIBTOOL_REQD value, add two BUILD_DEPENDS lines.
That way, the higher numbered BUILD_DEPENDS wins -- allowing the version
in bsd.pkg.mk to be bumped beyond the value in the platform .mk and still
be enforced properly.
2004-11-11 22:32:45 +00:00
tv
a09be89d5a NetBSD now needs libtool-base-1.5.10nb6. 2004-11-11 22:29:40 +00:00
tv
91907b6376 -pthread is invalid for Interix gcc. Add a failure for it so that
portability oopses can be caught earlier.
2004-11-11 00:49:01 +00:00
jlam
8f7405c2b5 Correct debugging output to show the actual script name. 2004-11-10 21:08:11 +00:00
jlam
2d6f90d42d Backout previous pending further testing. There are rumors of problems
with -pthread/-pthreads GCC options detection that may be difficult to
overcome.
2004-11-10 18:46:07 +00:00
jlam
45aebed3b7 Allow BUILDLINK_BUILTIN_MK.<pkg> to point to the builtin.mk file for the
specified package.  This defaults to the builtin.mk file in the pkgsrc
package directory.
2004-11-10 17:39:03 +00:00
jlam
0d1a6b1c29 If we are using native pthreads, then add "pthread" to BUILDLINK_PACKAGES
so that the buildlink3 framework knows to use the various
BUILDLINK_*.pthread variables.  This fixes a long-standing and long-
overlooked bug in pthread.buildlink3.mk that has existed since the
buildlink3 framework was initially committed.

As a result of this change, modifications to packages to introduce
PTHREAD_{CFLAGS,LDFLAGS} in various places to either the configure script
or into Makefiles are probably no longer needed.
2004-11-10 17:29:37 +00:00
sketch
94f891acb9 SunPro understands -Wl,* and passes to the relevant backend, so don't bin it.
Fixes at least graphics/netpbm.
2004-11-10 16:20:40 +00:00
shannonjr
7ce1b962f3 Update _GCC_DIST_VERSION to 3.4.3 2004-11-10 12:04:59 +00:00
jlam
17f45b2ca7 The "transform" file is used to transform arguments on the command line.
The "untransform" file is used to unwrap *-config files and *.lai files.

The transform file can be much stricter about what command line arguments
should look like, so take advantage of that to fix the "libpath" and
"libpath-in-define" regression tests.
2004-11-09 17:16:16 +00:00
jlam
8542f8be3d g/c unused variable _ws_sep. 2004-11-08 22:29:19 +00:00
jlam
a684410450 Whitespace fixes. 2004-11-08 22:26:31 +00:00
jlam
5deded3d41 Remove unnecessary argument checks. 2004-11-08 22:24:22 +00:00
tron
69a269a87e Remove "aleron.dl.sourceforge.net" from "MASTER_SITE_SOURCEFORGE"
because it keeps failing or more than a week.
2004-11-06 15:58:50 +00:00
wiz
e265fbd577 Add a switch SUSE_PREFER which can be set to 9.1 to get
suse91 packages by default.
2004-11-05 13:46:39 +00:00
wiz
6af35801a0 Some updates for DragonFly from Todd Willey via tech-pkg. 2004-11-02 22:24:35 +00:00
agc
ec3956e4aa Correct whitespace after UPDATE_RUNNING changes 2004-11-02 08:31:45 +00:00
erh
00d045e33b Set UPDATE_RUNNING=YES when deinstalling due to a update or replace target.
Use this to trigger appropriate args to pkg_delete so PKG_PRESERVE packages
can be upgraded.
2004-11-02 00:03:09 +00:00
wiz
e8cb326b9f Add DragonFlyBSD support, provided by Todd Willey on tech-pkg. 2004-10-31 22:05:02 +00:00
tv
2e2cb6b1ef Clarify previous (missing a word). 2004-10-29 15:15:50 +00:00
tv
6e04a29aad Add a block comment to track the base addresses of Interix shlibs as used
in pkgsrc.  (Since they are non-PIC, they require better than just default
base addresses in some fashion, or else face runtime text relocation.)
2004-10-29 15:15:10 +00:00
tv
ce5ae8b6ad Collapse ROOT_CMD a little; it's possible to make all invocations do the
$(id -un ...) dance for canonical naming.
2004-10-29 14:53:39 +00:00
darcy
9a93a222e9 Changed name of variable from file to cfile (config file) so that pkglint has
one less thing to complain about in every package that includes this file.
2004-10-29 12:30:20 +00:00
tv
2c8efb738f Fix shlib execute perm pattern (was broken after 1.1537).
Also, to address concerns raised on tech-pkg, only issue the warning about
execute permission if PKG_DEVELOPER is set.
2004-10-28 14:05:56 +00:00
xtraeme
3c76f3a70b mysql.bl3.mk suggested by Jaromir Dolecek (jdolecek@):
Default mysql package if there isn't any installed is mysql-4.1.7
(databases/mysql4-client)

You can choose a mysql package via MYSQL_VERSION_DEFAULT, it will
accept the following values:

MYSQL_VERSION_DEFAULT=41 # <- mysql-4.1.7
MYSQL_VERSION_DEFAULT=40 # <- mysql-4.0.21
MYSQL_VERSION_DEFAULT=30 # <- mysql-3.5.x
2004-10-28 11:28:27 +00:00
wiz
c3f7f45921 Fix path to CPAN on cloud9. 2004-10-28 09:53:44 +00:00
recht
b83ac5ddfa - Allow CXXFLAGS to be set on a per-OS basis (read added to OPSYSVARS).
- Set CXXFLAGS in the MAKE_ENV (if defined).
2004-10-27 21:45:53 +00:00
tv
28cb3985eb Don't chmod shlibs that are symlinks; fixes issue noted by <grant@netbsd.org>.
Also don't do the ldd-REQUIRES dance unless SHLIB_HANDLING=YES (because you
don't want to run a native ldd on a foreign binary).
2004-10-27 13:47:41 +00:00
grant
91c3a1ad95 whitespace police and tidyup of PLIST_SUBST. no functional change. 2004-10-27 10:41:43 +00:00
xtraeme
f20f07a4bf Add missing PKG_SKIP_REASON when ${_PGSQL_VERSION} is defined, but
the package is not postgresql "74" or "73".
2004-10-26 21:39:33 +00:00
xtraeme
a31423607e Modify the comment about FETCH_RESUME_ARGS a bit, to sync with
FETCH_OUTPUT_ARGS.
2004-10-26 21:22:51 +00:00
xtraeme
45b3b684a4 2nd round for PKG_RESUME_TRANSFERS:
* Add FETCH_OUTPUT_ARGS (new option, defaults to "-o" with NetBSD's ftp(1))
* Use FETCH_OUTPUT_ARGS to move the file transfer to a temporary name
 on ${DISTDIR}/${DIST_SUBDIR} with extension ".temp"
* If temporary file matches the checksum recorded in distinfo, move it
 to the original name (removing temp file)

For example, if you want to use PKG_RESUME_TRANSFERS with wget
(pkgsrc/net/wget), the following vars should be defined in mk.conf:

FETCH_CMD=wget
FETCH_RESUME_ARGS=-c
FETCH_OUTPUT_ARGS=-O

No need to set these vars when using defaults (NetBSD's ftp(1))
2004-10-26 21:14:59 +00:00
lukem
474141b293 add hostname to Subject: of PKGSRC_MESSAGE_RECIPIENTS email 2004-10-26 02:23:37 +00:00
jmmv
f604984f30 Introduce the PKGCONFIG_OVERRIDE_STAGE variable to let a package
specify when the pkgconfig substitutions have to be applied; defaults
to pre-configure.  This is useful because some packages modify the .pc
files during the build process (adding -L flags), so they have to wait
until the build finishes to add the correct rpaths.

Also modify the regular expression in PKGCONFIG_OVERRIDE_SED to match
and fix multiple -L flags, instead of just one.
2004-10-25 18:02:20 +00:00
tron
fdf24cdaf0 Add mirror on "ftp.fu-berlin.de" to "MASTER_SITE_APACHE". 2004-10-25 07:48:22 +00:00
agc
a920ff2b3c Allow the xsrc directory to be specified on the command line, defaulting to
/usr/xsrc if not specified, and check for its existence.
2004-10-24 22:54:25 +00:00
ben
780b5f9c9f Remove ftp://ftp.wustl.edu/packages/TeX/ from MASTER_SITE_TEX_CTAN for now,
as the /packages directory no longer exists.
2004-10-22 13:32:18 +00:00
tv
d581ad2ae3 Only allow LIBTOOLIZE_PLIST=no if USE_LIBTOOL is *not* used, setting BROKEN
if both are specified.
2004-10-21 17:18:44 +00:00
tv
10bbfcf5b1 Put back LIBTOOLIZE_PLIST, which I meant to do but didn't commit. This is
needed by some packages currently which install broken .la files or
otherwise don't work with the transform logic yet.
2004-10-21 17:00:10 +00:00
martti
827682d60f Added missing / 2004-10-20 05:42:55 +00:00
ben
056dbbb3f1 Translate MACHINE_ARCH and LOWER_ARCH from ppc to powerpc in the case of
Linux, to be more consistent with other platforms.
2004-10-19 23:16:47 +00:00
tv
b271937c8b Propagate $ECHO, $GREP, $SORT to print-la-libnames; fixes this on IRIX.
Noted by Georg Schwarz <geos@epost.de>.
2004-10-16 22:37:29 +00:00
tv
e2231831d1 Oy. For some reason, when doing :O:u, -L and -R options are stripped
completely (they say "cached" but never come out the other side).  So
revert previous, hopefully to find a resolution later....
2004-10-14 20:22:21 +00:00
tv
4b8e5d9b9a Big speedup hack: Sort and uniqify ${_WRAP_TRANSFORM_CMDS}. Eliminates
many (hundreds, in some packages) multiple identical transformations.
2004-10-14 20:00:30 +00:00
grant
a2123a466b make sure _TOOLS_HAS_GNU.<tool> is initialised. from Michael van Elst
in PR pkg/27258.
2004-10-14 11:41:40 +00:00
grant
caabec7172 fix a comment 2004-10-14 09:56:52 +00:00
grant
4f6d6c2740 devel/yacc -> devel/bison. there is no such package as devel/yacc.
(how did this ever work?)
2004-10-14 09:54:04 +00:00
grant
f8258b249d handle the operating system having GNU yacc (actually bison) and
explicitly undef YACC.

YACC?=yacc is set in sys.mk, but this interferes with building some
packages that require bison because they try ${YACC} and fail.
2004-10-14 09:51:43 +00:00
tv
d133a216ec Oy, what a hack. But then, so is Interix....
On Interix, force inclusion of devel/ncurses/buildlink3.mk from
mk/curses.buildlink3.mk.  This forces inclusion of its builtin.mk too.

In devel/ncurses/builtin.mk, if using Interix's builtin ncurses, always
transform -lncurses to -lcurses.  (-lncurses is static, but -lcurses is
shared; we want the shared version.)
2004-10-13 20:10:31 +00:00
tv
888be43a6a Bump LIBTOOL_REQD back to 1.5.10nb1. This ensures that folks who built
1.5.10 during the "broken" period (before the workaround and wrapper fix)
have to upgrade to make it work correctly.
2004-10-13 18:42:19 +00:00
tv
7f3683f1ed For the ELF form, make sure shlibs are installed +x. If not, issue a
warning, fix it, and move along.
2004-10-13 17:52:46 +00:00
tv
9a8ac08ae7 Use /bin/test. The /bin/sh builtin has some bugs with symlinks. 2004-10-13 17:50:01 +00:00
tv
53860a0446 Make strip/no-strip choice more consistent:
Move check for INSTALL_UNSTRIPPED to the platform/*.mk files, alongside
existing check for DEBUG_FLAGS.
2004-10-13 15:31:31 +00:00
tv
78745eb4bf Bump gzip-base to 1.2.4b for security fix. 2004-10-12 18:29:25 +00:00
tv
b0f7b8b308 Automatic inclusion of gzip-base needs a version number in the BUILD_DEPENDS. 2004-10-12 17:32:46 +00:00
tv
728ff6632f Fix _PLIST_AWK_LIBTOOL not to pass @comment lines to print-la-libnames. 2004-10-12 14:34:57 +00:00
tv
0a4331633b libmikmod is certainly not the only package using USE_ESOUND any longer.... 2004-10-12 13:58:22 +00:00
uebayasi
37f4171f37 ulimit' can't parse localized messages of "unlimited"; force ulimit -H
...' to print out the C-locale message.  Problem reported by Hiroyuki
Nakaji.
2004-10-12 08:38:19 +00:00
tv
9e2ecafeae Another Interix fubar workaround: C++ libs weren't linking in libtool
because Interix installs completely hosed .la files for libstdc++ and
libsupc++.  Make libtool instead trust g++ to DTRT.
2004-10-12 04:41:39 +00:00
tv
0755bfeadb Let's do another _TOOLS_REPLACE_OPSYS dance for Interix. It ships with a
version of gawk in /usr/contrib/bin, so use that instead.
2004-10-12 01:17:36 +00:00
tv
b546e8c0c5 Upon further digging, it appears that Interix just needed a
_TOOLS_REPLACE_OPSYS setting to pick up nbsed in tools.mk; no need to
throw more into autoconf's environment.
2004-10-11 23:38:53 +00:00
tv
d769d069b3 A couple packages overflow Interix's sed in an autoconfitized configure
script.  Since all platforms define a "reasonable" sed(1), it seems
reasonable to pass this info to ./configure as well.

While here, convert LIBS="${LIBS}" to the proper LIBS=${LIBS:Q}.
2004-10-11 23:27:18 +00:00
reed
15fee44a6c Make it so RCD_SCRIPTS_EXAMPLEDIR is a directory relative to
${PREFIX}. It is not an absolute path because with the automatic
addition of the entry to the PLIST would be bogus if someone
defined it to some RCD_SCRIPTS_EXAMPLEDIR outside of PREFIX.
(This may cause multiple rc.d directories if there are multiple
PREFIXes, but I think that is fine.)

Note that at this time, this doesn't change the RCD_SCRIPTS_EXAMPLEDIR
default directory. This will change soon.

Most of this has been in use for over a year.

Also some of this is from Greg Woods. Thank you Greg.

I will next update a few other references to RCD_SCRIPTS_EXAMPLEDIR.
2004-10-11 22:04:19 +00:00
reed
1f144be250 Add RCD_SCRIPTS_EXAMPLEDIR to the MESSAGE_SUBST. www/tinyproxy's MESSAGE
used it but it was not defined. Other MESSAGE files use it too.
2004-10-11 21:49:00 +00:00
tv
2f4cc60680 Add MASTER_SITE_CYGWIN, to be used for some emulators/cygwin_* packages
(mainly to provide Win32 gateway services for Interix hosts).
2004-10-11 19:44:06 +00:00
tv
c12846d533 Make -export-symbols work properly under Interix. (The Interix ld(1) does
not implicitly add `_' to -retain-symbols-file values, so we have to add
it manually before doing the physical link.)
2004-10-11 16:51:56 +00:00
tv
50627baf77 Add win32-jdk. While here, sort the per-JVM metadata sections by JVM name. 2004-10-11 13:38:18 +00:00
jmmv
8b4ceebcb8 Add az_IR locale, initially used by gtk2 2.4.11. 2004-10-09 09:17:12 +00:00
tv
26bca1504d Add a comment explaining that bizarre $$(id -un ...) construct in ROOT_CMD. 2004-10-09 04:12:58 +00:00
tv
61fabf5361 Move -D_ALL_SOURCE for Interix, required for nearly every compilation, from
the funky CPPFLAGS assignment into the new wrapper framework.
2004-10-09 03:49:13 +00:00
tv
e186c85bad devel/patch is needed by some platforms in order to build ccache, so don't
cache that one either.
2004-10-09 03:48:31 +00:00
tv
af06ad46bd Add EXTRACT_ENV.bin, allowing things to be passed into the environment of
a ".bin" extraction (to be used shortly by lang/sun-jre15).

This isn't a generic EXTRACT_ENV, as the rest of the extraction tools don't
currently need such a knob.  The most common use would be to set things in
the env of a binary-only distribution to make for silent or otherwise
twiddled package extraction.
2004-10-09 03:47:13 +00:00
jlam
73324346e7 Drop the extraneous comma in "-Wl,-R,/dir" and turn it into "-Wl,-R/dir".
Do the same for options that look like "-Wl,-L,/dir".
2004-10-08 21:53:53 +00:00
xtraeme
8dfcb6fabd X11_TYPE=xorg:
Blah, again the .pc files problem with compositeext and fixesext, we have
the headers but not these files... remove them.
2004-10-08 04:47:52 +00:00
xtraeme
53f32a3d09 Use builtin versions for Xcomposite and compositeext for X11_TYPE=xorg
users.
2004-10-08 04:00:37 +00:00
xtraeme
21a0d4da99 Changes for meta-pkgs/xorg and friends:
Looks like that cannot we use render/randrext builtin versions for
meta-pkgs/xorg, because of missing .pc files required to build Xrender
and friends, remove them from here.

Closes PR pkg/27129 by Cristopher Richards, thanks for the info, I thought
they were installed by xorg-libs... (!)
2004-10-08 00:58:25 +00:00
jlam
b74c7e3473 Make PKGSRCDIR a read-only value. This avoids problems where the user
decides to set PKGSRCDIR to a relative path as seen in several old PRs
and which prompted the original switch to make PKGSRCDIR private in
revision 1.881 of bsd.pkg.mk.
2004-10-07 13:42:26 +00:00
jlam
0f9ae0638a Remove _PKGSRCDIR now that we have PKGSRCDIR (as per previous commit). 2004-10-07 03:03:09 +00:00
jlam
17c3aafac1 * Make PKGSRC_TOPDIR a private variable by renaming it to _PKGSRC_TOPDIR,
as it's only used internally by bsd.prefs.mk.

* Make _PKGSRCDIR a public variable by renaming it to PKGSRCDIR.
  Also, generate its value from ${_PKGSRC_TOPDIR} so it's less fragile
  than the old method of stripping off the last two components of
  ${.CURDIR}.  PKGSRCDIR may now be used after bsd.prefs.mk is defined.

* Change all references to _PKGSRCDIR to PKGSRCDIR.
2004-10-07 02:01:37 +00:00
jlam
095767c3c2 _DEPENDS.${_path_} can contain more than one dependency pattern, so split
along whitespace when appending ":../../category/pkgdir".  Fixes problem
noticed when running "make show-depends-dirs".
2004-10-06 21:51:41 +00:00
jlam
f8946737f1 Climb up the directory tree to find the top, instead of guessing where
the top and searching on the way down.  Thanks Gavan!
2004-10-06 20:59:40 +00:00
jlam
dffc19378a Reorganize some of the files under pkgsrc/mk:
(1) defs.${OPSYS}.mk --> platform/${OPSYS}.mk.

The "platform" subdirectory is where all of the ${OPSYS}-specific
infrastructure logic should reside.

    (2) bsd.pkg.defaults.mk --> defaults/mk.conf
        bsd.pkg.obsolete.mk --> defaults/obsolete.mk

Renaming bsd.pkg.defaults.mk to defaults/mk.conf is to mimic the way
that NetBSD has /etc/rc.conf as well as /etc/defaults/rc.conf, where
the latter is a full list of user-settable variables, and the two
files share the same name to reinforce the fact /etc/defaults/rc.conf
can be directly copied in place as /etc/rc.conf.  This is the same
relationship shared by defaults/mk.conf and /etc/mk.conf.
2004-10-06 20:51:47 +00:00
tv
fe9f6ce2c3 Add SUN_JRE15_USE_JCE (forgot this file in the commit). 2004-10-06 19:47:01 +00:00
grant
2644aa2b45 call the C compiler as 'xlc' so libtool mostly DTRT. 2004-10-06 13:56:46 +00:00
grant
b761a1f885 add initial support for IBM's XL C/C++ compiler. tested with version
6.0 on Mac OS X 10.3.5.

to use XL C, set PKGSRC_COMPILER=xlc in mk.conf. XLCBASE defaults to
/opt/ibmcmp/vacpp/6.0 (the default installation location on OS X),
this can be overridden in mk.conf too.

this is a work in progress - some simple packages can be built, but
there are still lots of issues that need to be worked through.
2004-10-06 09:49:53 +00:00
jlam
1191106c78 Check for presence of the libname listed in the libtool archive before
outputting it to stdout.
2004-10-05 22:34:07 +00:00
jdolecek
892c99e9e4 the distfile mirror on ftp.cz.NetBSD.org is no longer functional 2004-10-05 18:03:51 +00:00
jlam
087adf00de Move the "dependency reduction" code from buildlink3 to bsd.pkg.mk so
that all of pkgsrc can benefit from removing redundant dependencies.
The code is encapsulated in a new file reduce-depends.mk which is
included by bsd.pkg.mk after all dependencies have been specified.
2004-10-05 15:28:50 +00:00
cube
2b1dbffc46 Add man/fi, required for an upcoming package. 2004-10-04 20:47:41 +00:00
jlam
f2cb35cf1e Add a scan script that checks for "-v" on the command-line, and prevents
the wrappers from adding extra flags to the command-line if "-v"
exists.  This makes "g++ -v" return the same error code for both the
wrapper and the real executable and fixes the problem with the
libtool-base build not correctly detecting the C++ compiler and thus
not adding the CXX configuration tag to the final libtool script.

Downgrade LIBTOOL_REQD to 1.5.10 since the newest version isn't needed
with this change.
2004-10-04 20:28:29 +00:00
tv
4bee2600f9 Fix completely hosed test for g++ when CXX=g++. The old test worked fine.
Revert until the hosage is tracked down and eliminated at the source.

(Bump to libtool-1.5.10nb1, and make this the required version.)
2004-10-04 19:48:09 +00:00
jlam
b339673bcc When transforming from ${LOCALBASE} into ${BUILDLINK_DIR}, convert
into the mangled name for ${BUILDLINK_DIR} as an intermediate step,
then convert the mangled name into ${BUILDLINK_DIR} at the end.  This
avoids problems with too many substitutions when ${BUILDLINK_DIR} is
a subdirectory of ${LOCALBASE}, as noted in PR pkg/27104.
2004-10-04 17:57:08 +00:00
jlam
5b6ee3d6b7 Don't cache transformations of "-lfoo" into "rel/path/to/libfoo.la" because
"rel/path/to" can be different each time.  This should fix problems with
building transcode after the wrapper framework was integrated.
2004-10-03 21:39:07 +00:00
hira
da072355cf Don't echo the debug message for the targets whose output is used
by other targets.

OK'd by jlam.  This should close pkg/24377.
2004-10-03 04:24:20 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00