openbsd-ports/x11/slim/Makefile
armani 23c1e9460e Add a fix from Freebsd :
x11/slim, does not setlogin(). Some software use getlogin()
 to decide the user name, so when user is using slim as the
 login manager, those software would get wrong results, and
 some programs refuse to start

(Seen with opencvs some times ago, reminded by a discution
with zinovik and theo and setlogin hint from guenter)

ok maintainer & dcoppa@
2010-07-10 10:46:52 +00:00

43 lines
984 B
Makefile

# $OpenBSD: Makefile,v 1.8 2010/07/10 10:46:52 armani Exp $
COMMENT= simple login manager
DISTNAME= slim-1.3.1
PKGNAME= ${DISTNAME}p2
CATEGORIES= x11
HOMEPAGE= http://slim.berlios.de/
MAINTAINER= Landry Breuil <gaston@gcu.info>
MASTER_SITES= ${MASTER_SITE_BERLIOS:=slim/}
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
USE_X11= Yes
NO_REGRESS= Yes
LIB_DEPENDS= jpeg::graphics/jpeg \
png::graphics/png
WANTLIB= X11 Xft Xmu Xrender fontconfig c m stdc++ z freetype
MAKE_FILE= Makefile.openbsd
MAKE_FLAGS+= CFGDIR=${SYSCONFDIR}
FAKE_FLAGS+= PREFIX=${PREFIX} \
CFGDIR=${PREFIX}/share/examples/slim
pre-configure:
${SUBST_CMD} ${WRKSRC}/slim.1 ${WRKSRC}/slim.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/slim
${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD \
${PREFIX}/share/doc/slim/README.OpenBSD
chown ${SHAREOWN}:${SHAREGRP} \
${PREFIX}/share/doc/slim/README.OpenBSD
.include <bsd.port.mk>