first commit
[scm/bb/meta-tizen.git] / recipes-tizen / sed / sed.inc
1 DESCRIPTION = "A Stream-Oriented Non-Interactive Text Editor"
2 HOMEPAGE = "http://www.gnu.org/directory/sed.html"
3 SECTION = "Base/Tools"
4 LICENSE = "GPL-3.0+"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by sed-docs  
13 PROVIDES += "sed-docs "
14 RPROVIDES_sed-docs  += "sed-docs "
15
16 #PROVIDES by sed 
17 PROVIDES += "sed"
18 RPROVIDES_sed += "sed"
19 # the PROVIDES rules is ignore "base:/bin/sed  "
20 PROVIDES += "base:/bin/sed"
21 RPROVIDES_sed += "base:/bin/sed"
22 # the PROVIDES rules is ignore "/bin/sed  "
23 PROVIDES += "/bin/sed"
24 RPROVIDES_sed += "/bin/sed"
25
26 RDEPENDS = ""
27
28 DEPENDS = ""
29 #DEPENDS of sed 
30 DEPENDS += "automake-native"
31
32 do_patch() {
33  chmod -Rf a+rX,u+w,g-w,o-w ${S}
34  #setup -q
35  cp ${S}/packaging/sed.manifest .
36  
37  
38 }
39
40 do_configure() {
41 }
42
43 do_compile() {
44  LANG=C
45  export LANG
46  unset DISPLAY
47  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  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
51  
52  export CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security"
53  ./configure    --prefix=/usr \
54                 --mandir=/usr/share/man \
55                 --infodir=/usr/share/info \
56                 --disable-nls \
57                 --without-included-regex \
58                 x86_64-tizen-linux
59    make -j16
60  make -j16 check
61  
62  
63  
64 }
65
66 do_install() {
67  echo export RPM_BUILD_ROOT=${D}
68  LANG=C
69  export LANG
70  unset DISPLAY
71  rm -rf ${D} 
72  mkdir -p ${D} 
73  
74  
75    oe_runmake \
76          DESTDIR=${D} \
77          INSTALL_ROOT=${D} \
78          BINDIR=/usr/bin \
79    install  
80    rm -f ${D}/usr/share/info/dir 
81    find ${D} -regex ".*\.la$" | xargs rm -f -- 
82    find ${D} -regex ".*\.a$" | xargs rm -f --
83  
84  
85  
86  
87 }
88
89 PACKAGES = ""
90 PACKAGES += "sed-docs"
91 PACKAGES += "sed"
92
93 sed-docs_files = ""
94 sed-docs_files += "/usr/share/info"
95 sed-docs_files += "/usr/share/man"
96
97 sed_files = ""
98 sed_files += "sed.manifest"
99 sed_files += "/usr/bin/sed"
100 sed_files += "COPYING*"
101
102 FILES_${PN}-docs = "${sed-docs_files}"
103 FILES_${PN} = "${sed_files}"
104
105 PKG_sed-docs= "sed-docs"
106 PKG_sed= "sed"
107
108 require sed-extraconf.inc