Date: Sun, 23 Feb 2014 15:21:18 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r345735 - in head/net: . libcapn libcapn/files Message-ID: <201402231521.s1NFLILf089402@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sun Feb 23 15:21:17 2014 New Revision: 345735 URL: http://svnweb.freebsd.org/changeset/ports/345735 QAT: https://qat.redports.org/buildarchive/r345735/ Log: - Add libcapn 1.0.0 Beta 3 libcapn is a C Library to interact with the Apple Push Notification Service using simple and intuitive API. With the library you can easily send push notifications to iOS and Mac OS X devices. WWW: http://libcapn.org/ PR: ports/186936 Submitted by: Gasol Wu <gasol.wu@gmail.com> Added: head/net/libcapn/ head/net/libcapn/Makefile (contents, props changed) head/net/libcapn/distinfo (contents, props changed) head/net/libcapn/files/ head/net/libcapn/files/patch-CMakeLists.txt (contents, props changed) head/net/libcapn/files/patch-libcapn.pc.cmake (contents, props changed) head/net/libcapn/pkg-descr (contents, props changed) head/net/libcapn/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Sun Feb 23 15:21:11 2014 (r345734) +++ head/net/Makefile Sun Feb 23 15:21:17 2014 (r345735) @@ -310,6 +310,7 @@ SUBDIR += lft SUBDIR += libarms SUBDIR += libbgpdump + SUBDIR += libcapn SUBDIR += libcmis SUBDIR += libdnet SUBDIR += libexosip2 Added: head/net/libcapn/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcapn/Makefile Sun Feb 23 15:21:17 2014 (r345735) @@ -0,0 +1,24 @@ +# Created by: Gasol Wu <gasol.wu@gmail.com> +# $FreeBSD$ + +PORTNAME= libcapn +PORTVERSION= 1.0.0.b3 +CATEGORIES= net + +MAINTAINER= gasol.wu@gmail.com +COMMENT= C Library to interact with Apple Push Notification Service + +LICENSE= MIT + +LIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson + +USE_GITHUB= yes +GH_ACCOUNT= adobkin +GH_TAGNAME= 1.0.0beta3 +GH_COMMIT= 050dfd8 + +USES= cmake +USE_LDCONFIG= yes +CMAKE_ARGS= -DOS_FREEBSD=yes + +.include <bsd.port.mk> Added: head/net/libcapn/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcapn/distinfo Sun Feb 23 15:21:17 2014 (r345735) @@ -0,0 +1,2 @@ +SHA256 (libcapn-1.0.0.b3.tar.gz) = ff2f960c02404fdc7c6ac4155659af1178e90b7a8e62d35e0e4e4a94914a2b18 +SIZE (libcapn-1.0.0.b3.tar.gz) = 348396 Added: head/net/libcapn/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcapn/files/patch-CMakeLists.txt Sun Feb 23 15:21:17 2014 (r345735) @@ -0,0 +1,60 @@ +--- ./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 @@ + + INCLUDE(ExternalProject) + +-ExternalProject_Add( +- jansson +- SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/jansson" +- #GIT_REPOSITORY git://github.com/akheron/jansson.git +- BINARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/jansson" +- INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/jansson" +- CMAKE_COMMAND cmake . +- BUILD_COMMAND "" +- INSTALL_COMMAND "" +-) +- +-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") + +@@ -86,7 +72,7 @@ + ENDIF(APN_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) + +-FILE (GLOB JANSSON_SOURCE_FILES jansson/src/*.c) +- + SET(APN_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) + ++ + 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}) ++ + + IF(DEFINED WIN32) + TARGET_LINK_LIBRARIES(${APN_LIB_NAME} Ws2_32.lib) Added: head/net/libcapn/files/patch-libcapn.pc.cmake ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcapn/files/patch-libcapn.pc.cmake Sun Feb 23 15:21:17 2014 (r345735) @@ -0,0 +1,8 @@ +--- ./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} Added: head/net/libcapn/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcapn/pkg-descr Sun Feb 23 15:21:17 2014 (r345735) @@ -0,0 +1,5 @@ +libcapn is a C Library to interact with the Apple Push Notification Service +using simple and intuitive API. With the library you can easily send push +notifications to iOS and Mac OS X devices. + +WWW: http://libcapn.org/ Added: head/net/libcapn/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/libcapn/pkg-plist Sun Feb 23 15:21:17 2014 (r345735) @@ -0,0 +1,8 @@ +include/capn/apn.h +include/capn/platform.h +include/capn/version.h +lib/libcapn.so +lib/libcapn.so.1 +lib/libcapn.so.1.0.0 +libdata/pkgconfig/libcapn.pc +@dirrm include/capn
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402231521.s1NFLILf089402>