Commit graph

7031 commits

Author SHA1 Message Date
jlam
f9cbf56250 TERMCAP_TYPE isn't really a variable that you can set, so add it to
BUILD_DEFS_EFFECTS instead of BUILD_DEFS.
2008-03-05 17:38:58 +00:00
jlam
3a9a5fdff8 + Fix error in previous commit -- too much of the termcap buildlink
code was moved to the builtin.mk file.  The buildlink3.mk file should
  contain the bits that always apply to all packages that include it.
  The builtin.mk file should include the bits that only apply if
  "termcap" is listed in ${BUILDLINK_PACKAGES} (this isn't the case
  if we use curses to replace termcap).  As such, redistribute the
  code as follows:

    + Move the parts that remove -l options for terminal libraries we
      don't support, as well as for transforming "-ltermcap" into the
      appropriate libraries, from the builtin.mk back into the
      buildlink3.mk.

    + Leave the parts the remove -lcurses and -lncurses in the
      builtin.mk.  We can remove the ${TERMCAP_TYPE} == "curses" check
      since that part of the file is protected by CHECK_BUILTIN.termcap,
      so it should only be triggered if "termcap" is in BUILDLINK_PACKAGES,
      which only happens if ${TERMCAP_TYPE} isn't "curses".
2008-03-05 16:23:52 +00:00
jlam
5d2fb1d62c + Only remove -lcurses and -lncurses in BUILDLINK_TRANSFORM if the
package does not use either curses or ncurses.  We determine this
  by inspecting BUILDLINK_PACKAGES and looking for "curses" and
  "ncurses".

+ Because the above logic uses BUILDLINK_PACKAGES, the code must be
  moved from termcap.buildlink3.mk into termcap.builtin.mk where it
  is safe to inspect BUILDLINK_PACKAGES.
2008-03-05 07:10:26 +00:00
jlam
cfc5bf4458 If the TERMCAP_TYPE isn't "curses", then also remove "-lncurses" from
the command line so we don't find any system ncurses library.

XXX This currently causes problems with packages using both termcap
XXX (usually via readline) and curses.  This will be fixed in time.
2008-03-05 03:58:20 +00:00
adam
2f7d2aaf29 Added postgresql83 2008-03-04 12:50:25 +00:00
jlam
4e56d99aca Automatically add ${GAMES_USER} and ${GAMES_GROUP} to PKG_USERS and
PKG_GROUPS when SETGIDGAMES == yes.
2008-03-04 06:51:41 +00:00
jlam
26a6bb9ac4 + Conditionally add GAMES_USER and GAMES_GROUP to the platform *.mk
files.  These variables are currently usable if ${SETGIDGAME} == yes.
  These variables should be used when describing ownership of files
  and directories to the pkginstall framework, e.g.

	SPECIAL_PERMS=	bin/foogame ${GAMES_USER} ${GAMES_GROUP} 2555

+ Rename SETGID_GAME_PERMS to SETGID_GAMES_PERMS because the default
  group name is "games".

+ Define SETGID_GAMES_PERMS in terms of GAMES_USER and GAMES_GROUP so
  that these names are protected from the normal flow of unprivileged.mk.
  This fixes the +INSTALL scripts in "user-destdir" packages to
  correctly refer to the games:games instead of the user:group of the
  user that built the packages.
2008-03-04 06:45:33 +00:00
jlam
810c83eb14 Use ${GAMEMODE} and not hardcoded 2755. 2008-03-04 05:55:42 +00:00
jlam
80ac108053 Add SETGID_GAME_PERMS convenience definition that defaults to owner=game,
group=game, mode=0775.
2008-03-04 05:11:18 +00:00
bjs
8dca1a0b74 Add libssh2 option for security/libssh2. 2008-03-02 14:14:23 +00:00
wiz
39603de18e Describe lcms option. 2008-03-02 09:39:28 +00:00
jlam
9b49134ee1 + Teach buildlink3.mk to cause GNU configure script to not find any other
terminal library other than the one we specify.

+ Also look for "termlib" as some systems have that.  Note that we need to
  make the library search more sophisticated to work correctly on more
  exotic platforms.
