freebsd-ports/x11-fm/rox-session/Makefile

55 lines
1.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: rox-session
# Date created: 11 March 2001
# Whom: Jimmy Olgeni <olgeni@uli.it>
#
# $FreeBSD$
PORTNAME= rox-session
2006-12-12 11:48:10 +01:00
PORTVERSION= 0.29
CATEGORIES= x11-fm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= rox
2006-12-12 11:48:10 +01:00
DISTNAME= rox-session-${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
2003-02-23 11:51:29 +01:00
COMMENT= A session manager for the ROX desktop
2006-12-19 17:28:33 +01:00
RUN_DEPENDS= ${LOCALBASE}/bin/rox:${PORTSDIR}/x11-fm/rox-filer \
${LOCALBASE}/lib/ROX-Lib2/python/rox/__init__.py:${PORTSDIR}/devel/py-roxlib
2006-12-12 11:48:10 +01:00
USE_BZIP2= yes
USE_PYTHON= yes
2006-12-12 11:48:10 +01:00
SUB_FILES= rox-session rox.desktop
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/sbin/gdm)
WITH_GDM= yes
.endif
.if defined(WITH_GDM)
RUN_DEPENDS+= ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm
PLIST_SUB+= GDM=""
.else
PLIST_SUB+= GDM="@comment "
.endif
2006-12-12 11:48:10 +01:00
post-patch:
@${FIND} ${WRKSRC} -name *.orig | ${XARGS} ${RM}
do-build:
2006-12-12 11:48:10 +01:00
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
do-install:
2006-12-12 11:48:10 +01:00
@${MKDIR} ${PREFIX}/apps
@${CP} -r ${WRKSRC}/ROX-Session ${PREFIX}/apps/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/apps/ROX-Session
@${INSTALL_SCRIPT} ${WRKDIR}/rox-session ${PREFIX}/sbin
.if defined(WITH_GDM)
2006-12-12 11:48:10 +01:00
@${INSTALL_DATA} ${WRKDIR}/rox.desktop ${PREFIX}/etc/dm/Sessions
.endif
.include <bsd.port.post.mk>