2006-01-08 16:48:57 -05:00
|
|
|
# New ports collection makefile for: slim
|
|
|
|
# Date created: 8 Jan 2006
|
|
|
|
# Whom: Tobias Roth <ports@fsck.ch>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slim
|
2012-07-19 06:12:45 -04:00
|
|
|
PORTVERSION= 1.3.4
|
2012-08-04 20:31:46 -04:00
|
|
|
PORTREVISION= 2
|
2006-01-08 16:48:57 -05:00
|
|
|
CATEGORIES= x11
|
2012-06-03 02:55:46 -04:00
|
|
|
MASTER_SITES= http://slim.berlios.de/releases/
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2009-10-29 18:26:14 -04:00
|
|
|
MAINTAINER= henry.hu.sh@gmail.com
|
2006-01-08 16:48:57 -05:00
|
|
|
COMMENT= Graphical login manager for X11, derived from Login.app
|
|
|
|
|
2012-07-04 17:53:36 -04:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-02-05 06:46:55 -05:00
|
|
|
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2012-06-03 02:55:46 -04:00
|
|
|
ck-connector.0:${PORTSDIR}/sysutils/consolekit \
|
2012-06-01 01:26:28 -04:00
|
|
|
png15:${PORTSDIR}/graphics/png \
|
2007-07-19 12:09:00 -04:00
|
|
|
freetype:${PORTSDIR}/print/freetype2 \
|
|
|
|
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2012-06-03 02:55:46 -04:00
|
|
|
USE_CMAKE= yes
|
2007-07-19 12:09:00 -04:00
|
|
|
USE_XORG= x11 xft xmu xorg-server xrender
|
2012-08-04 20:03:33 -04:00
|
|
|
USE_PKGCONFIG= build
|
2012-08-04 20:31:46 -04:00
|
|
|
USE_RC_SUBR= slim
|
2007-07-19 12:09:00 -04:00
|
|
|
SUB_FILES= pkg-message
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2012-06-03 02:55:46 -04:00
|
|
|
CMAKE_ARGS= -DUSE_CONSOLEKIT=yes
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2012-06-03 02:55:46 -04:00
|
|
|
MAN1= slim.1
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2012-07-04 17:53:36 -04:00
|
|
|
OPTIONS= PAM "Use pam" off
|
|
|
|
|
2007-01-16 21:58:19 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-07-04 17:53:36 -04:00
|
|
|
.if defined(WITH_PAM)
|
|
|
|
CMAKE_ARGS+= -DUSE_PAM=yes
|
|
|
|
PLIST_SUB+= PAM=""
|
|
|
|
.else
|
|
|
|
CMAKE_ARGS+= -DUSE_PAM=no
|
|
|
|
PLIST_SUB+= PAM="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-06-03 02:55:46 -04:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/${PORTNAME}.conf
|
|
|
|
@${REINPLACE_CMD} -e 's|"/etc"|"${PREFIX}/etc"|' \
|
|
|
|
-e 's|slim.conf|slim.conf.sample|' \
|
2012-06-10 18:02:00 -04:00
|
|
|
-e 's|set(MANDIR "$${CMAKE_INSTALL_PREFIX}/share/man")|set(MANDIR "${PREFIX}/man")|' \
|
2012-06-03 02:55:46 -04:00
|
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
@${MV} ${WRKSRC}/slim.conf ${WRKSRC}/slim.conf.sample
|
|
|
|
@${REINPLACE_CMD} -e 's|std::snprintf|snprintf|' ${WRKSRC}/Ck.cpp
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2012-07-19 06:12:45 -04:00
|
|
|
# Fix a previous bad install - Ok to remove at version 1.3.5 or later
|
2012-06-10 18:02:00 -04:00
|
|
|
pre-install:
|
2012-07-04 17:53:36 -04:00
|
|
|
@${RM} -f ${LOCALBASE}/share/man/man1/slim.1
|
|
|
|
@${RMDIR} ${LOCALBASE}/share/man/man1 2>/dev/null || true
|
|
|
|
@${RMDIR} ${LOCALBASE}/share/man 2>/dev/null || true
|
2012-06-10 18:02:00 -04:00
|
|
|
|
2006-01-08 16:48:57 -05:00
|
|
|
post-install:
|
2012-06-03 02:55:46 -04:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
|
2007-07-19 12:09:00 -04:00
|
|
|
@if [ ! -f ${PREFIX}/etc/slim.conf ]; then \
|
2012-06-03 02:55:46 -04:00
|
|
|
${CP} ${PREFIX}/etc/slim.conf.sample ${PREFIX}/etc/slim.conf ; \
|
2006-01-08 16:48:57 -05:00
|
|
|
fi
|
2012-07-04 17:53:36 -04:00
|
|
|
. if defined(WITH_PAM)
|
|
|
|
@${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
|
2007-07-19 12:09:00 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-01-08 16:48:57 -05:00
|
|
|
|
2007-01-16 21:58:19 -05:00
|
|
|
.include <bsd.port.post.mk>
|