2008-03-02 07:05:28 +00:00
obache
0b08f22259 Add gnome, kde and qt option. 2008-03-02 01:48:51 +00:00
obache
985a424f79 Add EMACS_LISPPREFIX handling to PRINT_PLIST_AWK. 2008-03-01 05:11:10 +00:00
jlam
9d8755394f Rename termlib.* to termcap.* to better document exactly what packages
are trying to use (the termcap t*() API).
2008-02-29 22:41:13 +00:00
jlam
1a25985362 Ensure that BUILDLINK_PREFIX.curses is always defined. 2008-02-29 16:29:04 +00:00
jlam
a58db16bf7 Ensure the BUILDLINK_PREFIX.termlib is always defined. 2008-02-29 16:28:51 +00:00
tnn
24f697ae48 Make chrpath(1) a tool. Intended scope is fixing up some Linux emulation
packages without having to do the LD_LIBRARY_PATH dance.
2008-02-29 00:23:09 +00:00
jlam
b97840c070 If FOO is empty, then ${FOO:S/^/-l/} has a value of "-l". This is not
what we want.  Instead, use another pattern to strip away lone "-l" in
BUILDLINK_LDADD.*.
2008-02-27 21:32:45 +00:00
jlam
df3681bb3b Teach termlib files about another possible native terminal library, tinfo. 2008-02-27 17:36:34 +00:00
jlam
496391a1f0 + Define BUILTIN_LIBNAME.* unconditionally so that their values can
always be used in other builtin.mk files.

+ In the USE_BUILTIN.* == "yes" case, set BUILDLINK_LIBNAME.* to the
  corresponding BUILTIN_LIBNAME.* value so that BUILDLINK_LIBNAME.*
  can always be used in other buildlink3.mk files.
2008-02-27 15:26:34 +00:00
jlam
5f1962e280 Set BUILDLINK_LDADD.curses in the CURSES_TYPE == "curses" case. 2008-02-27 06:15:04 +00:00
jlam
70c7f36d99 Define BUILTIN_LIBNAME.* outside of the CHECK_BUILTIN.*-protected
section to be the name of the built-in library if USE_BUILTIN.* is
"yes".  These variables can be used in other builtin.mk files.
2008-02-27 06:14:23 +00:00
jlam
02629b7349 Protect against possibly empty BUILDLINK_LIBNAME.* variables when
defining BUILDLINK_LDADD.* by using a substitution instead of directly
prepending "-l".
2008-02-27 06:10:25 +00:00
jlam
f686df4e6c + The termlib.buildlink3.mk file is meant to be included by packages
that need basic termlib functionality, i.e. tgetent(), tgoto(),
  tputs(), etc.  Together with the termlib.builtin.mk file, they will
  use either a built-in termcap library, a built-in X/Open "enhanced"
  curses library, or ncurses to provide these functions.

+ Add BUILDLINK_LIBNAME.* definitions to the various curses buildlink3.mk
  and builtin.mk files that give the "base" library name of the curses
  library, e.g. curses, ncurses, etc.  These are used by the termlib
  files to set BUILDLINK_LIBNAME.termlib.
2008-02-27 04:47:02 +00:00
jlam
8dbadc06ac Allow preferring a pkgsrc "curses" implementation for all packages
that include curses.buildlink3.mk.  Generally, the rule is not to set
CURSES_DEFAULT unless it's to set it to "ncurses" or "pdcurses".

# Example mk.conf settings and their results.

# Use the system curses.
PREFER_NATIVE=	yes		# default value
CURSES_DEFAULT=	curses		# default value

# Use system "ncurses" if it's available, otherwise use devel/ncurses
# from pkgsrc.
#
PREFER_NATIVE=	yes		# default value
CURSES_DEFAULT=	ncurses

# Use devel/ncurses from pkgsrc.
PREFER_PKGSRC=	yes

# Use devel/pdcurses from pkgsrc.
PREFER_PKGSRC=	yes
CURSES_DEFAULT=	pdcurses

# This causes a package build failure because there is no pkgsrc
# curses.
#
PREFER_PKGSRC=	yes
CURSES_DEFAULT=	curses
2008-02-27 02:26:07 +00:00
joerg
861a664974 Split PKGTOOLS_REQD into two parts. If we don't have PKGTOOLS_REQD,
but something after PKGTOOLS_BASE_REQD, just register a bootstrap
dependency.
2008-02-26 13:46:21 +00:00
jlam
a38826c59e Add a --without-x flag to the mksandbox script. 2008-02-26 05:06:32 +00:00
jlam
6c632be065 + Introduce a way for a user to set the default curses implementation
used by packages that need curses.  From curses.buildlink3.mk:

  CURSES_DEFAULT
	This value represents the type of curses we wish to use on the
	system.  Setting this to "curses" means that the system curses
	implementation is fine.

	Possible: curses, ncurses, pdcurses

