forked from rock-simulation/simulation-package_set
-
Notifications
You must be signed in to change notification settings - Fork 0
/
minizip.patch
67 lines (67 loc) · 1.46 KB
/
minizip.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- minizip/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ minizip/CMakeLists.txt 2012-08-08 11:21:49 +0000
@@ -0,0 +1,42 @@
+project(minizip)
+cmake_minimum_required(VERSION 2.6)
+
+# Position independant code
+if(NOT WIN32)
+set(CMAKE_C_FLAGS "-fPIC")
+endif(NOT WIN32)
+
+set(PROJECT_VERSION 1.0)
+set(PROJECT_DESCRIPTION "Minizip")
+
+
+set(SOURCES unzip.c
+ zip.c
+ ioapi.c
+)
+
+add_definitions(-DUSE_FILE32API)
+add_library(${PROJECT_NAME} STATIC ${SOURCES})
+
+TARGET_LINK_LIBRARIES(${PROJECT_NAME}
+ ${PKGCONFIG_LIBRARIES}
+)
+
+file(GLOB public_headers ./[a-z]*.h)
+
+install(
+ FILES ${public_headers}
+ DESTINATION include/minizip
+)
+
+install(TARGETS ${PROJECT_NAME}
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+set(PC_FILE ${CMAKE_BINARY_DIR}/minizip.pc)
+configure_file("minizip.pc.in" ${PC_FILE} @ONLY)
+install(FILES ${PC_FILE} DESTINATION lib/pkgconfig)
+
+
+
--- minizip/manifest.xml 1970-01-01 00:00:00 +0000
+++ minizip/manifest.xml 2012-08-08 11:09:47 +0000
@@ -0,0 +1,4 @@
+<package>
+ <description>Compress/uncompress files.</description>
+ <rosdep name="zlib" />
+</package>
--- minizip/minizip.pc.in 1970-01-01 00:00:00 +0000
+++ minizip/minizip.pc.in 2012-08-08 11:09:47 +0000
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@
+libdir=${prefix}/lib
+includedir=${prefix}/include/
+
+Name: minizip
+Description: Minizip
+Version: @PROJECT_VERSION@
+Libs: -L${libdir} -lminizip
+
+Cflags: -I${includedir}
+