1 DESCRIPTION = "Simplified Wrapper and Interface Generator"
2 HOMEPAGE = "http://www.swig.org/"
3 SECTION = "Development/Languages/C and C++"
4 LICENSE = "GPL-3.0+ and BSD-3-Clause"
14 RPROVIDES_swig += "swig"
16 #PROVIDES by swig-examples
17 PROVIDES += "swig-examples"
18 RPROVIDES_swig-examples += "swig-examples"
21 PROVIDES += "swig-doc"
22 RPROVIDES_swig-doc += "swig-doc"
25 #RDEPENDS of swig-examples (${PN}-examples)
26 RDEPENDS_${PN}-examples += "swig"
28 #RDEPENDS of swig-doc (${PN}-doc)
29 RDEPENDS_${PN}-doc += "swig"
35 DEPENDS += "gcc-cross"
36 DEPENDS += "fdupes-native"
38 DEPENDS += "automake-native"
40 DEPENDS += "libtool-cross"
41 DEPENDS += "autoconf-native"
45 chmod -Rf a+rX,u+w,g-w,o-w ${S}
47 cp ${S}/packaging/swig.manifest .
59 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
60 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
61 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
62 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
66 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
67 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
68 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
69 autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
70 --target=x86_64-tizen-linux \
77 --datadir=/usr/share \
78 --includedir=/usr/include \
80 --libexecdir=/usr/libexec \
81 --localstatedir=/var \
82 --sharedstatedir=/usr/com \
83 --mandir=/usr/share/man \
84 --infodir=/usr/share/info --disable-ccache
89 rm -f Examples/test-suite/python/li_std_containers_int_runme.py
90 rm -f Examples/test-suite/python/li_boost_shared_ptr_runme.py
98 echo export RPM_BUILD_ROOT=${D}
111 rm -f ${D}/usr/share/info/dir
112 find ${D} -regex ".*\.la$" | xargs rm -f --
113 find ${D} -regex ".*\.a$" | xargs rm -f --
115 install -d ${D}/usr/share/doc/packages/swig
116 cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
117 ${D}/usr/share/doc/packages/swig
118 install -d ${D}/usr/lib/swig
119 cp -a Examples ${D}/usr/lib/swig/examples
120 rm -rf ${D}/usr/lib/swig/examples/test-suite
122 # rm files that are not needed for running or rebuilding the examples
123 find ${D}/usr/lib/swig \
124 -name '*.dsp' -o -name '*.vcproj' -o -name '*.sln' -o \
125 -name '*.o' -o -name '*_wrap.c' | xargs rm
128 chmod -x ${D}/usr/share/doc/packages/swig/Manual/*
129 find ${D}/usr/lib/swig -name '*.h' -perm +111 | \
130 xargs --no-run-if-empty chmod -x
131 ln -s /usr/lib/swig/examples ${D}/usr/share/doc/packages/swig/Examples
137 fdupes -q -n -r ${D} |
139 if test -z "$_target" ; then
142 if test -z "$_file" ; then
146 if test "$_symlinks" = 1; then
147 ln -sf "${_target#${D}}" "$_file";
149 ln -f "$_target" "$_file";
159 PACKAGES += "swig-doc"
160 PACKAGES += "swig-examples"
163 swig_files += "swig.manifest"
164 swig_files += "/usr/share/doc/packages/swig"
165 swig_files += "/usr/share/doc/packages/swig/[A-Z][A-Z]*"
166 swig_files += "/usr/share/swig"
169 swig-doc_files += "swig.manifest"
170 swig-doc_files += "/usr/share/doc/packages/swig/Devel"
171 swig-doc_files += "/usr/share/doc/packages/swig/Manual"
173 swig-examples_files = ""
174 swig-examples_files += "swig.manifest"
175 swig-examples_files += "/usr/share/doc/packages/swig/Examples"
176 swig-examples_files += "/usr/lib/swig"
178 FILES_${PN} = "${swig_files}"
179 FILES_${PN}-doc = "${swig-doc_files}"
180 FILES_${PN}-examples = "${swig-examples_files}"
183 PKG_swig-doc= "swig-doc"
184 PKG_swig-examples= "swig-examples"
186 require swig-extraconf.inc