diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-07-02 00:20:20 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-07-02 00:20:20 +0800 |
commit | 38a0c09fc84a8e4bc3fcb458efe2fe3bb602038a (patch) | |
tree | 8c474ec8412a37811b295bfc268057c579382391 /net | |
parent | 327d2f3d1af1e0ee3e5afbb3ecf67b4cd2f4d6e0 (diff) | |
download | freebsd-ports-gnome-38a0c09fc84a8e4bc3fcb458efe2fe3bb602038a.tar.gz freebsd-ports-gnome-38a0c09fc84a8e4bc3fcb458efe2fe3bb602038a.tar.zst freebsd-ports-gnome-38a0c09fc84a8e4bc3fcb458efe2fe3bb602038a.zip |
- Update to 1.0.0
- Refresh patch files
- Add LICENSE_FILE
PR: 201206
Submitted by: gasol.wu@gmail.com (maintainer)
Diffstat (limited to 'net')
-rw-r--r-- | net/libcapn/Makefile | 7 | ||||
-rw-r--r-- | net/libcapn/distinfo | 4 | ||||
-rw-r--r-- | net/libcapn/files/patch-CMakeLists.txt | 55 | ||||
-rw-r--r-- | net/libcapn/files/patch-libcapn.pc.cmake | 8 |
4 files changed, 31 insertions, 43 deletions
diff --git a/net/libcapn/Makefile b/net/libcapn/Makefile index 3352d9bb44f4..26abd1c368dd 100644 --- a/net/libcapn/Makefile +++ b/net/libcapn/Makefile @@ -2,14 +2,14 @@ # $FreeBSD$ PORTNAME= libcapn -DISTVERSION= 1.0.0beta3 -PORTREVISION= 2 +PORTVERSION= 1.0.0 CATEGORIES= net MAINTAINER= gasol.wu@gmail.com COMMENT= C Library to interact with Apple Push Notification Service LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson @@ -18,6 +18,7 @@ GH_ACCOUNT= adobkin USES= cmake USE_LDCONFIG= yes -CMAKE_ARGS= -DOS_FREEBSD=yes +CMAKE_ARGS= -DOS_FREEBSD=yes \ + -DCAPN_INSTALL_PATH_PKGCONFIG=${PREFIX}/libdata/pkgconfig .include <bsd.port.mk> diff --git a/net/libcapn/distinfo b/net/libcapn/distinfo index c3dea917ac73..dea0810bb1ea 100644 --- a/net/libcapn/distinfo +++ b/net/libcapn/distinfo @@ -1,2 +1,2 @@ -SHA256 (adobkin-libcapn-1.0.0beta3_GH0.tar.gz) = e075f391b6040ba7e2436a93b1dce26bc2825b7e5eb8299d0f1fadf003a129c4 -SIZE (adobkin-libcapn-1.0.0beta3_GH0.tar.gz) = 348313 +SHA256 (adobkin-libcapn-1.0.0_GH0.tar.gz) = 03929c13847b059e701edd06c83ff7d024e0aabdf73b684297b65dc717ed8cb9 +SIZE (adobkin-libcapn-1.0.0_GH0.tar.gz) = 1694326 diff --git a/net/libcapn/files/patch-CMakeLists.txt b/net/libcapn/files/patch-CMakeLists.txt index c7995d87558b..e0027db8808f 100644 --- a/net/libcapn/files/patch-CMakeLists.txt +++ b/net/libcapn/files/patch-CMakeLists.txt @@ -1,6 +1,6 @@ ---- ./CMakeLists.txt.orig 2013-04-27 14:08:27.000000000 +0800 -+++ ./CMakeLists.txt 2014-02-21 08:53:47.000000000 +0800 -@@ -48,20 +48,6 @@ +--- CMakeLists.txt.orig 2014-02-27 11:34:53 UTC ++++ CMakeLists.txt +@@ -65,19 +65,9 @@ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8) INCLUDE(ExternalProject) @@ -17,44 +17,39 @@ - -INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_SOURCE_DIR}/jansson") -INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_SOURCE_DIR}/jansson/include") -- - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h") - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/src/version.h") ++FIND_PATH(JANSSON_INCLUDES jansson.h) ++INCLUDE_DIRECTORIES(${JANSSON_INCLUDES}) ++FIND_LIBRARY(JANSSON_LIBRARIES jansson) -@@ -86,7 +72,7 @@ - ENDIF(APN_ARCH_X86_64 AND OS_LINUX) + CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h.cmake" "${PROJECT_BINARY_DIR}/src/platform.h") + CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.cmake" "${PROJECT_BINARY_DIR}/src/version.h") +@@ -123,7 +113,7 @@ IF(UNIX) + ENDIF(CAPN_ARCH_X86_64 AND OS_LINUX) ENDIF(LIB_SUFFIX) -- SET(APN_INSTALL_PATH_LIB "${APN_INSTALL_PATH_LIB}/${APN_LIB_NAME}") -+ SET(APN_INSTALL_PATH_LIB "${APN_INSTALL_PATH_LIB}") - SET(APN_INSTALL_PATH_HEADERS "include/${APN_LIB_NAME}") - SET(APN_INSTALL_PATH_BIN "bin") - -@@ -126,12 +112,9 @@ - SET(APN_INSTALL_FULL_PATH_LIB ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}) - MARK_AS_ADVANCED(APN_INSTALL_FULL_PATH_LIB) +- SET(CAPN_INSTALL_PATH_LIB "${CAPN_INSTALL_PATH_LIB}/${CAPN_LIB_NAME}") ++ SET(CAPN_INSTALL_PATH_LIB "${CAPN_INSTALL_PATH_LIB}") + SET(CAPN_PKGCONF_FILE_NAME "libcapn.pc") + CONFIGURE_FILE("${CAPN_PKGCONF_FILE_NAME}.cmake" ${PROJECT_BINARY_DIR}/${CAPN_PKGCONF_FILE_NAME}) + +@@ -142,12 +132,9 @@ IF(UNIX) + + ENDIF(UNIX) -FILE (GLOB JANSSON_SOURCE_FILES jansson/src/*.c) - - SET(APN_SOURCE_FILES + SET(CAPN_SOURCE_FILES src/apn.c src/apn_strings.c - ${JANSSON_SOURCE_FILES} ) - SET(APN_PUBLIC_HEADER_FILES -@@ -175,8 +158,14 @@ - ADD_CUSTOM_TARGET(zip COMMAND ${PROJECT_BINARY_DIR}/win/createpkg.bat) - ENDIF(DEFINED WIN32) + SET(CAPN_PUBLIC_HEADER_FILES +@@ -199,6 +186,7 @@ ENDIF(DEFINED WIN32) -+ - ADD_LIBRARY(${APN_LIB_NAME} SHARED ${APN_SOURCE_FILES}) - TARGET_LINK_LIBRARIES(${APN_LIB_NAME} ${OPENSSL_LIBRARIES}) -+FIND_PATH(JANSSON_INCLUDES jansson.h) -+INCLUDE_DIRECTORIES(${JANSSON_INCLUDES}) -+FIND_LIBRARY(JANSSON_LIBRARIES jansson) -+TARGET_LINK_LIBRARIES(${APN_LIB_NAME} ${JANSSON_LIBRARIES}) -+ + ADD_LIBRARY(${CAPN_LIB_NAME} SHARED ${CAPN_SOURCE_FILES}) + TARGET_LINK_LIBRARIES(${CAPN_LIB_NAME} ${OPENSSL_LIBRARIES}) ++TARGET_LINK_LIBRARIES(${CAPN_LIB_NAME} ${JANSSON_LIBRARIES}) IF(DEFINED WIN32) - TARGET_LINK_LIBRARIES(${APN_LIB_NAME} Ws2_32.lib) + TARGET_LINK_LIBRARIES(${CAPN_LIB_NAME} Ws2_32.lib) diff --git a/net/libcapn/files/patch-libcapn.pc.cmake b/net/libcapn/files/patch-libcapn.pc.cmake deleted file mode 100644 index 3ba7b8799039..000000000000 --- a/net/libcapn/files/patch-libcapn.pc.cmake +++ /dev/null @@ -1,8 +0,0 @@ ---- ./libcapn.pc.cmake.orig 2013-04-27 14:08:27.000000000 +0800 -+++ ./libcapn.pc.cmake 2014-02-21 08:53:31.000000000 +0800 -@@ -3,4 +3,4 @@ - Version: ${APN_VERSION} - Libs: -L${CMAKE_INSTALL_PREFIX}/${APN_INSTALL_PATH_LIB} -l${APN_LIB_NAME} - Libs.private: -lopenssl --Cflags: -I${CMAKE_INSTALL_PREFIX}/${APN_INSTALL_PATH_HEADERS} -+Cflags: -I${CMAKE_INSTALL_PREFIX} |