+ Move all code to detect a built-in version of curses into a
  curses.builtin.mk file.

+ Add code to {n,pd}curses/buildlink3.mk so make the headers and
  libraries usable as <curses.h> and -lcurses if _PKG_USE_CURSES is
  defined.  _PKG_USE_CURSES is only defined by curses.buildlink3.mk.

+ Improve the detection of native ncurses in ncurses/builtin.mk and
  allow headers and libraries to be usable as <ncurses.h> and -lncurses.
2008-02-25 04:19:34 +00:00
wiz
64b8bdc620 Add description for aspell option. 2008-02-23 11:39:50 +00:00
adrianp
dbed901ffb +epoll
+kqueue
2008-02-21 19:31:32 +00:00
jlam
0beea6105b Document the Courier-specific options. 2008-02-21 15:51:16 +00:00
tnn
a1aba997fa IRIX has /usr/include/getopt.h but it isn't getopt_long. Account for this
in the feature test.
This should fix PR pkg/33012 and PR pkg/35293.
It maybe fixes  PR pkg/37941 and PR pkg/37409.

I will go through the packages mentioned and see if any of them are
shared libraries (then they cannot use static nbcompat getopt_long but
must use libgetopt instead.)
2008-02-21 14:08:48 +00:00
xtraeme
5285714147 Add two spain mirrors to MASTER_SITE_KDE. 2008-02-21 11:52:21 +00:00
rillig
f459088408 Documented the "pcre" option, as suggested by Claudio M. Alessi via
private mail.
2008-02-21 04:59:05 +00:00
tnn
3d06b8fdd5 Kill _OPSYS_NEEDS_XPKGWEDGE. It was only used by two platforms and they
will default to USE_XPKGWEDGE anyway.
2008-02-21 04:23:58 +00:00
tnn
2c48f1460b HPUX 11.11, like IRIX, doesn't have standards compliant (v)snprintf. 2008-02-21 01:36:28 +00:00
jlam
ae0c51629f Add a "wide-curses" global option to turn on wide curses for packages that
support it.

XXX The "ncursesw" option should probably be deprecated ... it's a little
XXX too specific.
2008-02-20 17:40:13 +00:00
rillig
0f02165471 Removed colons from variable names so they are accessible to "bmake
help".
2008-02-20 10:43:55 +00:00
rillig
d63608279e Eliminated a needless check. 2008-02-20 10:42:21 +00:00
rillig
739578d240 Changed the order of the checks for automatic keywords, so that the
latter checks are not run that much.
2008-02-20 10:40:42 +00:00
rillig
5530265343 After being deprecated for 16 months, SKIP_PORTABILITY_CHECK is now
obsolete.
2008-02-20 10:27:35 +00:00
rillig
5f7de0ffaa Removed colons for the sake of "bmake help". 2008-02-20 10:23:26 +00:00
wiz
e1411f898a Add colon in comment to aid "make help" in finding help
for the bin-install target.
2008-02-20 09:58:04 +00:00
rillig
decac331e0 Eliminated some code duplication, provided a default definition for
PKGNAME_REQD and documented it a little bit.
2008-02-19 22:53:34 +00:00
rillig
1b593da1e6 Documented the pkgsrc online help. 2008-02-19 22:25:23 +00:00
rillig
56564adfe7 Rewrote the help file parser a little bit, so that the definitions from
defaults/mk.conf can be found again. (The words didn't end with
[A-Za-z0-9], but rather with "?=".
2008-02-19 22:12:00 +00:00
tnn
e6872cea49 Add IRIX command sinks, needed to get rpath fixup when using GCC. 2008-02-19 17:36:51 +00:00
tnn
f0462b82fe Pass gcc's -mabi=* option (used on mips) without warning. 2008-02-19 16:50:11 +00:00
xtraeme
5af55181db Check if BUILDLINK_AUTO_VARS.${_pkg_} is defined before testing it
via !empty. This fixes a problem with gnome-panel and db1.
2008-02-19 11:12:51 +00:00