Commit graph

110 commits

Author SHA1 Message Date
hans
6b9074c3d3 Fix build on SunOS. 2012-01-12 16:01:46 +00:00
dholland
f0643be3c9 BUILDLINK_TRANSFORM+= rm:-lXp
This works around the Motif imake templates, which unconditionally
provide -lXp for Motif clients. It is not clear to me why imake
material for Motif is shipped as part of the default X imake templates
rather than with Motif; but imake has always had a special (il)logic
of its own.

Dealing with this problem by setting IMAKEOPTS here instead causes
"can't buildlink files" and I don't understand why; but this approach
is maybe better anyway.

Fixes build of audio/xmradio and perhaps other Motif-using packages.
2011-12-11 02:59:34 +00:00
drochner
0e41fad06b build w/o libXp, bump PKGREV 2011-12-07 17:01:58 +00:00
drochner
4ffd67b1cf delegate setting of MOTIFLIB to the motif version specific bl3 files 2011-12-07 16:58:54 +00:00
drochner
bad71e7543 update to 2.3.3
changes: bugfixes
2011-11-27 14:17:40 +00:00
sbd
04daa2f1b8 Recursive bump for graphics/freetype2 buildlink addition. 2011-11-01 06:00:33 +00:00
wiz
af3596f984 png shlib name changed for png>=1.5.0, so bump PKGREVISIONs. 2011-01-13 13:36:05 +00:00
dsainty
1f40f3a084 Mechanically replace references to graphics/jpeg with the suitable
alternative from mk/jpeg.buildlink3.mk

This allows selection of an alternative jpeg library (namely the x86 MMX,
SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and
follows the current standard model for alternatives (fam, motif, fuse etc).

The mechanical edits were applied via the following script:

#!/bin/sh
for d in */*; do
  [ -d "$d" ] || continue
  for i in "$d/"Makefile* "$d/"*.mk; do
    case "$i" in *.orig|*"*"*) continue;; esac
    out="$d/x"
    sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \
        -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \
        < "$i" > "$out"
    if cmp -s "$i" "$out"; then
      rm -f "$out"
    else
      echo "Edited $i"
      mv -f "$i" "$i.orig" && mv "$out" "$i"
    fi
  done
done
2010-12-23 11:44:24 +00:00
wiz
e8d8834f6a Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other
problems when looking for or compiling against libpng-1.4.x.
2010-06-13 22:43:46 +00:00
wiz
91871f449e Second try at jpeg-8 recursive PKGREVISION bump. 2010-01-18 09:58:37 +00:00
tron
9254745516 Specify the path to X11 libraries explicitily in the configuration step.
This fixes the build under Solaris with modular X.org and shouldn't
hurt anywhere else (tested under NetBSD/amd64 5.0_STABLE with
native X.org).
2010-01-10 14:32:01 +00:00
joerg
a641d439fe Enable jpeg and png support. From Marc Balmer. 2009-12-08 20:25:30 +00:00
christos
b7edd8c73e Fix build. New flex does not provide a main program by default, unless you
use %option main
2009-11-09 02:46:12 +00:00
tez
504e90fb80 Fix build for SunOS modular x11 (PR#36132) 2009-10-19 21:47:22 +00:00
joerg
c3f5733f9d Move PKG_INSTALLATION_TYPES and PKG_DESTDIR_SUPPORT before bsd.prefs.mk. 2009-06-30 00:42:01 +00:00
joerg
b02a0f888e Remove @dirrm entries from PLISTs 2009-06-14 18:24:43 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
wiz
285b7dd776 Bump PKGREVISION for libXaw API depends bump due to libXaw8 removal. 2008-11-10 17:21:33 +00:00
tnn
1f17bdd6de Needs pkg-config 2008-07-22 20:44:04 +00:00
tnn
3f5c9fc822 The master site doesn't seem to grok passive FTP, so prefer to use HTTP. 2008-07-17 09:10:50 +00:00
dsainty
e4e149f648 Buildlink in libXft, which is referenced from (at least) /usr/pkg/lib/libMrm.la. Fixes build of x11/xlt (under Linux) 2008-07-17 09:02:54 +00:00
drochner
f864fda4fa -needs libXft to build
-don't try to @dirrm include/X11/bitmaps
2008-07-15 10:37:35 +00:00
christos
4019a59827 update to openmotif 2.3.1 2008-07-14 23:01:32 +00:00
rillig
1066e662ae MAKE_JOBS_SAFE=no, as reported in PR 37233. 2007-10-27 12:31:15 +00:00
joerg
ef0d2e7e15 Remove building some data files that aren't used anyway.
Add cross-compilation support for the rest.
2007-08-15 19:26:39 +00:00
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