# Copyright (c) 2009-2010 by Aleksey Cheusov # # See LICENSE file in the distribution. ############################################################ # # Sample of Makefile: # PKG_CONFIG_DEPS = glib-2.0>=2.22 # # PROG = main # # CFLAGS+= -DG_DISABLE_DEPRECATED=1 # CFLAGS+= -DG_DISABLE_SINGLE_INCLUDES # # .include # ############################################################ # .endif for the next line is in the end of file .if defined(PKG_CONFIG_DEPS) && !make(clean) && !make(cleandir) && !make(distclean) MKC_REQUIRE_PROGS+= pkg-config .include .if ${HAVE_PROG.pkg-config} .for l in ${PKG_CONFIG_DEPS} _lpair = ${l:C/(>=|<=|=|>|<)/ & /g} _pcname = ${PCNAME.${_lpair:[1]:S/-/_/g:S/+/p/g:S/./_/g}:U${_lpair:[1]}} _lp := ${_pcname} ${_lpair:[2]} ${_lpair:[3]} _ln = ${l:S/>=/_ge_/:S/>/_gt_/:S/<=/_le_/:S/