Commit graph

2619 commits

Author SHA1 Message Date
jlam
9e14aa4f47 Update the template buildlink3.mk file so that it may be used for
non-recursive dependencies.  We now use the check:

.if !defined(BUILDLINK_PACKAGES) || empty(BUILDLINK_PACKAGES:Mfoo)
...
.endif

to replace the FOO_BUILDLINK3_MK guards.
2003-09-28 12:51:46 +00:00
jlam
d3196f084c Create _BLNK_{DEPENDS,PACKAGES} that are "uniq"ed versions of
BUILDLINK_{DEPENDS,PACKAGES} and use them throughout bsd.buildlink3.mk.
A lot of processing iterates over these variables and assumes that there
are no repeated items in those lists.
2003-09-28 12:36:52 +00:00
jlam
baf8baf9b8 Rearrange order of the targets for the various helper scripts for the
wrappers, and ensure that they're only defined once.  Also add some more
targets to create the sunpro-* helper scripts.
2003-09-28 10:38:03 +00:00
grant
5a32f4d868 sync comments with reality.
note once again that USE_GCC2/USE_GCC3 must not be defined in package
Makefiles. also note CC_VERSION and provide a usage example.
2003-09-28 09:53:56 +00:00
grant
cd5be5b371 if /usr/lib/libstdc++.la exists, create the corresponding fake libtool
archive in ${BUILDLINK_DIR}/lib so packages can find and use it.

fixes some build problems seen on Slackware Linux 9.
2003-09-28 09:48:00 +00:00
jlam
a9f08159c4 Back out last change related to moving ncurses/buildlink2.mk to
curses.buildlink2.mk.  This was wrong because we _really_ do want to
express that we want _n_curses when we include the buildlink2.mk file.

We should have a better way to say that the NetBSD curses doesn't
quite work well enough.  In fact, it's far better to depend on ncurses
by default, and exceptionally note when it's okay to use NetBSD curses
for specific packages.  We will look into this again in the future.
2003-09-28 09:13:55 +00:00
grant
d5a8f38186 use PKGBASE instead of PKGNAME when printing informational messages
such as "Deinstalling", as this lead to confusing/misleading output
when the (previously) installed pkg has a different version number
than the pkgsrc version.
2003-09-28 08:52:13 +00:00
grant
fadc08de4b set CC and CXX defaults for SunPro when USE_SUNPRO is defined.
the path to cc and CC can be overridden in /etc/mk.conf or on
the command line.
2003-09-27 17:20:38 +00:00
grant
7a71199b50 move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides
support for base system curses/ncurses as well as ncurses itself.

suggested by wiz.
2003-09-27 17:07:34 +00:00
seb
34bb1693e1 Add CVS signature. Noted by reed@. 2003-09-27 14:53:46 +00:00
danw
a191a12a24 don't put ${RPATH_FLAG} in X11_LDFLAGS if _USE_RPATH==no (darwin) 2003-09-25 02:25:12 +00:00
danw
e8c72c625e update required libtool to revision nb15 2003-09-25 02:13:15 +00:00
grant
f8dc52ce38 make CC_VERSION available to packages by including bsd.prefs.mk.
it is of the form 'gcc-<version>' if gcc is being used, or empty
otherwise (for now).

requested by tron.
2003-09-24 12:22:03 +00:00
grant
3351b952f0 back out revision 1.67, as it does not work as it should due to the
way the buildlink2 wrappers are implemented.
2003-09-24 07:40:03 +00:00
itojun
dc88db30ec PATCH_BACKUP_ARG for pre-3.4 (-b <suffix>) 2003-09-24 06:26:21 +00:00
grant
ca89371599 remove redefine of _GCC_PREFIX, whitespace fix. 2003-09-24 03:01:02 +00:00
dmcmahill
2fbd5a92d4 kaffe now works on alpha 2003-09-23 20:56:33 +00:00
jlam
c267c3f898 Do a better job of hiding unwanted libtool archives in a mixed
buildlink2/buildlink3 world.  We "buildlink" libtool archives into
${BUILDLINK_DIR} and instruct libtool to find those *.la files before
any other ones.
2003-09-23 19:48:22 +00:00
gavan
fbb3e814f9 Work out _GCC_ARCHSUBDIR correctly, using the method from
lang/gcc3/buildlink2.mk
2003-09-23 19:19:33 +00:00
grant
9b40299c51 add a TAR definition for a suitable tar implementation, not
necessarily GNU tar.

