aboutsummaryrefslogtreecommitdiff
path: root/editors/tree-widget/Makefile
blob: 8217257ece497a2a72660effc19be50e7da79ee6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# New ports collection makefile for:   tree-widget
# Date created:                27 July 2004
# Whom:                        Dryice Liu <dryice@liu.com.cn>
#
# $FreeBSD$
#

PORTNAME=	tree-widget
PORTVERSION=	2.0
PORTREVISION=	6
CATEGORIES=	editors elisp
MASTER_SITES=	SF/emhacks/${PORTNAME}/${PORTVERSION} \
		http://dryice.name/computer/FreeBSD/distfiles/

PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A tree widget for Emacs

USE_EMACS=	yes

LISPDIR=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
NO_WRKSUBDIR=	yes
THEMES_SUBDIR=	default folder

do-build:
	cd ${WRKSRC}; ${EMACS_NAME} -batch -no-site-file\
			--eval="(add-to-list 'load-path \"${WRKSRC}\")"\
			-f batch-byte-compile *.el

do-install:
	${MKDIR} ${LISPDIR}
.for i in *.el *.elc
	${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR}
.endfor
	${MKDIR} ${LISPDIR}/tree-widget-themes
.for i in ${THEMES_SUBDIR}
	${MKDIR} ${LISPDIR}/tree-widget-themes/${i}
	${INSTALL_DATA} ${WRKSRC}/tree-widget-themes/${i}/*\
			${LISPDIR}/tree-widget-themes/${i}
.endfor

.include <bsd.port.pre.mk>

.if ${EMACS_PORT_NAME} != "emacs23"
PORTNAMESUFFIX=	${PKGNAMESUFFIX}
.endif

.include <bsd.port.post.mk>