- Add macro.
authorronan <ronan@fridu.net>
Tue, 19 Feb 2013 09:06:44 +0000 (10:06 +0100)
committerronan <ronan@fridu.net>
Tue, 19 Feb 2013 09:06:44 +0000 (10:06 +0100)
Tizen_TZ_package/create-package-initial.py
meta-tizen/recipes-BaseSystem/tizenBuildUtils/tizenBuildUtils.inc

index 1a7b0f9..c089eae 100755 (executable)
@@ -113,7 +113,22 @@ def convertSpecFile(package_spec_path,cpu="x86_64"):
        command += " --define='setup #setup'"
        command += " --define='buildroot ${D}'"
        command += " --define='_target_cpu %s'" % cpu
-       
+#      command += " --define='_program_prefix ${program_prefix}'"
+       command += " --define='_prefix ${prefix}'"
+       command += " --define='_exec_prefix ${exec_prefix}'"
+       command += " --define='_bindir ${bindir}'" 
+       command += " --define='_sbindir ${sbindir}'"
+       command += " --define='_sysconfdir ${sysconfdir}'"
+       command += " --define='_datadir ${datadir}'"
+       command += " --define='_includedir ${includedir}'"
+       command += " --define='_libdir ${libdir}'"
+       command += " --define='_libexecdir ${libexecdir}'"
+       command += " --define='_localstatedir ${localstatedir}'"
+       command += " --define='_sharedstatedir ${sharedstatedir}'"
+       command += " --define='_mandir ${mandir}'"
+       command += " --define='_infodir ${infodir}'"
+
+
        patchs=findPatch(package_spec_path)
        
        for p in patchs:
index 0c5315b..d5d7376 100644 (file)
@@ -21,7 +21,9 @@ echo RLM end of do_configure
 do_compile_prepend () {
 echo RLM do_compile_prepend
 mkdir -p ${S}/../temp
+
 create-package-initial "compile" ${S}/${SPECFILES} > ${S}/../temp/Bash_compile
+
 cd ${S}
 }
 
@@ -34,7 +36,8 @@ do_compile () {
 do_install_prepend () {
 echo RLM do_install_prepend
 mkdir -p ${S}/../temp
-create-package-initial "compile" ${S}/${SPECFILES} > ${S}/../temp/Bash_install
+echo export D=${D}  > ${S}/../temp/Bash_install
+create-package-initial "install" ${S}/${SPECFILES} >> ${S}/../temp/Bash_install
 cd ${S}
 }