XXX GTAR should probably always point to real GNU tar later.
2003-09-23 07:26:22 +00:00
yyamano
d7a4550b36 Use ${BMAKE} instead of make to make this work on non NetBSD platforms. 2003-09-23 01:51:44 +00:00
jlam
887c0518a1 Fix buildlinking of files if BUILDLINK_TRANSFORM.<pkg> is specified. 2003-09-22 19:49:10 +00:00
grant
3adae31d17 don't try to use tools if they haven't been installed yet.
fixes PR pkg/22844.
2003-09-21 17:40:40 +00:00
wiz
dfacdb1019 Test for egcs needs to come first, since egcs -v output also
contains "gcc". From Greg A. Woods in PR 22866.
2003-09-21 16:43:47 +00:00
grant
cda35250fb override AS, AR, CPP and LD unless they are set to absolute path.
avoids relying on having /usr/ccs/{bin,lib} in $PATH.
2003-09-21 14:50:29 +00:00
salo
ca049eaf29 Add two new pure-ftpd variables:
PURE_FTPD_USE_TLS, PURE_FTPD_USE_VIRTUAL_CHROOT
2003-09-20 16:56:10 +00:00
chris
38604ec933 automake.mk only needs to go ../mk/autoconf.mk to find autoconf.mk, not
../../mk/autoconf.mk
2003-09-20 00:46:22 +00:00
jlam
ad2a15d59b Don't have the libtool wrapper add -L<dir> where <dir> is a path in srcdir
to the cache since we do lots of custom post-processing in that case.
2003-09-19 22:49:22 +00:00
jlam
1c72177800 Add some debugging info to determine which wrapper added which lines to the
common cache.
2003-09-19 22:47:34 +00:00
jlam
2848234220 Remove spurious }. 2003-09-19 07:53:45 +00:00
jlam
78c90c14e6 Make BUILDLINK_TARGETS an add-on variable to _BLNK_TARGETS so that the
buildlink-<pkg> targets created by this file are executed before any
buildlink3.mk-provided targets.
2003-09-19 07:39:01 +00:00
grant
80a25a3566 add m4 to the list of tools. 2003-09-19 00:22:09 +00:00
grant
431d728069 fix regex when updating /etc/shells so that eg. "/bin/tcsh" doesn't
mistakenly cause the removal of eg. "/usr/pkg/bin/tcsh". PKG_SHELL
should be an absolute path, anyway.
2003-09-18 23:02:33 +00:00
grant
9fc9274cae explain why including this file in pkg Makefiles is useless. 2003-09-17 19:58:08 +00:00
grant
f694e1e329 honour GCC_REQD by testing $CC -v against it, and only pull in pkgsrc
gcc if required. see the comments for how to use the variables which
influence the decision.

eliminate some spurious shell warnings while I'm here.
2003-09-17 14:37:32 +00:00
itojun
c264af36d0 patch -b <suffix> is obsoleted, use -z <suffix> 2003-09-17 05:28:31 +00:00
itojun
871cc4dcdb binary format detection for OpenBSD. Frederick Bruckman 2003-09-17 05:14:40 +00:00
jlam
399f83c526 Introduce a new variable "CONF_DEPENDS" for pkgviews: a package's
config directory matches the config directory for the dependency
listed in CONF_DEPENDS.  Use symlinks to physically point the
package's config directory to the dependency's config directory, and
handle all of this in the INSTALL/DEINSTALL scripts.

Also make the INSTALL/DEINSTALL scripts a bit smarter about not
copying files and not removing files if the source and destination
file locations point to the same thing.
2003-09-17 02:38:22 +00:00
grant
b03c7fbafc apply patch from Jonathan Perkin on tech-pkg@, bringing the list of
files to preserve in sync with reality.
2003-09-16 17:21:36 +00:00
jlam
2113e0ab44 Use pkg_admin(1) instead of pkg_delete(1) to manipulate the file entries in
pkgdb.byfile.db.
2003-09-16 11:45:42 +00:00
grant
5fd5d7578c fix some indentation 2003-09-16 08:09:04 +00:00
itojun
3886f340f1 backout previous 2003-09-16 03:10:32 +00:00
itojun
f443a5cda6 OpenBSD ships with perl in /usr/bin/perl 2003-09-16 01:47:47 +00:00
skrll
cb019b8f9c Add a --mode== for libtool 1.5 2003-09-15 21:52:51 +00:00
jmmv
d67e44e7fd Do not rely on MANINSTALL beeing set (it's always set now) to do manpage
automatic handling.  Fixes part of PR pkg/22562 by reed@reedmedia.net.
2003-09-15 16:14:16 +00:00
jmmv
1db6f1939f Add MANINSTALL and document it. This is to ensure it's always defined, even
if system .mk files do not set it (when using devel/mk-files, for example).
2003-09-15 16:12:33 +00:00
dmcmahill
e4016f08e9 add an @ on one of the print-summary-data target lines. This removes some
garbage from the database file.
2003-09-15 10:27:12 +00:00
jmmv
ee9ff93ff0 Set default value of USE_ESOUND (to YES) and document it. 2003-09-14 18:01:11 +00:00
danw
ff2172dab3 do-shlib-handling fix for Darwin: check if the ".so" file actually exists
before renaming it to ".dylib" in the PLIST, since if it's a dynamic module,
it actually will be a ".so"
2003-09-14 16:41:30 +00:00
danw
7fa2565590 -lpthread is a no-op on Darwin, but it messes up buildlink. So add a new
flag _OPSYS_PTHREAD_AUTO ("yes" for Darwin, "no" for everyone else) and
make pthread.buildlink2.mk do basically nothing in that case.
2003-09-14 16:30:34 +00:00