ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/motif/Makefile
Revision: 26
Committed: Sun Jun 21 05:10:47 2026 UTC (4 weeks, 2 days ago) by operz
File size: 2160 byte(s)
Log Message:
Add motif 2.3.8 and xbitmaps 1.1.4; Solaris Xmfuncs.h macro fix

File Contents

# Content
1 # vim: ft=make ts=4 sw=4 noet
2 .DEFAULT_GOAL := all
3
4 NAME = motif
5 VERSION = 2.3.8
6 GARTYPE = v2
7
8 MASTER_SITES =
9 DYNURLS = https://download.sourceforge.net/motif/$(DISTNAME).tar.gz
10 DISTFILES += $(DISTNAME).tar.gz
11
12 LICENSE = COPYING
13
14 PACKAGES += OZSWmotif
15 SPKG_DESC_OZSWmotif = Motif widget toolkit and window manager (libXm, MWM)
16 CATALOGNAME_OZSWmotif = motif
17
18 BUILD_DEP_PKGS += OZSWlibX11 OZSWlibXt OZSWlibXext OZSWlibXmu OZSWlibXft
19 BUILD_DEP_PKGS += OZSWlibXrender OZSWlibXpm OZSWlibICE OZSWlibSM
20 BUILD_DEP_PKGS += OZSWfreetype OZSWfontconfig OZSWlibjpeg OZSWlibpng
21 BUILD_DEP_PKGS += OZSWflex OZSWbison OZSWpkgconf OZSWxorgproto OZSWxbitmaps
22
23 RUNTIME_DEP_PKGS_OZSWmotif += OZSWlibX11 OZSWlibXt OZSWlibXext OZSWlibXmu OZSWlibXft
24 RUNTIME_DEP_PKGS_OZSWmotif += OZSWlibXrender OZSWlibXpm OZSWlibICE OZSWlibSM
25 RUNTIME_DEP_PKGS_OZSWmotif += OZSWfreetype OZSWfontconfig OZSWlibjpeg OZSWlibpng
26
27 EXTENSIONS = 1
28 EXTRA_LD_FLAGS += -lsocket -lnsl
29
30 # Point configure at our X11 tree; disable Xprint (no libXp on this system)
31 EXTRA_CONFIGURE_ARGS += --x-includes=$(includedir)
32 EXTRA_CONFIGURE_ARGS += --x-libraries=$(libdir)
33 EXTRA_CONFIGURE_ARGS += --disable-printing
34 EXTRA_CONFIGURE_ARGS += --enable-jpeg
35 EXTRA_CONFIGURE_ARGS += --enable-png
36 EXTRA_CONFIGURE_ARGS += --enable-xft
37 EXTRA_CONFIGURE_ARGS += --disable-static
38
39 # Xmfuncs.h defines bcopy/bzero/bcmp as function-like macros. On Solaris,
40 # X11/Xos.h later includes <strings.h> which tries to declare these as
41 # 'extern void bcopy(const void*, void*, size_t)'. The preprocessor expands
42 # the bcopy macro at the declaration site, producing invalid C syntax.
43 # Fix: gate both macro-definition sections with !defined(__sun) so that on
44 # Solaris/GCC the macros are never defined and the real prototypes stay intact.
45 post-extract:
46 /opt/ozsw/bin/python3 $(GARDIR)/../pkg/motif/patch-motif-xmfuncs.py \
47 $(WORKSRC)/lib/Xm/Xmfuncs.h
48 @$(MAKECOOKIE)
49
50 # Fix libtool ksh ECHO on Solaris (bash doesn't have "print -r --")
51 post-configure:
52 @find $(WORKSRC) -name "libtool" -type f -exec \
53 gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' {} \;
54 @$(MAKECOOKIE)
55
56 include gar/category.mk