1 DESCRIPTION = "GNU Command Line Calculator"
2 HOMEPAGE = "ftp://ftp.gnu.org/pub/gnu/bc"
3 SECTION = "Base/Utilities"
21 DEPENDS += "bison-native"
22 DEPENDS += "readline-devel"
24 DEPENDS += "automake-native"
27 chmod -Rf a+rX,u+w,g-w,o-w ${S}
29 cp ${S}/packaging/bc.manifest .
41 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
42 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
43 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
44 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
47 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
48 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
49 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
50 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
51 --target=x86_64-tizen-linux \
58 --datadir=/usr/share \
59 --includedir=/usr/include \
61 --libexecdir=/usr/libexec \
62 --localstatedir=/var \
63 --sharedstatedir=/usr/com \
64 --mandir=/usr/share/man \
65 --infodir=/usr/share/info --with-readline
68 sed -i 's|\(^_PR.*readline.*$\)|/* \1 */|' bc/scan.l
76 echo export RPM_BUILD_ROOT=${D}
83 make install DESTDIR=$RPM_BUILD_ROOT
92 bc_files += "bc.manifest"
94 bc_files += "/usr/bin/bc"
95 bc_files += "/usr/bin/dc"
96 bc_files += "/usr/share/info/*.info*"
97 bc_files += "/usr/share/man/man1/*"
99 FILES_${PN} = "${bc_files}"
103 require bc-extraconf.inc