1 DESCRIPTION = "A Free and Open Source Spell Checker"
2 HOMEPAGE = "http://aspell.net/"
3 SECTION = "System/Libraries"
12 #PROVIDES by libpspell
13 PROVIDES += "libpspell"
14 RPROVIDES_libpspell += "libpspell"
18 RPROVIDES_aspell += "aspell"
20 #PROVIDES by aspell-devel
21 PROVIDES += "aspell-devel"
22 RPROVIDES_aspell-devel += "aspell-devel"
23 RPROVIDES_aspell-devel += "aspell-dev"
25 #PROVIDES by libaspell
26 PROVIDES += "libaspell"
27 RPROVIDES_libaspell += "libaspell"
29 #PROVIDES by aspell-ispell
30 PROVIDES += "aspell-ispell"
31 RPROVIDES_aspell-ispell += "aspell-ispell"
33 #PROVIDES by aspell-spell
34 PROVIDES += "aspell-spell"
35 RPROVIDES_aspell-spell += "aspell-spell"
37 #PROVIDES by aspell-docs
38 PROVIDES += "aspell-docs "
39 RPROVIDES_aspell-docs += "aspell-docs "
42 #RDEPENDS of aspell-devel (${PN}-devel)
43 RDEPENDS_${PN}-devel += "glibc-dev"
44 RDEPENDS_${PN}-devel += "libpspell"
45 RDEPENDS_${PN}-devel += "libaspell"
47 #RDEPENDS of aspell-ispell (${PN}-ispell)
48 RDEPENDS_${PN}-ispell += "aspell"
50 #RDEPENDS of aspell-spell (${PN}-spell)
51 RDEPENDS_${PN}-spell += "aspell"
56 DEPENDS += "libtool-cross"
57 #Replace "DEPENDS" on gettext by "inherit gettext"
59 DEPENDS += "fdupes-native"
61 DEPENDS += "ncurses-devel"
64 chmod -Rf a+rX,u+w,g-w,o-w ${S}
66 cp ${S}/packaging/aspell.manifest .
78 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
79 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
80 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
81 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
84 export CXXFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables `ncursesw6-config --cflags`"
85 #this is an ugly kludge , don't look :-)
86 export LDFLAGS="`ncursesw6-config --libs`"
88 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
89 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
90 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
91 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
92 --target=x86_64-tizen-linux \
99 --datadir=/usr/share \
100 --includedir=/usr/include \
102 --libexecdir=/usr/libexec \
103 --localstatedir=/var \
104 --sharedstatedir=/usr/com \
105 --mandir=/usr/share/man \
106 --infodir=/usr/share/info \
107 --enable-curses="-lncursesw" \
117 echo export RPM_BUILD_ROOT=${D}
130 rm -f ${D}/usr/share/info/dir
131 find ${D} -regex ".*\.la$" | xargs rm -f --
132 find ${D} -regex ".*\.a$" | xargs rm -f --
133 # Links for compatibility reasons (ispell and spell)
134 ln -s /usr/lib/aspell-0.60/ispell ${D}/usr/bin
135 ln -s /usr/lib/aspell-0.60/spell ${D}/usr/bin
140 fdupes -q -n -r ${D} |
142 if test -z "$_target" ; then
145 if test -z "$_file" ; then
149 if test "$_symlinks" = 1; then
150 ln -sf "${_target#${D}}" "$_file";
152 ln -f "$_target" "$_file";
157 /usr/share/spec2yocto/macro/lib/find-lang.sh ${D} aspell
165 PACKAGES += "libpspell"
167 PACKAGES += "aspell-devel"
168 PACKAGES += "aspell-docs"
169 PACKAGES += "libaspell"
170 PACKAGES += "aspell-ispell"
171 PACKAGES += "aspell-spell"
174 libpspell_files += "aspell.manifest"
175 libpspell_files += "/usr/lib/libpspell.so.15*"
178 aspell_files += "aspell.manifest"
179 aspell_files += "/usr/bin/aspell"
180 aspell_files += "/usr/bin/aspell-import"
181 aspell_files += "/usr/bin/pre*"
182 aspell_files += "/usr/bin/run-with-aspell"
183 aspell_files += "/usr/bin/word-list-compress"
185 aspell-devel_files = ""
186 aspell-devel_files += "aspell.manifest"
187 aspell-devel_files += "manual/aspell-dev.html/"
188 aspell-devel_files += "/usr/bin/pspell-config"
189 aspell-devel_files += "/usr/include/pspell/"
190 aspell-devel_files += "/usr/include/*.h"
191 aspell-devel_files += "/usr/lib/libaspell.so"
192 aspell-devel_files += "/usr/lib/libpspell.so"
193 aspell-devel_files += "/usr/share/info/aspell-dev.info.gz"
194 aspell-devel_files += "/usr/share/man/man1/pspell-config.1.gz"
196 aspell-docs_files = ""
197 aspell-docs_files += "/usr/share/info"
198 aspell-docs_files += "/usr/share/man"
201 libaspell_files += "aspell.manifest"
202 libaspell_files += "/usr/lib/aspell-0.60/"
203 libaspell_files += "/usr/lib/libaspell.so.15*"
205 aspell-ispell_files = ""
206 aspell-ispell_files += "aspell.manifest"
207 aspell-ispell_files += "/usr/bin/ispell"
209 aspell-spell_files = ""
210 aspell-spell_files += "aspell.manifest"
211 aspell-spell_files += "/usr/bin/spell"
213 FILES_libpspell = "${libpspell_files}"
214 FILES_${PN} = "${aspell_files}"
215 FILES_${PN}-devel = "${aspell-devel_files}"
216 FILES_${PN}-docs = "${aspell-docs_files}"
217 FILES_lib${PN} = "${libaspell_files}"
218 FILES_${PN}-ispell = "${aspell-ispell_files}"
219 FILES_${PN}-spell = "${aspell-spell_files}"
221 PKG_libpspell= "libpspell"
223 PKG_aspell-devel= "aspell-devel"
224 PKG_aspell-docs= "aspell-docs"
225 PKG_libaspell= "libaspell"
226 PKG_aspell-ispell= "aspell-ispell"
227 PKG_aspell-spell= "aspell-spell"
229 require aspell-extraconf.inc