svn commit: r435388 - in head/graphics/libqrencode: . files
Vanilla I. Shu
vanilla at FreeBSD.org
Sat Mar 4 11:34:34 UTC 2017
Author: vanilla
Date: Sat Mar 4 11:34:32 2017
New Revision: 435388
URL: https://svnweb.freebsd.org/changeset/ports/435388
Log:
1: add version of shared library.
2: fix libqrencode.pc.
Added:
head/graphics/libqrencode/files/
head/graphics/libqrencode/files/patch-CMakeLists.txt (contents, props changed)
Modified:
head/graphics/libqrencode/Makefile
Modified: head/graphics/libqrencode/Makefile
==============================================================================
--- head/graphics/libqrencode/Makefile Sat Mar 4 11:29:16 2017 (r435387)
+++ head/graphics/libqrencode/Makefile Sat Mar 4 11:34:32 2017 (r435388)
@@ -3,6 +3,7 @@
PORTNAME= libqrencode
PORTVERSION= 3.9.0
+PORTREVISION= 1
CATEGORIES= graphics
DISTNAME= qrencode-${PORTVERSION}
@@ -26,6 +27,8 @@ CMAKE_ARGS= -DBUILD_SHARED_LIBS=ON
PLIST_FILES= bin/qrencode \
include/qrencode.h \
lib/libqrencode.so \
+ lib/libqrencode.so.3 \
+ lib/libqrencode.so.3.9.0 \
libdata/pkgconfig/libqrencode.pc \
man/man1/qrencode.1.gz
Added: head/graphics/libqrencode/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/libqrencode/files/patch-CMakeLists.txt Sat Mar 4 11:34:32 2017 (r435388)
@@ -0,0 +1,27 @@
+--- CMakeLists.txt.orig 2017-02-05 05:47:23 UTC
++++ CMakeLists.txt
+@@ -101,10 +101,17 @@ if(BUILD_SHARED_LIBS)
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+ endif()
+ add_library(qrencode SHARED ${QRENCODE_SRCS} ${QRENCODE_HDRS})
++ set_target_properties(qrencode PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} SOVERSION ${PROJECT_VERSION_MAJOR})
+ else()
+ add_library(qrencode ${QRENCODE_SRCS} ${QRENCODE_HDRS})
+ endif()
+
++set(prefix "${CMAKE_INSTALL_PREFIX}")
++set(exec_prefix "${CMAKE_INSTALL_PREFIX}/bin")
++set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
++set(includedir "${CMAKE_INSTALL_PREFIX}/include")
++set(VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
++
+ configure_file(qrencode.1.in qrencode.1 @ONLY)
+ configure_file(libqrencode.pc.in libqrencode.pc @ONLY)
+
+@@ -166,4 +173,4 @@ message(STATUS " Project configuration:"
+ message(STATUS " .. Build test programs ........ = ${WITH_TESTS}" )
+ message(STATUS " .. Build utility tools ........ = ${WITH_TOOLS}" )
+ message(STATUS " .. Installation prefix ......... = ${CMAKE_INSTALL_PREFIX}" )
+-message(STATUS "------------------------------------------------------------ ")
+\ No newline at end of file
++message(STATUS "------------------------------------------------------------ ")
More information about the svn-ports-head
mailing list