ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/cups/Makefile
Revision: 41
Committed: Wed Jun 24 11:54:38 2026 UTC (3 weeks, 6 days ago) by operz
File size: 1948 byte(s)
Log Message:
Add OZSWcups 2.4.19, OZSWlibXtst 1.2.5, OZSWopenjdk7 u351, OZSWopenjdk8 u492 stub.

OZSWcups: Cups printing library + headers, required by JDK awt.
OZSWlibXtst: X11 Test extension (XTestFakeKeyEvent etc.), required by awt_Robot.
OZSWopenjdk7: OpenJDK 7u351 built with Sun Studio 12 from /usr/jdk/latest.
  Build fixes:
  - CORBA ObjectStreamClass.java: removed sun.misc.JavaSecurityAccess (absent in JDK 6 boot)
  - Defs-solaris.gmk OPENWIN_HOME=/opt/ozsw (Sun Studio finds X11 via /usr/include/X11 symlink)
  - splashscreen Makefile: added -liconv for GNU libiconv symbols
  - xawt FILES_c_unix.gmk: added AlphaMath.c so div8table is in libmawt.so
  - CUPS versioning.h: replaced variadic macros with object-like macros (Sun Studio rejects ...)
  - All file copies: replaced with /opt/ozsw versions (zip/unzip)
  - Build script: stage LICENSE in WORKROOTDIR/build-global for findlicensefile
OZSWopenjdk8: stub for next milestone (will use OZSWopenjdk7 as boot JDK).

File Contents

# Content
1 NAME = cups
2 VERSION = 2.4.19
3
4 CATEGORIES = utils
5
6 DESCRIPTION = CUPS printing system
7 define BLURB
8 CUPS is the standards-based open source printing system for Unix-like
9 operating systems. Provides headers required by OpenJDK.
10 endef
11
12 DYNURLS = https://github.com/OpenPrinting/cups/releases/download/v$(VERSION)/cups-$(VERSION)-source.tar.gz
13 DISTFILES = cups-$(VERSION)-source.tar.gz
14 WORKSRC = $(WORKDIR)/cups-$(VERSION)
15
16 LICENSE = LICENSE
17
18 PACKAGES = OZSWcups
19 SPKG_DESC_OZSWcups = CUPS printing system
20 SPKG_CLASSES = cswdictconf
21 RUNTIME_DEP_PKGS_OZSWcups = OZSWgnutls OZSWzlib
22
23 # Solaris: networking symbols (recv etc.) are in libsocket/libnsl
24 EXTRA_LD_FLAGS += -lsocket -lnsl
25
26 CONFIGURE_ARGS = $(DIRPATHS)
27 CONFIGURE_ARGS += --with-tls=gnutls
28 CONFIGURE_ARGS += --disable-dbus
29 CONFIGURE_ARGS += --without-rcdir
30 CONFIGURE_ARGS += --disable-dependency-tracking
31
32 # Use manual install to avoid GAR install phase getting confused by stale cookies
33 INSTALL_SCRIPTS =
34
35 include gar/category.mk
36
37 .DEFAULT_GOAL := all
38
39 post-configure:
40 # -fPIE/-pie not supported on Solaris/GCC in this config
41 /usr/bin/gsed -i 's/-fPIE -pie//' $(WORKSRC)/Makedefs
42 # Add -lsocket -lnsl to LINKCUPS so tools linking against libcups find socket symbols
43 /usr/bin/gsed -i 's|^LINKCUPS[[:space:]]*=.*|LINKCUPS\t=\t-L../cups -lcups -lsocket -lnsl|' $(WORKSRC)/Makedefs
44 # Redirect icon/menu dirs to /opt/ozsw (configure ignores --with-icondir/menudir defaults)
45 /usr/bin/gsed -i 's|^ICONDIR[[:space:]]*=.*|ICONDIR\t\t=\t/opt/ozsw/share/icons|' $(WORKSRC)/Makedefs
46 /usr/bin/gsed -i 's|^MENUDIR[[:space:]]*=.*|MENUDIR\t\t=\t/opt/ozsw/share/applications|' $(WORKSRC)/Makedefs
47 find $(WORKSRC) -name "libtool" \
48 -exec /usr/bin/gsed -i \
49 -e 's/ECHO="print -r --"/ECHO="printf %s\\n"/g' \
50 -e 's|^SED=.*|SED=/opt/ozsw/bin/sed|' \
51 {} \;
52 @$(MAKECOOKIE)
53
54 pre-install:
55 cd $(WORKSRC) && gmake DESTDIR=$(DESTDIR) install
56 @$(MAKECOOKIE)