first commit
[scm/bb/meta-tizen.git] / recipes-tizen / remix / remix.inc
1 DESCRIPTION = "An audio sequencing and mixing library"
2 HOMEPAGE = "http://www.metadecks.org/software/remix/"
3 SECTION = "Multimedia/Audio"
4 LICENSE = "LGPL-2.1"
5
6 SRC_URI = ""
7
8 S = "${WORKDIR}/git"
9
10 PROVIDES = ""
11
12 #PROVIDES by libremix 
13 PROVIDES += "libremix"
14 RPROVIDES_libremix += "libremix"
15
16 #PROVIDES by remix-devel 
17 PROVIDES += "remix-devel"
18 RPROVIDES_remix-devel += "remix-devel"
19 RPROVIDES_remix-devel += "remix-dev"
20
21 #PROVIDES by remix 
22 PROVIDES += "remix"
23 RPROVIDES_remix += "remix"
24
25 RDEPENDS = ""
26 #RDEPENDS of remix-devel (${PN}-devel)
27 RDEPENDS_${PN}-devel += "libremix"
28
29
30 DEPENDS = ""
31 #DEPENDS of remix 
32 DEPENDS += "pkgconfig(sndfile)"
33 DEPENDS += "autoconf-native"
34 DEPENDS += "libtool-cross"
35 DEPENDS += "automake-native"
36
37 do_patch() {
38  chmod -Rf a+rX,u+w,g-w,o-w ${S}
39  #setup -q
40  cp ${S}/packaging/remix.manifest .
41  
42  
43 }
44
45 do_configure() {
46 }
47
48 do_compile() {
49  LANG=C
50  export LANG
51  unset DISPLAY
52  CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
53  CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
54  FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
55  LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
56  
57  
58    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
59    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
60    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
61    autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
62          --target=x86_64-tizen-linux \
63          --program-prefix= \
64          --prefix=/usr \
65          --exec-prefix=/usr \
66          --bindir=/usr/bin \
67          --sbindir=/usr/sbin \
68          --sysconfdir=/etc \
69          --datadir=/usr/share \
70          --includedir=/usr/include \
71          --libdir=/usr/lib \
72          --libexecdir=/usr/libexec \
73          --localstatedir=/var \
74          --sharedstatedir=/usr/com \
75          --mandir=/usr/share/man \
76          --infodir=/usr/share/info
77  make -j16
78  
79  
80  
81 }
82
83 do_install() {
84  echo export RPM_BUILD_ROOT=${D}
85  LANG=C
86  export LANG
87  unset DISPLAY
88  rm -rf ${D} 
89  mkdir -p ${D} 
90  
91  
92    oe_runmake \
93          DESTDIR=${D} \
94          INSTALL_ROOT=${D} \
95          BINDIR=/usr/bin \
96    install  
97    rm -f ${D}/usr/share/info/dir 
98    find ${D} -regex ".*\.la$" | xargs rm -f -- 
99    find ${D} -regex ".*\.a$" | xargs rm -f --
100  
101    rm -rf ${D}/usr/share/info 
102    rm -rf ${D}/usr/share/doc/packages 
103    rm -rf ${D}/usr/share/doc/remix 
104    rm -rf ${D}/usr/share/doc/remix-0.2.4 
105    rm -rf ${D}/usr/share/gtk-doc 
106    rm -rf ${D}/usr/share/doc 
107    rm -rf ${D}/usr/share/man 
108    find ${D} -regex ".*/man/man./.*.[0-9]" | xargs rm -f -- 
109    find ${D} -regex ".*/man/../man./.*.[0-9]" | xargs rm -f -- 
110    find ${D} -regex ".*/man/man./.*.[0-9]pm" | xargs rm -f --
111  
112  
113 }
114
115 PACKAGES = ""
116 PACKAGES += "libremix"
117 PACKAGES += "remix-devel"
118
119 libremix_files = ""
120 libremix_files += "remix.manifest"
121 libremix_files += "/usr/lib/libremix.so.*"
122 libremix_files += "/usr/lib/libctxdata.so.*"
123 libremix_files += "/usr/lib/remix"
124 libremix_files += "/usr/lib/remix/libremix_ladspa*"
125 libremix_files += "/usr/lib/remix/libremix_noise*"
126
127 remix-devel_files = ""
128 remix-devel_files += "remix.manifest"
129 remix-devel_files += "/usr/lib/libremix.so"
130 remix-devel_files += "/usr/lib/libctxdata.so"
131 remix-devel_files += "/usr/lib/pkgconfig/*.pc"
132 remix-devel_files += "/usr/include/ctxdata.h"
133 remix-devel_files += "/usr/include/remix"
134 remix-devel_files += "/usr/include/remix/*.h"
135
136 FILES_lib${PN} = "${libremix_files}"
137 FILES_${PN}-devel = "${remix-devel_files}"
138
139 PKG_libremix= "libremix"
140 PKG_remix-devel= "remix-devel"
141
142 require remix-extraconf.inc