summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCtibor <ctibor.brancik@seznam.cz>2012-12-01 19:59:15 +0100
committerCtibor <ctibor.brancik@seznam.cz>2012-12-01 19:59:15 +0100
commite7d89740ebc17f382a1d285011cce79d53ba829c (patch)
tree56046e731213c4135a958914fe5086725a154e38
parent168ec0df5db163f7fd2a236af93159933b6d3340 (diff)
downloadbrancik-overlay-e7d89740ebc17f382a1d285011cce79d53ba829c.tar.gz
brancik-overlay-e7d89740ebc17f382a1d285011cce79d53ba829c.tar.bz2
Add zlib link patch for =sci/libs/indilib-0.9.6
-rw-r--r--sci-libs/indilib/Manifest9
-rw-r--r--sci-libs/indilib/files/0.6-fix_symlink.patch39
-rw-r--r--sci-libs/indilib/files/0.6-multilib.patch21
-rw-r--r--sci-libs/indilib/files/0.6.2-fix_fits_harddep.patch18
-rw-r--r--sci-libs/indilib/files/0.6.2-fix_symlinks.patch23
-rw-r--r--sci-libs/indilib/files/0.7.2-fix_linking_pthread.patch12
-rw-r--r--sci-libs/indilib/files/0.7.2-fix_pkgconfig.patch10
-rw-r--r--sci-libs/indilib/files/0.9.6-fix-zlib-link.patch57
-rw-r--r--sci-libs/indilib/indilib-0.9.6.ebuild1
9 files changed, 60 insertions, 130 deletions
diff --git a/sci-libs/indilib/Manifest b/sci-libs/indilib/Manifest
index 945150c..ccaa7f1 100644
--- a/sci-libs/indilib/Manifest
+++ b/sci-libs/indilib/Manifest
@@ -1,10 +1,5 @@
-AUX 0.6-fix_symlink.patch 3035 SHA256 180a1fd4b0939efbedb675f90d6b9f96bcd2516c59bea0f87be79083bd83b87a SHA512 30e77b9336ae12a329cea7b07eae0e209c611ab853ccd91c1b7409a3736eb62aa97da3c3bec165141398ced33d2cac08a36751e10f844bd21e0e039cca52ac75 WHIRLPOOL 7a357dd76d1a866ab2c23226ab55217b9b7aa464ac5241010502e4e26f3476e428e7bf89e353077b201e793cac69b79a89a972c4a0717abf627fdf3f8b002a8f
-AUX 0.6-multilib.patch 928 SHA256 cf56386ea42c474be1cbe6a3a9883e205001eaba34b0055e94483902a901a6be SHA512 fd9ec22a8765f8c7da350b1ab65746e3bc009b0e3affc4f3ff6c1cffedfb04e21f1666e6b9254c519389cd1968152ac49805b7e3f2e1f7f31cf0144e7558ab85 WHIRLPOOL 314a087ce37a0e16c8c340b1dedcbc1881320a35916c2e93210b2556f0b0a2ddd15e61772d2ba6dd97364ffa57b00362a9ac96cd9be7c342307b2b4a532da4e5
-AUX 0.6.2-fix_fits_harddep.patch 1061 SHA256 f4488c695276b827e656bbe4231007b129e1d3173781666d7f7ff68a41e2a4d7 SHA512 84fb983631ea80e8f6d32405af2160af61e2f12c3ed9d606bed2e6af900853a10d94a504d5c6b38db2268811f1a137521ec51e30163adff7ce384e164296798d WHIRLPOOL 69d55519699cad80bdeb14e7a1b0f9d8228f3bee180c260d866a8e7db63d28cdd3f7d6ac7f31113bd47cc87d1a981ba8ff215699b7dbc47149ffefa039635643
-AUX 0.6.2-fix_symlinks.patch 2298 SHA256 bcd19347ceb8a085920952f28dfce724cff48e4f10af4fede8c962e812e61caa SHA512 c44a9d9d09b561ceef475fba9bd0dab850ae8ee8b5f23b98206cfe4514e51ffb5546bea230fd9c6057ea0c0adbefc9471b2f9771a78750378fe04ec7efe377ab WHIRLPOOL 5622b2a6ab8dececeafa14c918f7465e5fb9f233a7c8e60f5044ca28d111047a3cbd9b538795cda24ba0cb7f5a5e5b18b1c76a58983e3352f8cbc0a2e848fb80
-AUX 0.7.2-fix_linking_pthread.patch 591 SHA256 939b8004e8d651b2ab5b42ca75390ab3d489d81bbd32c00f0e0c54babd7fcc22 SHA512 a628696ec9c5a0439cf3796ab87865b63a1cb7d4fd6ea2bfe1e5db3db4fa529d71105373c19f6c913bf1c3717d7ce98c24b2f91bc869a8935e717e394e225688 WHIRLPOOL 82c3c2eba298fdabf8ba58979688c2df6c152891e9755ac6da472454ca62988d8c6049ebff11ff49e4d74aa8c3d76ed72c8eabcf80530e715a2f191cdea1aa37
-AUX 0.7.2-fix_pkgconfig.patch 470 SHA256 1560353a1ab879c533c5186bd029efdb612bca7024fe280ed3d6e0e3b294ab56 SHA512 6da69105e15134b5d6ecff11aec961d81e2473b70c91d8f05bef3abd22c773ee6d51b6f7a5147776cb6b0ad811059c638dd789981caab07cee3c13fa0bac0ea6 WHIRLPOOL 2fad33c6654d7401b4834799da082b23616e840229ff9cb6df30958c1fd685f25c2436134b1c740550eade942b5ef5d529c3b735d44daeec190661053ec36fd4
+AUX 0.9.6-fix-zlib-link.patch 1768 SHA256 02ad660c72db54ff07b00f178c067de5e2d70729ef35463d28acd3629cf26ba3 SHA512 2134baf8d0bf9472601350e5b3288a13fcd786cb46f12dc268797f3ebfeb14a216993554593a13d688c6932d8af360a4b02644cbf26be3264ddc59f1e536a8a2 WHIRLPOOL 2d532560f9b228946068c5328a754faf4ffaf4bad32d3bb5cc9c73b8164b60c4dee01d4187b0e56ee3028ae1a0221d5d021d723c461d0929959dd9b2977f7b1d
DIST libindi_0.9.6.tar.gz 393523 SHA256 44ef0a943fe9f312f874b2e76b9892bd850c60cbd936f608fb2c224375d6d0b3 SHA512 6fb07652dfd64894c80cb3f91cf2e94af27b5bded5ae3d9bfeab93c501f4f9ab64e24fe377e65bba9bba92cd1858df5ec0626cc19a26d3f8d3f4cec314fb42bd WHIRLPOOL 571da798d3869a14feefde887854dc9e036a50ed1e05adf2e88c83cd340c38f84678596638d82cabb3dbbe7e6f0ddd38243f2cdde6faf5eb9fb9b57d9e979338
-EBUILD indilib-0.9.6.ebuild 1152 SHA256 846e991f9e0b47338bb23f10fe82d6cd9f759de697b22fbe25dd248bbe8c6476 SHA512 15baf8298889d26713b0432679195fb8fad063b3fb30b87b7fbe33bdf55bbd7b7118553049b4476cb1ea8954e52f58733879c61c6af806963fad477872bc25ce WHIRLPOOL 230bbe32cef66356b019b873047d0382b4f4ba04c48edf4babb4ef8357f63747f38dc53cbf8cb7656ebab82386b01a3d48d788e8582829e0235d2449b2efc8d7
+EBUILD indilib-0.9.6.ebuild 1201 SHA256 21ddaff977a7090f22d5cd2ec71b05cedef028b8f632e5a60c076cc70d82daa7 SHA512 756fbc2736d08588b3882c31565acbdf1a5adfaf8323834f2e5e7cf3074912d02eb9ed9459961a654fadd3e24842edcacf4958bc2bb28a602d40d09968bf7f4b WHIRLPOOL d96f17b912cdb0a6321365c045e52b4efc0a2035b7a87084d64a69521e8df808d55a09ae8816a6e1304f24e4a30bd7806d1afe67227d605a72feb290660ced5f
MISC ChangeLog 2974 SHA256 c28223cc80b24de4f1e0f7fbaefecede219e1524b8a858c49a2cd59ed9b0aa57 SHA512 33e6dc584f8ae66a2617a907674bfc8c45c1fb7486489429b05452085312920ecbe26a592794af208c0748ea5c8d0ae8dafc480918d47c01e7cc7ee39425f925 WHIRLPOOL a5ca2f339e7503f8766b826aa3bb84d8c0b1c9b3ed9b337a32ec646d931507dd6c029084360dc6cd7d0a25052926ca152c07533de8c138b2be4aba14d304409d
MISC metadata.xml 335 SHA256 34a0ab97703e3c50a0e80344d8275f27f6d138becfc3c5ada3c4daa688d8e3ef SHA512 89ed49eca1091ba5cd4aadedea903f2dc24d50466b63e2deb96b61c869558ee1619dc24bbe2b008880c94e41a0457db5bfe95ed0d60a0f1f97da6e993f7f8db2 WHIRLPOOL 3b1a32eb17cda554dd5b377d804ee6c2fb13f5f802f5cf2a70a45bdc4cfd895b17bbc67e0e178e66182e253bb3540d3b29242a5bb1ebe56a5504269c792bbd77
diff --git a/sci-libs/indilib/files/0.6-fix_symlink.patch b/sci-libs/indilib/files/0.6-fix_symlink.patch
deleted file mode 100644
index cf447c0..0000000
--- a/sci-libs/indilib/files/0.6-fix_symlink.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -urN libindi0-0.6.old/CMakeLists.txt libindi0-0.6/CMakeLists.txt
---- libindi0-0.6.old/CMakeLists.txt 2008-11-18 10:45:06.000000000 +0100
-+++ libindi0-0.6/CMakeLists.txt 2009-09-07 12:49:21.000000000 +0200
-@@ -146,7 +146,7 @@
- ${CMAKE_SOURCE_DIR}/drivers/telescope/lx200gps.cpp
- ${CMAKE_SOURCE_DIR}/drivers/telescope/lx200generic.cpp
- ${CMAKE_SOURCE_DIR}/drivers/telescope/lx200classic.cpp
-- ${CMAKE_SOURCE_DIR}/drivers/telescope/lx200apdriver.c
-+ ${CMAKE_SOURCE_DIR}/drivers/telescope/lx200apdriver.c
- ${CMAKE_SOURCE_DIR}/drivers/telescope/lx200ap.cpp )
-
- add_executable(indi_lx200generic ${lx200generic_SRCS} ${liblilxml_SRCS} ${libindicom_SRCS})
-@@ -159,14 +159,11 @@
-
- install(TARGETS indi_lx200generic RUNTIME DESTINATION bin )
-
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_lx200generic_symlink.cmake
--"exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200classic)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200autostar)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200_16)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200gps)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200ap)\n
--")
--set_target_properties(indi_lx200generic PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_lx200generic_symlink.cmake)
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}/${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200classic\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}//${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200autostar\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}//${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200_16\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}//${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200gps\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}//${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200ap\" )" )
- #################################################################################
-
- ########### Celestron GPS ############
-@@ -521,4 +518,4 @@
-
- install( FILES indiapi.h indidevapi.h base64.h eventloop.h ${CMAKE_SOURCE_DIR}/libs/lilxml.h
- ${CMAKE_SOURCE_DIR}/libs/indicom.h DESTINATION ${INCLUDE_INSTALL_DIR}/libindi COMPONENT Devel)
--
-\ Chybí znak konce řádku na konci souboru
-+
diff --git a/sci-libs/indilib/files/0.6-multilib.patch b/sci-libs/indilib/files/0.6-multilib.patch
deleted file mode 100644
index 3f7ab72..0000000
--- a/sci-libs/indilib/files/0.6-multilib.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -urN libindi0-0.6.old/CMakeLists.txt libindi0-0.6/CMakeLists.txt
---- libindi0-0.6.old/CMakeLists.txt 2008-11-18 10:45:06.000000000 +0100
-+++ libindi0-0.6/CMakeLists.txt 2009-09-15 10:35:17.000000000 +0200
-@@ -96,7 +96,7 @@
- ######## INDI Static Library #########
- ######################################
- add_library(indidriver STATIC ${indimain_SRCS})
--install(TARGETS indidriver ARCHIVE DESTINATION lib${LIB_POSTFIX})
-+install(TARGETS indidriver ARCHIVE DESTINATION lib${LIB_SUFFIX})
-
- ######################################
- ######## INDI Shared Library #########
-@@ -114,7 +114,7 @@
- target_link_libraries(indi ${FLI_LIBRARIES})
- endif(FLI_FOUND)
-
--install(TARGETS indi LIBRARY DESTINATION lib${LIB_POSTFIX})
-+install(TARGETS indi LIBRARY DESTINATION lib${LIB_SUFFIX})
- set_target_properties(indi PROPERTIES VERSION ${INDI_VERSION} SOVERSION ${INDI_SOVERSION})
-
- #####################################
diff --git a/sci-libs/indilib/files/0.6.2-fix_fits_harddep.patch b/sci-libs/indilib/files/0.6.2-fix_fits_harddep.patch
deleted file mode 100644
index ac033bf..0000000
--- a/sci-libs/indilib/files/0.6.2-fix_fits_harddep.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff -urN libindi-0.6.2/CMakeLists.txt libindi-0.6.2.new//CMakeLists.txt
---- libindi-0.6.2/CMakeLists.txt 2010-07-20 06:40:26.000000000 +0200
-+++ libindi-0.6.2.new//CMakeLists.txt 2010-08-20 11:04:46.803858551 +0200
-@@ -37,9 +37,11 @@
-
- macro_optional_find_package(CFITSIO)
-
--if (NOT CFITSIO_FOUND OR CFITSIO_VERSION_MAJOR LESS 3)
-- message(FATAL_ERROR "CFITSIO version too old, Please install cfitsio 3.x and try again. http://indi.sf.net")
--endif (NOT CFITSIO_FOUND OR CFITSIO_VERSION_MAJOR LESS 3)
-+if (WITH_CFITSIO)
-+ if (NOT CFITSIO_FOUND OR CFITSIO_VERSION_MAJOR LESS 3)
-+ message(FATAL_ERROR "CFITSIO version too old, Please install cfitsio 3.x and try again. http://indi.sf.net")
-+ endif (NOT CFITSIO_FOUND OR CFITSIO_VERSION_MAJOR LESS 3)
-+endif (WITH_CFITSIO)
-
- macro_bool_to_01(CFITSIO_FOUND HAVE_CFITSIO_H)
- macro_log_feature(CFITSIO_FOUND "libcfitsio" "A library for reading and writing data files in FITS (Flexible Image Transport System) data format" "http://indi.sf.net" FALSE "3.03" "Provides INDI with FITS I/O support.")
diff --git a/sci-libs/indilib/files/0.6.2-fix_symlinks.patch b/sci-libs/indilib/files/0.6.2-fix_symlinks.patch
deleted file mode 100644
index 9b0255e..0000000
--- a/sci-libs/indilib/files/0.6.2-fix_symlinks.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -urN libindi-0.6.2/CMakeLists.txt libindi-0.6.2.new//CMakeLists.txt
---- libindi-0.6.2/CMakeLists.txt 2010-07-20 06:40:26.000000000 +0200
-+++ libindi-0.6.2.new//CMakeLists.txt 2010-08-20 11:12:31.668952699 +0200
-@@ -178,14 +178,11 @@
-
- install(TARGETS indi_lx200generic RUNTIME DESTINATION bin )
-
--file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_lx200generic_symlink.cmake
--"exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200classic)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200autostar)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200_16)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200gps)\n
--exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${BIN_INSTALL_DIR}/indi_lx200generic ${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200ap)\n
--")
--set_target_properties(indi_lx200generic PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_lx200generic_symlink.cmake)
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}/${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200classic\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}/${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200autostar\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}/${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200_16\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}/${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200gps\" )" )
-+install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink \"${BIN_INSTALL_DIR}/indi_lx200generic\" \"\$ENV{DESTDIR}/${BUILD_ROOT}${BIN_INSTALL_DIR}/indi_lx200ap\" )" )
- #################################################################################
-
- ########### Celestron GPS ############
diff --git a/sci-libs/indilib/files/0.7.2-fix_linking_pthread.patch b/sci-libs/indilib/files/0.7.2-fix_linking_pthread.patch
deleted file mode 100644
index 7ea0330..0000000
--- a/sci-libs/indilib/files/0.7.2-fix_linking_pthread.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN libindi-0.7.2.old/CMakeLists.txt libindi-0.7.2/CMakeLists.txt
---- libindi-0.7.2.old/CMakeLists.txt 2011-01-13 13:56:50.773108903 +0100
-+++ libindi-0.7.2/CMakeLists.txt 2011-01-13 14:12:52.486108902 +0100
-@@ -164,7 +164,7 @@
- ############# INDI Client Library ################
- ##################################################
- add_library(indiclient STATIC ${indibase_SRCS})
--target_link_libraries(indiclient indi)
-+target_link_libraries(indiclient indi pthread)
- install(TARGETS indiclient ARCHIVE DESTINATION lib${LIB_POSTFIX})
-
- #####################################
diff --git a/sci-libs/indilib/files/0.7.2-fix_pkgconfig.patch b/sci-libs/indilib/files/0.7.2-fix_pkgconfig.patch
deleted file mode 100644
index 0617531..0000000
--- a/sci-libs/indilib/files/0.7.2-fix_pkgconfig.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-diff -urN libindi-0.7.2.old/libindi.pc.cmake libindi-0.7.2/libindi.pc.cmake
---- libindi-0.7.2.old/libindi.pc.cmake 2011-01-13 13:56:50.769108903 +0100
-+++ libindi-0.7.2/libindi.pc.cmake 2011-01-13 13:57:13.421108903 +0100
-@@ -8,5 +8,5 @@
- URL=http://www.indilib.org/
- Version: @CMAKE_INDI_VERSION_STRING@
- Libs: -L@LIB_DESTINATION@ -lindi
--Cflags: -I@INCLUDE_INSTALL_DIR@ -@INCLUDE_INSTALL_DIR@/libindi
-+Cflags: -I@INCLUDE_INSTALL_DIR@ -I@INCLUDE_INSTALL_DIR@/libindi
-
diff --git a/sci-libs/indilib/files/0.9.6-fix-zlib-link.patch b/sci-libs/indilib/files/0.9.6-fix-zlib-link.patch
new file mode 100644
index 0000000..d833bc4
--- /dev/null
+++ b/sci-libs/indilib/files/0.9.6-fix-zlib-link.patch
@@ -0,0 +1,57 @@
+
+--- libindi-0.9.6/CMakeLists.txt 2012-11-19 21:39:14.000000000 +0100
++++ libindi-0.9.6_new/CMakeLists.txt 2012-12-01 19:54:47.199396572 +0100
+@@ -633,7 +633,7 @@
+
+ add_executable(tutorial_one ${tutorialone_SRCS})
+
+-target_link_libraries(tutorial_one indidriver m)
++target_link_libraries(tutorial_one indidriver m ${ZLIB_LIBRARIES})
+
+ ########### Tutorial two ##############
+ set(tutorialtwo_SRCS
+@@ -643,7 +643,7 @@
+
+ add_executable(tutorial_two ${tutorialtwo_SRCS})
+
+-target_link_libraries(tutorial_two indidriver m)
++target_link_libraries(tutorial_two indidriver m ${ZLIB_LIBRARIES})
+
+ ########### Tutorial three ##############
+ if (CFITSIO_FOUND)
+@@ -654,7 +654,7 @@
+
+ add_executable(tutorial_three ${tutorialthree_SRCS})
+
+-target_link_libraries(tutorial_three indidriver m)
++target_link_libraries(tutorial_three indidriver m ${ZLIB_LIBRARIES})
+ endif (CFITSIO_FOUND)
+ ########### Tutorial four ##############
+ set(tutorialfour_SRCS
+@@ -664,7 +664,7 @@
+
+ add_executable(tutorial_four ${tutorialfour_SRCS})
+
+-target_link_libraries(tutorial_four indidriver m)
++target_link_libraries(tutorial_four indidriver m ${ZLIB_LIBRARIES})
+
+ ########### Tutorial five - dome driver ##############
+ set(tutorialdome_SRCS
+@@ -674,7 +674,7 @@
+
+ add_executable(tutorial_dome ${tutorialdome_SRCS})
+
+-target_link_libraries(tutorial_dome indidriver)
++target_link_libraries(tutorial_dome indidriver ${ZLIB_LIBRARIES})
+
+ ########### Tutorial five - rain driver ##############
+ set(tutorialrain_SRCS
+@@ -684,7 +684,7 @@
+
+ add_executable(tutorial_rain ${tutorialrain_SRCS})
+
+-target_link_libraries(tutorial_rain indidriver)
++target_link_libraries(tutorial_rain indidriver ${ZLIB_LIBRARIES})
+
+ ########### Client Tutorial ##############
+ set(tutorialclient_SRCS \ No newline at end of file
diff --git a/sci-libs/indilib/indilib-0.9.6.ebuild b/sci-libs/indilib/indilib-0.9.6.ebuild
index 2cb55b6..d1b568e 100644
--- a/sci-libs/indilib/indilib-0.9.6.ebuild
+++ b/sci-libs/indilib/indilib-0.9.6.ebuild
@@ -38,6 +38,7 @@ src_prepare() {
sed -i \
-e "s:\${LIB_POSTFIX}:\${LIB_SUFFIX}:g" \
CMakeLists.txt || die "sed failed"
+ epatch "${FILESDIR}/0.9.6-fix-zlib-link.patch"
}
src_configure() {