aboutsummaryrefslogtreecommitdiff
path: root/devel/libplist
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2013-05-07 00:17:21 +0000
committerAlberto Villa <avilla@FreeBSD.org>2013-05-07 00:17:21 +0000
commit696ae175e5388411df62084b3224ce19eb8640d0 (patch)
tree19113c4d0b8e3e133ed6ac119812a8a30fae63ce /devel/libplist
parentb4db839ab8f984b34d386b4859f8445d342ee921 (diff)
Notes
Diffstat (limited to 'devel/libplist')
-rw-r--r--devel/libplist/Makefile66
-rw-r--r--devel/libplist/distinfo4
-rw-r--r--devel/libplist/files/patch-libcnary__node.c11
-rw-r--r--devel/libplist/files/patch-src__base64.c14
-rw-r--r--devel/libplist/pkg-descr21
-rw-r--r--devel/libplist/pkg-plist19
6 files changed, 45 insertions, 90 deletions
diff --git a/devel/libplist/Makefile b/devel/libplist/Makefile
index cfa06420b9c1..9d439cdd1cf6 100644
--- a/devel/libplist/Makefile
+++ b/devel/libplist/Makefile
@@ -1,63 +1,47 @@
# $FreeBSD$
PORTNAME= libplist
-PORTVERSION= 1.8
-CATEGORIES= devel
+PORTVERSION= 1.10
+PORTREVISION?= 0
+CATEGORIES?= devel
MASTER_SITES= http://www.libimobiledevice.org/downloads/
-MAINTAINER= avilla@FreeBSD.org
-COMMENT= Library to handle Apple Property List format
+MAINTAINER?= avilla@FreeBSD.org
+COMMENT?= Library to handle Apple Property List format
-LICENSE= LGPL21
+LICENSE?= LGPL21
+
+SLAVE_PORT?= no
-USE_GNOME= libxml2
-# Unlisted dependency.
USE_BZIP2= yes
-USES= cmake iconv
-# Required for iconv headers.
-CFLAGS+= -I${LOCALBASE}/include
+USES= cmake pkgconfig
+
+.if ${SLAVE_PORT} == "no"
+
+USE_GNOME= libxml2
+CMAKE_ARGS= -DENABLE_CYTHON:BOOL=False \
+ -DENABLE_SWIG:BOOL=False
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= ${LOCALBASE}/lib
PORTDOCS= AUTHORS NEWS README
-OPTIONS_DEFINE= CYTHON SWIG
-
-CYTHON_DESC= Cython Python bindings
-SWIG_DESC= Swig Python bindings
-
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MCYTHON}
-BUILD_DEPENDS+= cython:${PORTSDIR}/lang/cython
-USE_PYTHON= yes
-CMAKE_ARGS+= -DENABLE_CYTHON:BOOL=On
-PLIST_SUB+= CYTHON=""
-.else
-CMAKE_ARGS+= -DENABLE_CYTHON:BOOL=Off
-PLIST_SUB+= CYTHON="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSWIG}
-BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13
-USE_PYTHON= yes
-CMAKE_ARGS+= -DENABLE_SWIG:BOOL=On
-PLIST_SUB+= SWIG=""
-.else
-CMAKE_ARGS+= -DENABLE_SWIG:BOOL=Off
-PLIST_SUB+= SWIG="@comment "
-.endif
-
-pre-configure:
- ${REINPLACE_CMD} -e 's:$${CMAKE_INSTALL_LIBDIR}/pkgconfig:libdata/pkgconfig:' \
+post-patch:
+# Required for iconv headers (included by libxml2). Do not add to
+# CFLAGS as it may break updates from old versions.
+ @${REINPLACE_CMD} -e 's,$${LIBXML2_INCLUDE_DIR},$${LIBXML2_INCLUDE_DIR} ${LOCALBASE}/include,' \
+ ${WRKSRC}/src/CMakeLists.txt
+ @${REINPLACE_CMD} -e 's,$${CMAKE_INSTALL_LIBDIR}/pkgconfig,libdata/pkgconfig,' \
${WRKSRC}/CMakeLists.txt
post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
+.endif # ${SLAVE_PORT} == "no"
+
.include <bsd.port.mk>
diff --git a/devel/libplist/distinfo b/devel/libplist/distinfo
index d7281a9040a0..0a4b90d43530 100644
--- a/devel/libplist/distinfo
+++ b/devel/libplist/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libplist-1.8.tar.bz2) = a418da3880308199b74766deef2a760a9b169b81a868a6a9032f7614e20500ec
-SIZE (libplist-1.8.tar.bz2) = 81278
+SHA256 (libplist-1.10.tar.bz2) = f44c52a0f8065d41d44772a7484f93bc5e7da21a8f4a9ad3f38a36b827eeff0b
+SIZE (libplist-1.10.tar.bz2) = 82519
diff --git a/devel/libplist/files/patch-libcnary__node.c b/devel/libplist/files/patch-libcnary__node.c
deleted file mode 100644
index 36f0bcc25b8e..000000000000
--- a/devel/libplist/files/patch-libcnary__node.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./libcnary/node.c.orig 2012-01-29 11:49:28.786656365 +0100
-+++ ./libcnary/node.c 2012-01-29 11:53:54.146697468 +0100
-@@ -104,7 +104,7 @@
-
- int node_insert(node_t* parent, unsigned int index, node_t* child)
- {
-- if (!parent || !child) return;
-+ if (!parent || !child) return -1;
- child->isLeaf = TRUE;
- child->isRoot = FALSE;
- child->parent = parent;
diff --git a/devel/libplist/files/patch-src__base64.c b/devel/libplist/files/patch-src__base64.c
deleted file mode 100644
index ae38994763a8..000000000000
--- a/devel/libplist/files/patch-src__base64.c
+++ /dev/null
@@ -1,14 +0,0 @@
---- ./src/base64.c.orig 2012-01-29 13:01:09.956709152 +0100
-+++ ./src/base64.c 2012-01-29 13:17:28.106706024 +0100
-@@ -104,9 +104,9 @@
-
- unsigned char *base64decode(const char *buf, size_t *size)
- {
-- if (!buf) return;
-+ if (!buf) return NULL;
- size_t len = strlen(buf);
-- if (len <= 0) return;
-+ if (len <= 0) return NULL;
- unsigned char *outbuf = (unsigned char*)malloc((len/4)*3+3);
-
- unsigned char *line;
diff --git a/devel/libplist/pkg-descr b/devel/libplist/pkg-descr
index 0a4cd845ab1d..cfa677ae91a6 100644
--- a/devel/libplist/pkg-descr
+++ b/devel/libplist/pkg-descr
@@ -1,11 +1,14 @@
-libimobiledevice is a software library that talks the protocols to
-support iPhone, iPod Touch and iPad devices on Linux. Unlike other
-projects, it does not depend on using any existing proprietary
-libraries and does not require jailbreaking. It allows other software
-to easily access the device's filesystem, retrieve information about
-the device and its internals, backup/restore the device, manage
-SpringBoard icons, manage installed applications, retrieve
-addressbook/calendars/notes and bookmarks and synchronize music and
-video to the device.
+libimobiledevice is a cross-platform software library that talks the
+protocols to support iPhone, iPod Touch, iPad and Apple TV devices.
+Unlike other projects, it does not depend on using any existing
+proprietary libraries and does not require jailbreaking. It allows
+other software to easily access the device's filesystem, retrieve
+information about the device and its internals, backup/restore the
+device, manage SpringBoard icons, manage installed applications,
+retrieve addressbook/calendars/notes and bookmarks and synchronize
+music and video to the device.
+
+This port installs the library required to handle Apple Binary and XML
+Property Lists.
WWW: http://www.libimobiledevice.org
diff --git a/devel/libplist/pkg-plist b/devel/libplist/pkg-plist
index 22c55f694dab..37f69eab8a2c 100644
--- a/devel/libplist/pkg-plist
+++ b/devel/libplist/pkg-plist
@@ -1,32 +1,25 @@
-bin/plutil
-bin/plutil-1.8
+bin/plistutil
+bin/plistutil-1.10
include/plist/Array.h
include/plist/Boolean.h
include/plist/Data.h
include/plist/Date.h
include/plist/Dictionary.h
include/plist/Integer.h
+include/plist/Key.h
include/plist/Node.h
include/plist/Real.h
include/plist/String.h
include/plist/Structure.h
-%%CYTHON%%include/plist/cython/plist.pxd
+include/plist/Uid.h
include/plist/plist++.h
include/plist/plist.h
-%%SWIG%%include/plist/swig/plist.i
lib/libplist++.so
lib/libplist++.so.1
-lib/libplist++.so.1.1.8
+lib/libplist++.so.1.1.10
lib/libplist.so
lib/libplist.so.1
-lib/libplist.so.1.1.8
-%%SWIG%%%%PYTHON_SITELIBDIR%%/plist/__init__.py
-%%SWIG%%%%PYTHON_SITELIBDIR%%/plist/_plist.so
-%%SWIG%%%%PYTHON_SITELIBDIR%%/plist/plist.py
-%%CYTHON%%%%PYTHON_SITELIBDIR%%/plist.so
+lib/libplist.so.1.1.10
libdata/pkgconfig/libplist++.pc
libdata/pkgconfig/libplist.pc
-%%SWIG%%@dirrm %%PYTHON_SITELIBDIR%%/plist
-%%SWIG%%@dirrm include/plist/swig
-%%CYTHON%%@dirrm include/plist/cython
@dirrm include/plist