1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/irc/irchat-pj-emacs21/Makefile

59 lines
1.6 KiB
Makefile

# Created by: Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
# $FreeBSD$
PORTNAME= irchat-pj
PORTVERSION= 2.5.6
PORTREVISION= 6
CATEGORIES= irc elisp
#MASTER_SITES= http://gouketsu.net/irchat-pj/src/2.5/
MASTER_SITES= http://ftp.dti.ad.jp/pub/unix/net/irc/irchat-pj/2.5/
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}p
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= ${PORTNAME}-${PORTVERSION}pl2.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= ports@FreeBSD.org
COMMENT= IRC client which runs under Emacsen
LICENSE= GPLv2 # (or later)
BUILD_DEPENDS= ${LOCALBASE}/${LISPDIR:S,${PORTNAME},pure,g}/pure-make.el:${PORTSDIR}/irc/pure-${EMACS_PORT_NAME}
RUN_DEPENDS= ${LOCALBASE}/${LISPDIR:S,${PORTNAME},pure,g}/pure-make.el:${PORTSDIR}/irc/pure-${EMACS_PORT_NAME} \
${LOCALBASE}/bin/dcc:${PORTSDIR}/irc/dcc
OPTIONS_DEFINE= DOCS
USE_BZIP2= yes
USE_EMACS= yes
EMACS_PORT_NAME?= emacs21
XEMACS_ONLY?= "@comment "
LISPDIR?= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
ETCDIR= share/doc/${PORTNAME}
MAKE_ARGS+= LISPDIR=${PREFIX}/${LISPDIR} \
PACKDIR=${PREFIX}/${EMACS_LIBDIR}/site-packages
DOCS= README.25 doc24/CHANGELOG doc24/FAQ-about-jp24.txt\
doc24/FAQ-irchat-PJ.txt doc24/INSTALL.irchat-pj\
doc24/README.browse-url-plus doc24/README.irchat-pj\
doc24/browse-url-plus-init.el doc24/dot.irchat_vars.el
PLIST_SUB= LISPDIR=${LISPDIR} \
ETCDIR=${ETCDIR} \
XEMACS_ONLY=${XEMACS_ONLY}
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${PREFIX}/${ETCDIR}
.for f in ${DOCS}
${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/${ETCDIR}
.endfor
.endif
.include <bsd.port.mk>