Commit graph

84 commits

Author SHA1 Message Date
joerg
fa0ec919a8 Stop messing with X11/Xmos_r.h, just replace it with a direct include
of X11/Xos_r.h and assume that has all the magic. If it is really
necessary to hack around limitations of other platforms, we can do
that later in a more specialised fashion. Bump revision.
2006-12-15 19:13:22 +00:00
joerg
eef94bce5e Switch to modular buildlinks. 2006-11-06 10:32:18 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
rillig
464acf32cc Fixed some pkglint warnings. 2006-05-21 11:41:59 +00:00
gdt
c01d49eea3 Cleanup RESTRICTED by using bsd.prefs.mk to get OPSYS where we want
it.  Vastly simplify os-checking logic.  Don't set NO_SRC_ON_FTP,
ever, following insightful comments from dillo@.
2006-05-16 13:11:59 +00:00
gdt
40a14f8a35 Rewrite and debug logic to check for list of open-source operating
systems.  This version is consistent with what I've been saying on
tech-pkg about defining NO_BIN_ON_FTP for non-open-source OSes, and
not defining it on NetBSD and other open source OSes.  Fix pkglint
warnings.
2006-05-15 13:26:40 +00:00
gdt
814650e954 Remove NOT_FOR_PLATFORM for Interix; that should be for technical
issues only, not licensing.

Add LICENSE=openmotif-license because this software is non-Free.

Set RESTRICTED, and NO_*_ON_CDROM because the license has complex
terms for "commercial product offering".

If $(OPSYS) is not in
  DragonFly FreeBSD Linux NetBSD OpenBSD
set NO_*_ON_FTP, because the license only grants distribution rights
for open source operating systems.

I believe this commit will still prevent openmotif from building on
Interix without setting ACCEPTABLE_LICENSES, and should also result in
all 4 of NO_*_ON_* being set on Interix.

