pkgsrc-wip/slim/Makefile
Ondrej Tuma 75b7da2ba4 SLiM is a Desktop-independent graphical login manager for X11, derived from
Login.app.

It aims to be light and simple, although completely configurable through themes
and an option file; is suitable for machines on which remote login
functionalities are not needed. Features included:

* PNG and XFT support for alpha transparency and antialiased fonts
* External themes support
* Configurable runtime options: X server, login / shutdown / reboot commands
* Single (GDM-like) or double (XDM-like) input control
* Can load predefined user at startup
* Configurable welcome / shutdown messages
* Random theme selection
2007-03-12 22:17:25 +00:00

58 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2007/03/12 22:17:25 ondratu Exp $
#
DISTNAME= slim-1.2.6
CATEGORIES= x11
MASTER_SITES= http://download.berlios.de/slim/
MAINTAINER= pkgsrc@blackmouse.biz
HOMEPAGE= http://slim.berlios.de/
COMMENT= SLiM is a Desktop-independent graphical login manager for X11
USE_LANGUAGES= c c++
EGDIR= ${PREFIX}/share/examples
CONF_FILES= ${EGDIR}/slim.conf ${PKG_SYSCONFDIR}/slim.conf
RCD_SCRIPTS+= slim
CFLAGS+= -I. -I${BUILDLINK_DIR}/include -I${BUILDLINK_DIR}/freetype2 \
-I${BUILDLINK_DIR}/freetype2/config -I${BUILDLINK_DIR}/include/libpng12 \
-I/usr/include
LDFLAGS+= -L${BUILDLINK_DIR}/lib -lXft -lX11 -lfreetype -lXrender -lfontconfig \
-lpng12 -lz -lm -lcrypt -lXmu -lpng -ljpeg
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_FILES.conf= slim.conf
SUBST_SED.conf+= -e "s|/usr/local/bin:/usr/X11R6/bin|${PREFIX}/bin:${PREFIX}/${X11ROOT_PREFIX}/bin|g"
SUBST_SED.conf+= -e "s|/usr/X11R6/bin/X|${PREFIX}/${X11ROOT_PREFIX}/bin/X|g"
SUBST_SED.conf+= -e "s|/usr/X11R6/bin/xauth|${PREFIX}/${X11ROOT_PREFIX}/bin/xauth|g"
SUBST_SED.conf+= -e "s|/usr/X11R6/bin/xterm|${PREFIX}/bin/xterm|g"
SUBST_MESSAGE.conf= Fixing hardcoded paths.
do-build:
cd ${WRKSRC} && ${MAKE} PREFIX=${PREFIX} CC=${PKG_CC} CXX=${PKG_CXX} \
CFGDIR=${PKG_SYSCONFDIR} CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'
do-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/slim/themes/default
cd ${WRKSRC} && ${INSTALL_DATA} themes/default/slim.theme \
${PREFIX}/share/slim/themes/default/slim.theme
cd ${WRKSRC} && ${INSTALL_DATA} themes/default/panel.png \
${PREFIX}/share/slim/themes/default/panel.png
cd ${WRKSRC} && ${INSTALL_DATA} themes/default/background.jpg \
${PREFIX}/share/slim/themes/default/background.jpg
cd ${WRKSRC} && ${INSTALL_PROGRAM} slim ${PREFIX}/sbin/slim
cd ${WRKSRC} && ${INSTALL_MAN} slim.1 ${PREFIX}/${PKGMANDIR}/man1/slim.1
cd ${WRKSRC} && ${INSTALL_DATA} slim.conf ${EGDIR}/slim.conf
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../x11/xorg-libs/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"