import x11/libxdg-basedir
libxdg-basedir is an implementation of the XDG Base Directory specification OK ajacoutot@, landry@
This commit is contained in:
parent
c7add88286
commit
c3babbe26c
28
x11/libxdg-basedir/Makefile
Normal file
28
x11/libxdg-basedir/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/03/31 12:31:21 dcoppa Exp $
|
||||
|
||||
COMMENT = implementation of the XDG Base Directory specification
|
||||
|
||||
DISTNAME = libxdg-basedir-1.0.2
|
||||
SHARED_LIBS += xdg-basedir 0.0 # .1.0
|
||||
CATEGORIES = x11 devel
|
||||
|
||||
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://n.ethz.ch/student/nevillm/download/libxdg-basedir/
|
||||
|
||||
USE_LIBTOOL = yes
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
|
||||
--disable-doxygen-doc
|
||||
|
||||
pre-configure:
|
||||
@${SUBST_CMD} ${WRKSRC}/src/basedir.c
|
||||
|
||||
.include <bsd.port.mk>
|
5
x11/libxdg-basedir/distinfo
Normal file
5
x11/libxdg-basedir/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (libxdg-basedir-1.0.2.tar.gz) = lEICQl5TWWZvJo0YZxMD1A==
|
||||
RMD160 (libxdg-basedir-1.0.2.tar.gz) = 0HlNjrbIU8XvgHVd9xhFDIGTV1Q=
|
||||
SHA1 (libxdg-basedir-1.0.2.tar.gz) = jHWTHQq89/765Q8i0GKZyh8G0do=
|
||||
SHA256 (libxdg-basedir-1.0.2.tar.gz) = Md2LvgMvzvsvUJMvaZ9QAF2d3WMoOlrAbA8JodZfKzo=
|
||||
SIZE (libxdg-basedir-1.0.2.tar.gz) = 312855
|
12
x11/libxdg-basedir/patches/patch-configure
Normal file
12
x11/libxdg-basedir/patches/patch-configure
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2010/03/31 12:31:21 dcoppa Exp $
|
||||
--- configure.orig Wed Mar 31 10:51:09 2010
|
||||
+++ configure Wed Mar 31 10:51:32 2010
|
||||
@@ -12888,7 +12888,7 @@ done
|
||||
|
||||
|
||||
case $host in
|
||||
- *-freebsd*) ;;
|
||||
+ *-freebsd*|*-openbsd*) ;;
|
||||
*)
|
||||
for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
|
||||
|
20
x11/libxdg-basedir/patches/patch-src_basedir_c
Normal file
20
x11/libxdg-basedir/patches/patch-src_basedir_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-src_basedir_c,v 1.1.1.1 2010/03/31 12:31:21 dcoppa Exp $
|
||||
--- src/basedir.c.orig Sat Aug 29 23:47:43 2009
|
||||
+++ src/basedir.c Wed Mar 31 11:27:16 2010
|
||||
@@ -90,13 +90,12 @@ static void xdgZeroMemory(void* p, size_t n)
|
||||
static const char
|
||||
DefaultRelativeDataHome[] = DIR_SEPARATOR_STR ".local" DIR_SEPARATOR_STR "share",
|
||||
DefaultRelativeConfigHome[] = DIR_SEPARATOR_STR ".config",
|
||||
- DefaultDataDirectories1[] = DIR_SEPARATOR_STR "usr" DIR_SEPARATOR_STR "local" DIR_SEPARATOR_STR "share",
|
||||
- DefaultDataDirectories2[] = DIR_SEPARATOR_STR "usr" DIR_SEPARATOR_STR "share",
|
||||
- DefaultConfigDirectories[] = DIR_SEPARATOR_STR "etc" DIR_SEPARATOR_STR "xdg",
|
||||
+ DefaultDataDirectories[] = "${LOCALBASE}" DIR_SEPARATOR_STR "share",
|
||||
+ DefaultConfigDirectories[] = "${SYSCONFDIR}" DIR_SEPARATOR_STR "xdg",
|
||||
DefaultRelativeCacheHome[] = DIR_SEPARATOR_STR ".cache";
|
||||
|
||||
static const char
|
||||
- *DefaultDataDirectoriesList[] = { DefaultDataDirectories1, DefaultDataDirectories2, NULL },
|
||||
+ *DefaultDataDirectoriesList[] = { DefaultDataDirectories, NULL },
|
||||
*DefaultConfigDirectoriesList[] = { DefaultConfigDirectories, NULL };
|
||||
|
||||
typedef struct _xdgCachedData
|
7
x11/libxdg-basedir/pkg/DESCR
Normal file
7
x11/libxdg-basedir/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
An implementation of the XDG Base Directory specification.
|
||||
|
||||
The XDG Base Directory specification defines where these files should be
|
||||
looked for by defining one or more base directories relative to which
|
||||
files should be located. This library implements functions to list the
|
||||
directories according to the specification and provides a few higher-level
|
||||
functions for use with the specification.
|
2
x11/libxdg-basedir/pkg/PFRAG.shared
Normal file
2
x11/libxdg-basedir/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/03/31 12:31:21 dcoppa Exp $
|
||||
@lib lib/libxdg-basedir.so.${LIBxdg-basedir_VERSION}
|
8
x11/libxdg-basedir/pkg/PLIST
Normal file
8
x11/libxdg-basedir/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/03/31 12:31:21 dcoppa Exp $
|
||||
%%SHARED%%
|
||||
include/basedir.h
|
||||
include/basedir_fs.h
|
||||
lib/libxdg-basedir.a
|
||||
lib/libxdg-basedir.la
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/libxdg-basedir.pc
|
Loading…
Reference in New Issue
Block a user