mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
c324058778
- Install stumpish and other contrib stuff - Add LICENSE PR: ports/149397 Submitted by: Anonymous <swell.k at gmail.com> Approved by: tabthorpe (mentor)
84 lines
2.0 KiB
Makefile
84 lines
2.0 KiB
Makefile
# New ports collection makefile for: stumpwm
|
|
# Date created: 2008-02-20
|
|
# Whom: alepulver
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= stumpwm
|
|
PORTVERSION= 0.9.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-wm lisp
|
|
MASTER_SITES= SAVANNAH
|
|
DISTFILES= ${DISTNAME}.tgz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A tiling, keyboard driven Window Manager written in Common Lisp
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-contrib-dir=${DATADIR}
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
PLIST_FILES= bin/stumpish \
|
|
bin/${PORTNAME}
|
|
INFO= ${PORTNAME}
|
|
PORTEXAMPLES= sample-stumpwmrc.lisp
|
|
PORTDATA= *
|
|
|
|
OPTIONS= SBCL "Build with lang/sbcl (otherwise with lang/clisp)" on
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_SBCL) || make(makesum) || defined(FETCH_ALL)
|
|
MASTER_SITES+= http://common-lisp.net/~abridgewater/dist/clx/:clx
|
|
DISTFILES+= clx-0.7.4.tgz:clx
|
|
.endif
|
|
|
|
.if defined(WITH_SBCL)
|
|
CONFIGURE_ARGS+= --with-lisp=sbcl
|
|
BUILD_DEPENDS+= sbcl:${PORTSDIR}/lang/sbcl
|
|
.else
|
|
CONFIGURE_ARGS+= --with-lisp=clisp
|
|
BUILD_DEPENDS+= clisp:${PORTSDIR}/lang/clisp
|
|
.endif
|
|
|
|
.if !defined(WITH_SBCL)
|
|
.if exists(${LOCALBASE}/bin/clisp) && \
|
|
!exists(${LOCALBASE}/lib/clisp/full/clx.o)
|
|
IGNORE= requires lang/clisp built with CLX_NEW option ON
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(WITH_SBCL)
|
|
post-extract: .SILENT
|
|
${LN} -sf ${WRKDIR}/clx*/*.asd ${WRKSRC}/cl-ppcre/*.asd ${WRKSRC}
|
|
|
|
post-patch: .SILENT
|
|
${REINPLACE_CMD} 's|sbcl_.*OPTS=|& \
|
|
--disable-debugger \
|
|
--no-userinit \
|
|
--no-sysinit \
|
|
--eval "(require :asdf)" \
|
|
--eval "(pop asdf:*central-registry*)" \
|
|
|' ${WRKSRC}/Makefile.in
|
|
${REINPLACE_CMD} 's/\(sb-introspect:function-\)arglist/\1lambda-list/' \
|
|
${WRKSRC}/manual.lisp
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/stumpish ${PREFIX}/bin
|
|
.if !defined(NOPORTEXAMPLES)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${EXAMPLESDIR}
|
|
.endif
|
|
.if !defined(NOPORTDATA)
|
|
${MKDIR} ${DATADIR}
|
|
${TAR} cf - -C${WRKSRC}/contrib --exclude stumpish\* . \
|
|
| ${TAR} xovf - -C${DATADIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|