There's too much make code to implement NO_*_ON_FTP-on-other-than-list
(munged from bsd.pkg.mk), but I didn't see a way to make
ONLY_FOR_PLATFORM run a makefile fragment on other platforms.
2006-05-14 16:35:58 +00:00
tv
3e8495b893 Only Open Source OS's are allowed to use this -- nuke Interix via NOT_FOR_.
(Others should be here, but I don't have responsibility for those platforms.)
2006-05-14 14:52:56 +00:00
joerg
e9ff8acae8 Add flex as tool. 2006-05-02 08:56:37 +00:00
rillig
9fc2d7d281 Removed the superfluous "quotes" and 'quotes' from variables that don't
need them, for example RESTRICTED and SUBST_MESSAGE.*.
2006-04-22 09:22:05 +00:00
rillig
96fc47c14f Aligned the last line of the buildlink3.mk files with the first line, so
that they look nicer.
2006-04-12 10:26:59 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
joerg
9bb34014da Fix build on NetBSD systems:
If we have NetBSD 2.99.10 and higher, getpwuid_r and friends exist,
but _PTHREAD_THREAD_SAFE_FUNCTIONS might not be defined. Define it.
For NetBSD before 2.99.10, explicitly set XNO_MTSAFE_PWDAPI to enforce
locked access via normal functions.
2006-01-09 13:13:52 +00:00
wiz
06d5f26332 USE_TOOLS+=, not =, says pkglint. 2006-01-08 22:11:52 +00:00
joerg
876987c960 Fix a number of buffer overflows in OpenMotif's UIL implementation.
For non-propolice systems this might be exploitable when the
user-provided data (e.g. certain filenames) or the locale files are
manipulated.

Mostly-found-by: xfocus, see [xfocus-SD-051202] on VulnWatch. Some
additional cases are handled which have the same impact.
Bump revision.
2006-01-07 21:08:12 +00:00
joerg
8693cc617c Fix spelling. Found by wiz@. 2006-01-04 15:53:15 +00:00
joerg
51351627d3 getpwuid_r and friends only exist on NetBSD 2.99.10 and higher,
so use them only on those systems.
2006-01-04 15:20:45 +00:00
joerg
9fe19b25ca 2.2.3 and 2.1.x are not compatible, force use of 2.2.3. 2005-12-12 19:57:52 +00:00
joerg
cd73234257 Update OpenMotif to 2.2.3. Too many changes to list here, but most
importantly no more imake usage.
2005-12-12 19:55:41 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
erh
de1415b581 s/defineD/defined/ so openmotif actually compiles w/o errors. 2005-08-15 19:17:22 +00:00
wiz
98cbd5dbc1 openmotif needs x11 headers and libraries, so include mk/x11.buildlink3.mk. 2005-07-24 00:55:43 +00:00
wiz
486cf4cf3b Add DragonFly support (untested). Provided by Jörg Sonnenberger
in PR 30258.

While here, clean up pkglint warnings.
2005-06-27 14:08:15 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
jlam
163b6e6c2b Remove USE_TBL from pkgsrc and replace with USE_TOOLS+=tbl. 2005-05-22 21:04:41 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
4c441c2ed3 Add patch to fix CAN-2005-0605. Bump PKGREVISION. 2005-03-10 16:00:31 +00:00
wiz
393af94024 Add RMD160 checksums to the SHA1 ones. 2005-02-23 17:36:09 +00:00
minskim
601eea5fc3 Enable pkgviews installation. 2004-12-25 22:22:00 +00:00
tron
fd63287501 Fix vulnerabilities reported in CAN-2004-0687 and CAN-2004-0688 by
applying a patch based on ICS's patch for OpenMotif 2.2.3.
2004-12-18 00:39: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
danw
f5915880ac fix up the darwin config files to deal with something that changed in
buildlink at some point
2004-08-31 03:10:16 +00:00
drochner
0ed83abfac just require "tbl", not necessarily the whole groff 2004-07-22 17:04:28 +00:00
drochner
3c718a82b3 depend on groff and use ${TBL} for tbl,
fixes PR pkg/23010 by Jeremy C. Reed
2004-07-09 12:34:53 +00:00
wiz
f4257e2c3a Unused. 2004-05-03 23:32:28 +00:00
xtraeme
e9d9e77dca bl3ify 2004-04-11 18:21:32 +00:00
danw
873317a06c add darwin support 2004-03-16 23:59:42 +00:00
reed
493728a085 Make sure the displayed output mentions "OpenMotif" so reader will
have some idea what is going on.
2004-03-12 02:03:25 +00:00
xtraeme
5f58933408 Same libraries were not installed in FreeBSD, so use PLIST_SUBST to
make the precompiled package.
2004-02-02 23:10:29 +00:00
agc
24a46ed346 Move WRKSRC definition away from the first paragraph in a Makefile. 2004-01-20 12:28:26 +00:00
heinz
214f735e4d use 'test -d' for directories to improve portability (solves problem in http://mail-index.netbsd.org/tech-pkg/2003/11/19/0000.html) 2003-11-20 11:13:51 +00:00
martti
6e809ce2d4 Use GNU make in Linux 2003-09-09 12:23:28 +00:00
jlam
b2677a2cb0 Add definitions for DEINSTALL_EXTRA_TMPL and INSTALL_EXTRA_TMPL if
USE_PKGINSTALL is "YES".  bsd.pkg.install.mk will no longer automatically
pick up a INSTALL/DEINSTALL script in the package directory and assume that
you want it for the corresponding *_EXTRA_TMPL variable.
2003-08-30 22:51:11 +00:00
jlam
2920a32c71 Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
2003-08-30 20:22:49 +00:00
grant
eb46275523 improve COMMENT. 2003-08-08 09:25:16 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
fredb
d34ccddd00 Fix typo caught by gcc-3.3. 2003-06-14 20:31:33 +00:00