ports/186936: [NEW PORT] net/libcapn: C Library to interact with Apple Push Notification Service
Gasol Wu
gasol.wu at gmail.com
Fri Feb 21 02:00:01 UTC 2014
>Number: 186936
>Category: ports
>Synopsis: [NEW PORT] net/libcapn: C Library to interact with Apple Push Notification Service
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 21 02:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Gasol Wu
>Release: FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC
>Description:
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
Generated with FreeBSD Port Tools 0.99_11 (mode: new)
>How-To-Repeat:
>Fix:
--- .shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# libcapn
# libcapn/Makefile
# libcapn/pkg-descr
# libcapn/pkg-plist
# libcapn/files
# libcapn/files/patch-CMakeLists.txt
# libcapn/files/patch-libcapn.pc.cmake
# libcapn/distinfo
#
echo c - libcapn
mkdir -p libcapn > /dev/null 2>&1
echo x - libcapn/Makefile
sed 's/^X//' >libcapn/Makefile << 'acc4fb5e4f79bed3ef0d7e3cb78d3fdf'
X# Created by: Gasol Wu <gasol.wu at gmail.com>
X# $FreeBSD$
X
XPORTNAME= libcapn
XPORTVERSION= 1.0.0.b3
XCATEGORIES= net
X
XMAINTAINER= gasol.wu at gmail.com
XCOMMENT= C Library to interact with Apple Push Notification Service
X
XLICENSE= MIT
X
XLIB_DEPENDS= libjansson.so:${PORTSDIR}/devel/jansson
X
XUSE_GITHUB= yes
XGH_ACCOUNT= adobkin
XGH_TAGNAME= 1.0.0beta3
XGH_COMMIT= 050dfd8
X
XUSES= cmake
XUSE_LDCONFIG= yes
XCMAKE_ARGS+= -DOS_FREEBSD=yes
X
X.include <bsd.port.mk>
acc4fb5e4f79bed3ef0d7e3cb78d3fdf
echo x - libcapn/pkg-descr
sed 's/^X//' >libcapn/pkg-descr << '334829b3878d0814289e1a020b83d8a4'
Xlibcapn is a C Library to interact with the Apple Push Notification Service
Xusing simple and intuitive API. With the library you can easily send push
Xnotifications to iOS and Mac OS X devices.
X
XWWW: http://libcapn.org
334829b3878d0814289e1a020b83d8a4
echo x - libcapn/pkg-plist
sed 's/^X//' >libcapn/pkg-plist << '3f88a750643dfa2a770a51aa6d9f3f8b'
X at comment $FreeBSD$
Xinclude/capn/apn.h
Xinclude/capn/platform.h
Xinclude/capn/version.h
Xlib/libcapn.so
Xlib/libcapn.so.1
Xlib/libcapn.so.1.0.0
Xlibdata/pkgconfig/libcapn.pc
X at dirrmtry lib/pkgconfig
X at dirrmtry include/capn
3f88a750643dfa2a770a51aa6d9f3f8b
echo c - libcapn/files
mkdir -p libcapn/files > /dev/null 2>&1
echo x - libcapn/files/patch-CMakeLists.txt
sed 's/^X//' >libcapn/files/patch-CMakeLists.txt << '5ec53943dd0bc0f2279d84cbd4435cea'
X--- ./CMakeLists.txt.orig 2013-04-27 14:08:27.000000000 +0800
X+++ ./CMakeLists.txt 2014-02-21 08:53:47.000000000 +0800
X@@ -48,20 +48,6 @@
X
X INCLUDE(ExternalProject)
X
X-ExternalProject_Add(
X- jansson
X- SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/jansson"
X- #GIT_REPOSITORY git://github.com/akheron/jansson.git
X- BINARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/jansson"
X- INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/jansson"
X- CMAKE_COMMAND cmake .
X- BUILD_COMMAND ""
X- INSTALL_COMMAND ""
X-)
X-
X-INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_SOURCE_DIR}/jansson")
X-INCLUDE_DIRECTORIES ("${CMAKE_CURRENT_SOURCE_DIR}/jansson/include")
X-
X CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/src/platform.h")
X CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/src/version.h.cmake" "${CMAKE_CURRENT_SOURCE_DIR}/src/version.h")
X
X@@ -86,7 +72,7 @@
X ENDIF(APN_ARCH_X86_64 AND OS_LINUX)
X ENDIF(LIB_SUFFIX)
X
X- SET(APN_INSTALL_PATH_LIB "${APN_INSTALL_PATH_LIB}/${APN_LIB_NAME}")
X+ SET(APN_INSTALL_PATH_LIB "${APN_INSTALL_PATH_LIB}")
X SET(APN_INSTALL_PATH_HEADERS "include/${APN_LIB_NAME}")
X SET(APN_INSTALL_PATH_BIN "bin")
X
X@@ -126,12 +112,9 @@
X SET(APN_INSTALL_FULL_PATH_LIB ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR})
X MARK_AS_ADVANCED(APN_INSTALL_FULL_PATH_LIB)
X
X-FILE (GLOB JANSSON_SOURCE_FILES jansson/src/*.c)
X-
X SET(APN_SOURCE_FILES
X src/apn.c
X src/apn_strings.c
X- ${JANSSON_SOURCE_FILES}
X )
X
X SET(APN_PUBLIC_HEADER_FILES
X@@ -175,8 +158,14 @@
X ADD_CUSTOM_TARGET(zip COMMAND ${PROJECT_BINARY_DIR}/win/createpkg.bat)
X ENDIF(DEFINED WIN32)
X
X+
X ADD_LIBRARY(${APN_LIB_NAME} SHARED ${APN_SOURCE_FILES})
X TARGET_LINK_LIBRARIES(${APN_LIB_NAME} ${OPENSSL_LIBRARIES})
X+FIND_PATH(JANSSON_INCLUDES jansson.h)
X+INCLUDE_DIRECTORIES(${JANSSON_INCLUDES})
X+FIND_LIBRARY(JANSSON_LIBRARIES jansson)
X+TARGET_LINK_LIBRARIES(${APN_LIB_NAME} ${JANSSON_LIBRARIES})
X+
X
X IF(DEFINED WIN32)
X TARGET_LINK_LIBRARIES(${APN_LIB_NAME} Ws2_32.lib)
5ec53943dd0bc0f2279d84cbd4435cea
echo x - libcapn/files/patch-libcapn.pc.cmake
sed 's/^X//' >libcapn/files/patch-libcapn.pc.cmake << '7d1d3464ac3313ee37a495ea249b790e'
X--- ./libcapn.pc.cmake.orig 2013-04-27 14:08:27.000000000 +0800
X+++ ./libcapn.pc.cmake 2014-02-21 08:53:31.000000000 +0800
X@@ -3,4 +3,4 @@
X Version: ${APN_VERSION}
X Libs: -L${CMAKE_INSTALL_PREFIX}/${APN_INSTALL_PATH_LIB} -l${APN_LIB_NAME}
X Libs.private: -lopenssl
X-Cflags: -I${CMAKE_INSTALL_PREFIX}/${APN_INSTALL_PATH_HEADERS}
X+Cflags: -I${CMAKE_INSTALL_PREFIX}
7d1d3464ac3313ee37a495ea249b790e
echo x - libcapn/distinfo
sed 's/^X//' >libcapn/distinfo << '5bb1bcc57867baaea8b169e3658566b2'
XSHA256 (libcapn-1.0.0.b3.tar.gz) = ff2f960c02404fdc7c6ac4155659af1178e90b7a8e62d35e0e4e4a94914a2b18
XSIZE (libcapn-1.0.0.b3.tar.gz) = 348396
5bb1bcc57867baaea8b169e3658566b2
exit
--- .shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list