| 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) |