Switching to cmake based builds 18/3518/1
authorRusty Lynch <rusty.lynch@intel.com>
Fri, 10 May 2013 20:56:58 +0000 (13:56 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Fri, 10 May 2013 20:56:58 +0000 (13:56 -0700)
The autogen.sh script in this project is pretty horrific and
no longer building on Tizen 3.0 so switch over to the cmake build
along with a quick fix

CMakeLists.txt
packaging/libwebsockets.spec

index 2d5f962..3f9ebdc 100644 (file)
@@ -695,7 +695,7 @@ Cflags: -I\${includedir}"
 )
 
        install(FILES ${PROJECT_BINARY_DIR}/libwebsockets.pc
-               DESTINATION include/pkgconfig)
+               DESTINATION lib${LIB_SUFFIX}/pkgconfig)
 endif()
 
 # Install headers.
index 832dd4a..8f90a0a 100644 (file)
@@ -10,6 +10,7 @@ Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 BuildRequires: zlib-devel
 BuildRequires: openssl-devel
+BuildRequires: cmake
 
 %description
 C Websockets Server Library
@@ -27,8 +28,7 @@ Development files needed for building websocket clients and servers
 
 %build
 
-./autogen.sh
-%configure --enable-openssl
+%cmake -DWITH_SSL=On
 
 make %{?jobs:-j%jobs}