summaryrefslogtreecommitdiff
path: root/textproc/libplist
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2011-11-21 18:51:37 +0000
committershattered <shattered@pkgsrc.org>2011-11-21 18:51:37 +0000
commit6485b8f84e392c0bbe724e0bfa140e9fc5babbcd (patch)
treeb4bb327576c3cbbd49dc069bacd25891d037cf30 /textproc/libplist
parent8edb430e101aa85c48fc9b6974359bd820a94cce (diff)
downloadpkgsrc-6485b8f84e392c0bbe724e0bfa140e9fc5babbcd.tar.gz
Import libplist-1.3 as textproc/libplist.
Library for handling Apple Binary and XML Property Lists.
Diffstat (limited to 'textproc/libplist')
-rw-r--r--textproc/libplist/DESCR1
-rw-r--r--textproc/libplist/Makefile28
-rw-r--r--textproc/libplist/PLIST27
-rw-r--r--textproc/libplist/buildlink3.mk15
-rw-r--r--textproc/libplist/distinfo6
-rw-r--r--textproc/libplist/patches/patch-cmake_modules_FindGLIB2.cmake82
6 files changed, 159 insertions, 0 deletions
diff --git a/textproc/libplist/DESCR b/textproc/libplist/DESCR
new file mode 100644
index 00000000000..651a4c64002
--- /dev/null
+++ b/textproc/libplist/DESCR
@@ -0,0 +1 @@
+Library for handling Apple Binary and XML Property Lists.
diff --git a/textproc/libplist/Makefile b/textproc/libplist/Makefile
new file mode 100644
index 00000000000..4293064b132
--- /dev/null
+++ b/textproc/libplist/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/11/21 18:51:37 shattered Exp $
+#
+
+DISTNAME= libplist-1.3
+CATEGORIES= textproc
+MASTER_SITES= http://github.com/downloads/JonathanBeck/libplist/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.libimobiledevice.org/
+COMMENT= Handle Apple Binary and XML Property Lists
+LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_CMAKE= yes
+USE_TOOLS+= pkg-config
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE+= libplist++.pc.in
+PKGCONFIG_OVERRIDE+= libplist.pc.in
+PY_PATCHPLIST= yes
+
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../devel/swig/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/libplist/PLIST b/textproc/libplist/PLIST
new file mode 100644
index 00000000000..69cc951d703
--- /dev/null
+++ b/textproc/libplist/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/11/21 18:51:37 shattered Exp $
+bin/plutil
+bin/plutil-${PKGVERSION}
+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/Node.h
+include/plist/Real.h
+include/plist/String.h
+include/plist/Structure.h
+include/plist/plist++.h
+include/plist/plist.h
+include/plist/swig/plist.i
+lib/libplist++.so
+lib/libplist++.so.1
+lib/libplist++.so.1.${PKGVERSION}
+lib/libplist.so
+lib/libplist.so.1
+lib/libplist.so.1.${PKGVERSION}
+lib/pkgconfig/libplist++.pc
+lib/pkgconfig/libplist.pc
+${PYSITELIB}/plist/__init__.py
+${PYSITELIB}/plist/_plist.so
+${PYSITELIB}/plist/plist.py
diff --git a/textproc/libplist/buildlink3.mk b/textproc/libplist/buildlink3.mk
new file mode 100644
index 00000000000..6f7fbebb052
--- /dev/null
+++ b/textproc/libplist/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/11/21 18:51:37 shattered Exp $
+
+BUILDLINK_TREE+= libplist
+
+.if !defined(LIBPLIST_BUILDLINK3_MK)
+LIBPLIST_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libplist+= libplist>=1.3
+BUILDLINK_PKGSRCDIR.libplist?= ../../textproc/libplist
+
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.endif # LIBPLIST_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libplist
diff --git a/textproc/libplist/distinfo b/textproc/libplist/distinfo
new file mode 100644
index 00000000000..a89f71b696b
--- /dev/null
+++ b/textproc/libplist/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/11/21 18:51:37 shattered Exp $
+
+SHA1 (libplist-1.3.tar.bz2) = 068980142aede5f7adb208246e035dfe4994ea8c
+RMD160 (libplist-1.3.tar.bz2) = ad93e5a0530adf804340462de509304dbf74cc92
+Size (libplist-1.3.tar.bz2) = 67642 bytes
+SHA1 (patch-cmake_modules_FindGLIB2.cmake) = 7e61b972dee88d288ebdc067440889d71011e1ed
diff --git a/textproc/libplist/patches/patch-cmake_modules_FindGLIB2.cmake b/textproc/libplist/patches/patch-cmake_modules_FindGLIB2.cmake
new file mode 100644
index 00000000000..09f83403561
--- /dev/null
+++ b/textproc/libplist/patches/patch-cmake_modules_FindGLIB2.cmake
@@ -0,0 +1,82 @@
+$NetBSD: patch-cmake_modules_FindGLIB2.cmake,v 1.1.1.1 2011/11/21 18:51:37 shattered Exp $
+
+Fix glib2 detection using macros from spectrum.im.
+
+--- cmake/modules/FindGLIB2.cmake.orig 2010-04-18 13:30:19.000000000 +0000
++++ cmake/modules/FindGLIB2.cmake
+@@ -1,15 +1,4 @@
+-# - Try to find the GLIB2 libraries
+-# Once done this will define
+-#
+-# GLIB2_FOUND - system has glib2
+-# GLIB2_INCLUDE_DIR - the glib2 include directory
+-# GLIB2_LIBRARIES - glib2 library
+-
+-# Copyright (c) 2008 Laurent Montel, <montel@kde.org>
+-#
+-# Redistribution and use is allowed according to the terms of the BSD license.
+-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+-
++set(GLIB2_LIBRARIES "GLIB2_LIBRARIES-NOTFOUND")
+
+ if(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES)
+ # Already in cache, be silent
+@@ -17,35 +6,44 @@ if(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES
+ endif(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES)
+
+ if (NOT WIN32)
+- FIND_PACKAGE(PkgConfig)
+- PKG_CHECK_MODULES(PC_GLIB2 glib-2.0)
+- SET(GLIB2_DEFINITIONS ${PC_GLIB2_CFLAGS_OTHER})
++ find_package(PkgConfig REQUIRED)
++ pkg_check_modules(PKG_GLIB REQUIRED glib-2.0)
+ endif(NOT WIN32)
+
+ find_path(GLIB2_MAIN_INCLUDE_DIR glib.h
+ PATH_SUFFIXES glib-2.0
+- PATHS ${_LibGLIB2IncDir} )
++ PATHS ${PKG_GLIB_INCLUDE_DIRS} )
+
+ # search the glibconfig.h include dir under the same root where the library is found
+-find_library(GLIB2_LIBRARIES
+- NAMES glib-2.0
+- PATHS ${_LibGLIB2LinkDir} )
+-
+-get_filename_component(glib2LibDir "${GLIB2_LIBRARIES}" PATH)
++find_library(GLIB2_LIBRARIES
++ NAMES glib-2.0
++ PATHS ${PKG_GLIB_LIBRARY_DIRS} )
++
++find_library(GLIB2_THREAD
++ NAMES gthread-2.0
++ PATHS ${PKG_GLIB_LIBRARY_DIRS} )
+
+ find_path(GLIB2_INTERNAL_INCLUDE_DIR glibconfig.h
+ PATH_SUFFIXES glib-2.0/include
+- PATHS ${_LibGLIB2IncDir} "${glib2LibDir}" ${CMAKE_SYSTEM_LIBRARY_PATH})
++ PATHS ${PKG_GLIB_INCLUDE_DIRS} ${PKG_GLIB_LIBRARIES} ${CMAKE_SYSTEM_LIBRARY_PATH})
++
++if(GLIB2_THREAD)
++ set(GLIB2_LIBRARIES ${GLIB2_LIBRARIES} ${GLIB2_THREAD})
++else(GLIB2_THREAD)
++ message( FATAL_ERROR "Could NOT find gthread-2.0" )
++endif(GLIB2_THREAD)
++
+
+-set(GLIB2_INCLUDE_DIR "${GLIB2_MAIN_INCLUDE_DIR}")
++set(GLIB2_INCLUDE_DIR ${GLIB2_MAIN_INCLUDE_DIR})
+
+ # not sure if this include dir is optional or required
+ # for now it is optional
+ if(GLIB2_INTERNAL_INCLUDE_DIR)
+- set(GLIB2_INCLUDE_DIR ${GLIB2_INCLUDE_DIR} "${GLIB2_INTERNAL_INCLUDE_DIR}")
++ set(GLIB2_INCLUDE_DIR ${GLIB2_INCLUDE_DIR} ${GLIB2_INTERNAL_INCLUDE_DIR})
++ set(GLIB2_FOUND TRUE)
+ endif(GLIB2_INTERNAL_INCLUDE_DIR)
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(GLIB2 DEFAULT_MSG GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR)
+
+-mark_as_advanced(GLIB2_INCLUDE_DIR GLIB2_LIBRARIES)
+\ No newline at end of file
++mark_as_advanced(GLIB2_INCLUDE_DIR GLIB2_LIBRARIES)