aboutsummaryrefslogtreecommitdiff
path: root/textproc/dictem/Makefile
blob: dbe8b839dcfc2c03a49777ff01ffbf6d04806a69 (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
50
51
52
53
54
55
56
# New ports collection makefile for:	dictem
# Date created:				24 Apr 2006
# Whom:					Max N. Boyarov <m.boyarov@gmail.com>
#
# $FreeBSD$

PORTNAME=	dictem
PORTVERSION=	0.7
CATEGORIES=	textproc net elisp
MASTER_SITES=	http://www.mova.org/~cheusov/pub/dictem/ \
		http://ncd0.bsd.by/ports/distfiles/
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	m.boyarov@bsd.by
COMMENT=	DictEm is a dict client for [X]Emacs

USE_EMACS=	yes
USE_AUTOTOOLS=	autoconf:259

EMACS_PORT_NAME?=emacs21

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

CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV+=		EMACS=${EMACS_CMD} EMACSLOADPATH=${EMACS_BASE}/${EMACS_CORE_DIR}
CONFIGURE_ARGS+=	--with-lispdir=${EMACS_BASE}/${LISPDIR}

PLIST_FILES+=	${LISPDIR}/dictem.el	\
		${LISPDIR}/dictem.elc
PLIST_DIRS+=	${LISPDIR}

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS+=	README AUTHORS NEWS ChangeLog COPYING

.include <bsd.port.pre.mk>

.if ${EMACS_NAME} == "xemacs"
LISPDIR=	${EMACS_LIBDIR}/site-packages/lisp/dictem
.else
LISPDIR=	${EMACS_VERSION_SITE_LISPDIR}/dictem
.endif

pre-configure:
	${INSTALL_SCRIPT} ${AUTOCONF_DIR}/missing ${WRKSRC}

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>