1*4882a593Smuzhiyun# Recipe for building gutenprint-native 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Native part is for generating strings - xmli18n-tmp.h used by target recipe 4*4882a593Smuzhiyun# We don't depend on cups as this is for generating the string header. 5*4882a593Smuzhiyun# 6*4882a593Smuzhiyun# Copyright (c) Ambu A/S - All rights reserved 7*4882a593Smuzhiyun# SPDX-License-Identifier: MIT 8*4882a593Smuzhiyun# 9*4882a593Smuzhiyun# Author(s) 10*4882a593Smuzhiyun# clst@ambu.com (Claus Stovgaard) 11*4882a593Smuzhiyun# 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunrequire gutenprint.inc 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun# We could consider switching to BBCLASSEXTEND native instead of inherit 16*4882a593Smuzhiyun# Using devtool with this results in warning, as devtool append externalsrc to 17*4882a593Smuzhiyun# inheritance, making native not being inherited last. 18*4882a593Smuzhiyuninherit autotools-brokensep pkgconfig native 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunSECTION = "libs" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun# binutils is for xz etc. 23*4882a593Smuzhiyun# gettext-native for configuration 24*4882a593Smuzhiyun# flex-native is used for compilation 25*4882a593Smuzhiyun# byacc-native is for yacc command (compilation) 26*4882a593SmuzhiyunDEPENDS += "binutils-native gettext-native flex-native byacc-native" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunEXTRA_OECONF = "--without-doc --without-cups" 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun# gutenprint does not have a configure file in its root folder. 31*4882a593Smuzhiyun# Rather it has a autogen.sh in its root folder. We just use it 32*4882a593Smuzhiyundo_configure() { 33*4882a593Smuzhiyun ${S}/autogen.sh || bbnote "${PN} failed to autogen.sh" 34*4882a593Smuzhiyun oe_runconf 35*4882a593Smuzhiyun} 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun# Currently we only uses the string header, even though we compile the complete 38*4882a593Smuzhiyun# native version of the library. So we limit the install to the needed. 39*4882a593Smuzhiyundo_install() { 40*4882a593Smuzhiyun install -d ${D}${datadir}/gutenprint/ 41*4882a593Smuzhiyun install -m644 ${B}/src/xml/xmli18n-tmp.h ${D}${datadir}/gutenprint/ 42*4882a593Smuzhiyun}