# Deprecated, use %__xz instead.
%__lzma %__xz --format=lzma
%__xz /usr/bin/xz
-%__make /usr/bin/make
+%__make oe_runmake
+#%__make /usr/bin/make
%__mkdir /bin/mkdir
%__mkdir_p /bin/mkdir -p
%__mv /bin/mv
%__unzip /usr/bin/unzip
#Add for yocto
-%fdupes /usr/bin/fdupes
+%fdupes fdupes
#==============================================================================
# ---- Build system path macros.
#
--mandir=%{_mandir} \\\
--infodir=%{_infodir}
+
#TO Check
%makeinstall \
%{__make} \\\
- BINDIR=%{?buildroot:%{buildroot}} \\\
- prefix=%{?buildroot:%{buildroot}}%{_prefix} \\\
- exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \\\
- bindir=%{?buildroot:%{buildroot}}%{_bindir} \\\
- sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \\\
- sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \\\
- datadir=%{?buildroot:%{buildroot}}%{_datadir} \\\
- includedir=%{?buildroot:%{buildroot}}%{_includedir} \\\
- libdir=%{?buildroot:%{buildroot}}%{_libdir} \\\
- libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \\\
- localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \\\
- sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \\\
- mandir=%{?buildroot:%{buildroot}}%{_mandir} \\\
- infodir=%{?buildroot:%{buildroot}}%{_infodir} \\\
+ BINDIR=%{_bindir} \\\
+ prefix=%{_prefix} \\\
+ exec_prefix=%{_exec_prefix} \\\
+ bindir=%{_bindir} \\\
+ sbindir=%{_sbindir} \\\
+ sysconfdir=%{_sysconfdir} \\\
+ datadir=%{_datadir} \\\
+ includedir=%{_includedir} \\\
+ libdir=%{_libdir} \\\
+ libexecdir=%{_libexecdir} \\\
+ localstatedir=%{_localstatedir} \\\
+ sharedstatedir=%{_sharedstatedir} \\\
+ mandir=%{_mandir} \\\
+ infodir=%{_infodir} \\\
install
+
+
#TO Check
%make_install \
%{__make} \\\
DESTDIR=%{?buildroot:%{buildroot}} \\\
INSTALL_ROOT=%{?buildroot:%{buildroot}} \\\
- BINDIR=%{?buildroot:%{buildroot}} \\\
+ BINDIR=%{_bindir} \\\
install \
rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir \
find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f -- \
%{!?keepstatic:find %{?buildroot:%{buildroot}} -regex ".*\\.a$" | xargs rm -f --}
-
+
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
# command += " --define='RPM_OPT_FLAGS %s' " % "-O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -m64 -march=corei7 -msse4.2 -mtune=corei7-avx -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer -fipa-cp-clone"
# command += " --define='configure #configure' "
+ #if "native" in self.__packagePN:
+ # #command += " --define='_makedir_bindir %%{?buildroot:%%{buildroot}}' "
+ # command += " --define='RPM_BUILD_ROOT %%{?buildroot:%%{buildroot}}%%{?buildroot:%%{buildroot}}' "
pkgName=os.path.basename(tmp_package_spec_path)[:-5]
delete=False) as tmpSpecFile:
tmpSpecFile.write(currentSpecString)
tmp_package_spec_path=tmpSpecFile.name
-
-
+
if pkgName in ["attr","acl"]:
currentSpecString=currentSpecString.replace('make configure','%configure')
#currentSpecString=currentSpecString.replace('/lib/libattr.so\n','#/lib/libattr.so\n')
if res in ["MIT/X11",'X11/MIT']:
res="MIT"
-
+ if res in ['LGPLv2, AFLv2']:
+ res='LGPLv2'
return res
return ""
elif res == "automake":
f.write("DEPENDS += \"automake-native\"\n")
+ elif res == "fdupes":
+ f.write("DEPENDS += \"fdupes-native\"\n")
+
elif res == "cmake":
f.write("DEPENDS += \"cmake-native\"\n")
mkdir -p ${S}/../temp
echo export S=${S} > ${S}/../temp/Bash_install
echo export D=${D} >> ${S}/../temp/Bash_install
- echo export RPM_BUILD_ROOT=${D} >> ${S}/../temp/Bash_install
+ if [[ ${PN} =~ "-native" ]];
+ then
+ echo export RPM_BUILD_ROOT=${D}${STAGING_DIR}/${HOST_SYS} >> ${S}/../temp/Bash_install
+ else
+ echo export RPM_BUILD_ROOT=${D} >> ${S}/../temp/Bash_install
+ fi
echo export bindir="/usr/bin" >> ${S}/../temp/Bash_install
X=$base_prefix
PATH="$X/usr/bin:$X/bin:$X/sbin:$X/usr/bin/perl-native:$PATH" spec2yocto "install" ${S}/${SPECFILES} ${PN} >> ${S}/../temp/Bash_install
#DEPENDS of python-base
DEPENDS += "zlib"
DEPENDS += "bzip2"
-DEPENDS += "fdupes"
+DEPENDS += "fdupes-native"
DEPENDS += "pkgconfig"
DEPENDS += "automake-native"