0b5eab9463
force the creation of users "well-known" directories. Since we don't use things like /etc/X11/xinit/xinitrc.d/foo.sh, using an autostart file is the closest we can get to how upstream advises it to be used.
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2011/04/10 10:26:19 ajacoutot Exp $
|
|
|
|
COMMENT= utilities to manage well know user directories
|
|
|
|
DISTNAME= xdg-user-dirs-0.13
|
|
CATEGORIES= devel
|
|
|
|
REVISION= 0
|
|
|
|
HOMEPAGE= http://freedesktop.org/wiki/Software/xdg-user-dirs/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://user-dirs.freedesktop.org/releases/
|
|
|
|
WANTLIB= c
|
|
|
|
MODULES= devel/gettext
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/xdg-user-dirs
|
|
|
|
# Under OpenBSD, we don't have generic directories containing login
|
|
# scripts (e.g. /etc/X11/xinit/xinitrc.d/) that login managers would
|
|
# check, so use the xdg autostart directory which is standard amongst
|
|
# fd.o Desktops. It us up to the Desktop package maintainer to add a
|
|
# RUN_DEPENDS on xdg-user-dirs{|-gtk} if he/she wants to enable this.
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xdg-user-dirs/xdg/autostart/
|
|
${INSTALL_DATA} ${FILESDIR}/user-dirs-update.desktop \
|
|
${PREFIX}/share/examples/xdg-user-dirs/xdg/autostart/user-dirs-update.desktop
|
|
|
|
.include <bsd.port.mk>
|