1 DESCRIPTION = "Pkg xdgmime"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "TO_BE/FILLED_IN"
4 LICENSE = "LGPLv2, AFLv2"
10 inherit autotools-brokensep
14 #PROVIDES by xdgmime-dev
21 #RDEPENDS of xdgmime-dev (${PN}-dev)
22 RDEPENDS_${PN}-dev += "xdgmime"
27 DEPENDS_append_class-native = " cmake-native"
28 DEPENDS_append_class-target = " cmake-native"
32 chmod -Rf a+rX,u+w,g-w,o-w ${S}
34 cp ${S}/packaging/xdgmime.manifest .
39 bb.build.exec_func('do_prep', d)
50 CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
51 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
52 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
53 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
56 CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ;
57 CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
58 FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ;
60 -DCMAKE_VERBOSE_MAKEFILE=ON \
61 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
62 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
63 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
64 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
65 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
66 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
67 -DCMAKE_SKIP_RPATH:BOOL=ON \
68 -DBUILD_SHARED_LIBS:BOOL=ON .
77 echo export RPM_BUILD_ROOT=${D}
89 BINDIR=${prefix}/bin \
91 rm -f ${D}${infodir}/dir
92 find ${D} -regex ".*\.la$" | xargs rm -f --
93 find ${D} -regex ".*\.a$" | xargs rm -f --
99 xdgmime-dev_files = ""
100 xdgmime-dev_files += "xdgmime.manifest"
101 xdgmime-dev_files += "${prefix}/include/xdgmime.h"
102 xdgmime-dev_files += "${prefix}/lib/libxdgmime.so"
103 xdgmime-dev_files += "${prefix}/lib/pkgconfig/xdgmime.pc"
106 xdgmime_files += "xdgmime.manifest"
107 xdgmime_files += "${prefix}/lib/libxdgmime.so.*"
108 xdgmime_files += "xdgmime.manifest"
110 FILES_${PN}-dev = "${xdgmime-dev_files}"
111 FILES_${PN} = "${xdgmime_files}"
113 PKG_xdgmime-dev= "xdgmime-dev"
114 PKG_xdgmime= "xdgmime"
116 require xdgmime-extraconf.inc