mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 05:49:57 +00:00
3a30c56238
Used sed expression given here: http://lists.linuxtogo.org/pipermail/openembedded-core/2011-November/012373.html Plus an additional expression for .expand. Full expression is: sed \ -e 's:bb.data.\(setVar([^,]*,[^,]*\), \([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,]*,[^,]*,[^,]*\), \([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,]*\), \([^, ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,]*,[^,]*\), \([^, ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,]*,[^,]*\), \([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,]*\), \([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(expand([^,]*\), \([^ )]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` Some minor correction in systemd.bbclass was needed for some expressions that didn't quite match the regex in the desired way; additionally a few instances were manually changed. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
33 lines
1.0 KiB
BlitzBasic
33 lines
1.0 KiB
BlitzBasic
DESCRIPTION = "Proxy libintl"
|
|
HOMEPAGE = "http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/"
|
|
SECTION = "libs"
|
|
LICENSE = "LGPLv2"
|
|
LIC_FILES_CHKSUM = "file://src/proxy-libintl/COPYING.LIB.txt;md5=bc400bc21422f9a92e76ec2c5167ca2e"
|
|
|
|
PR = "r1"
|
|
PROVIDES = "virtual/libintl virtual/gettext"
|
|
|
|
SRC_URI = " \
|
|
http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/${PN}-dev_${PV}_win32.zip \
|
|
"
|
|
SRC_URI[md5sum] = "aef407c2b97ee829383aadd867c61d1e"
|
|
SRC_URI[sha256sum] = "291ac350cc5eb4a01b0d651ca99fae64cee8a1c06b2005277fab5a4356f9ae91"
|
|
|
|
S = "${WORKDIR}"
|
|
FILES_${PN}-dev = "${includedir}/libintl.h ${libdir}/libintl.a"
|
|
|
|
CFLAGS_append = " -fPIC -Wall -I ../../include ${@['-DSTUB_ONLY', ''][d.getVar('USE_NLS', 1) != 'no']}"
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
|
|
do_compile() {
|
|
cd ${WORKDIR}/src/proxy-libintl
|
|
oe_runmake ../../lib/libintl.a
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}/${includedir}
|
|
install -d ${D}/${libdir}
|
|
install -m 0644 ${WORKDIR}/include/libintl.h ${D}/${includedir}
|
|
install -m 0644 ${WORKDIR}/lib/libintl.a ${D}/${libdir}
|
|
}
|