1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/x11/slim/Makefile
Niclas Zeising 92ea0d614b The FreeBSD x11 team proudly presents
an zeising, kwm, miwi, bapt, eadler production:

Xorg 7.7

Starring:
xserver 1.12.4 (new xorg only)
Mesa 8.0.4, including libGL, libGLU and dri (new xorg only)
libX11 1.5.0
libxcb 1.9
libdrm 2.4.42 (new xorg only)
freeglut 2.8.1
Also starring:
Updates to drivers and other libraries and utilities

Additional notes:
Change pkgconf to be a build dependency.
Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use
this.
Trim makefile headers.
Take maintanership of x11/xcb-proto, ok'd by ashish.
If you are running WITH_NEW_XORG=, you need to rebuild all installed
drivers, see UPDATING for more information.
Various fixes to make ports compile.

PR:		ports/177942
Exp-run by:	miwi
Approved by:	portmgr (miwi)

Thanks to all who helped testing!
2013-05-25 14:37:02 +00:00

69 lines
1.7 KiB
Makefile

# Created by: Tobias Roth <ports@fsck.ch>
# $FreeBSD$
PORTNAME= slim
PORTVERSION= 1.3.5
CATEGORIES= x11
MASTER_SITES= ftp://ftp.berlios.de/pub/slim/ \
SF/slim.berlios
MAINTAINER= henry.hu.sh@gmail.com
COMMENT= Graphical login manager for X11, derived from Login.app
LICENSE= GPLv2
LIB_DEPENDS= dbus-1:${PORTSDIR}/devel/dbus \
pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2 \
ck-connector:${PORTSDIR}/sysutils/consolekit \
expat:${PORTSDIR}/textproc/expat2 \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
USES= cmake pkgconfig
USE_XORG= ice sm x11 xau xcb xdmcp xext xft xmu xorg-server xrender xt
USE_RC_SUBR= slim
SUB_FILES= pkg-message
CMAKE_ARGS= -DUSE_CONSOLEKIT=yes
MAN1= slim.1
OPTIONS_DEFINE= PAM
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPAM}
CMAKE_ARGS+= -DUSE_PAM=yes
PLIST_SUB+= PAM=""
.else
CMAKE_ARGS+= -DUSE_PAM=no
PLIST_SUB+= PAM="@comment "
.endif
post-patch:
@${CP} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/slim.conf.sample
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
-e 's|/etc|${PREFIX}/etc|' \
-e 's|share/man|man|' \
-e 's|slim.conf|slim.conf.sample|' \
-e '/systemd/d' \
${WRKSRC}/CMakeLists.txt
post-install:
@if [ ! -f ${PREFIX}/etc/slim.conf ]; then \
${CP} ${PREFIX}/etc/slim.conf.sample ${PREFIX}/etc/slim.conf ; \
fi
. if ${PORT_OPTIONS:MPAM}
@${INSTALL_DATA} ${FILESDIR}/pam.conf ${PREFIX}/etc/pam.d/slim.default
@if [ ! -f ${PREFIX}/etc/pam.d/slim ]; then \
${CP} ${PREFIX}/etc/pam.d/slim.default ${PREFIX}/etc/pam.d/slim ; \
fi
. endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>