1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/japanese/jed/Makefile

105 lines
2.7 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= jed
PORTVERSION= ${VERSION}.j${JP_VERSION}
PORTREVISION= 5
CATEGORIES= japanese editors
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.kondara.org/~g/slang/
MASTER_SITE_SUBDIR= knu
DISTNAME= ${PORTNAME}-B${VERSION:R}-${VERSION:E}__J${JP_VERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}-extralibs-${VERSION}.tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= A SLang-based text editor (w/ Japanese support)
LIB_DEPENDS= slang.2:${PORTSDIR}/japanese/libslang
VERSION= 0.99.8
JP_VERSION= 067
DIST_SUBDIR= jed
GNU_CONFIGURE= yes
CONFIGURE_ENV= JED_ROOT="${JED_ROOT}" X_EXTRA_LIBS="-lcurses"
CONFIGURE_ARGS= --enable-x-locale=no
ALL_TARGET= ${BINSTUFF} getmail
MAN1= jed.1 rgrep.1
MAKE_JOBS_UNSAFE= yes
JED_ROOT= ${DATADIR}
BINSTUFF= jed rgrep
OPTIONS_DEFINE= DOCS X11 CANNA
OPTIONS_DEFAULT= CANNA X11
CANNA_DESC= Canna support
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
INFO= jed
.endif
.if ${PORT_OPTIONS:MCANNA}
CONFIGURE_ARGS+= --with-canna=yes
LIB_DEPENDS+= canna.1:${PORTSDIR}/japanese/canna-lib
.else
CONFIGURE_ARGS+= --with-canna=no
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11 xext xt
BINSTUFF+= xjed
PLIST_SUB= X11="bin/xjed"
.else
PLIST_SUB= X11="@comment "
.endif
_OBJDIR= ${WRKSRC}/src/${ARCH}objs
_DOCDIR= ${WRKSRC}/doc
_INFODIR= ${WRKSRC}/info
_LIBDIR= ${WRKSRC}/lib
PORTDOCS= abbrev.txt color.txt dfa.txt edt.txt emacs.txt fold.txt \
hooks.txt ide-mode.txt jed_faq.txt jedfuns.txt libfuns.txt \
menus.txt mouse.txt pc-keys.txt program.txt rgrep.txt \
rmail.txt script.txt slangfun.txt syntax.txt undo.txt wjed.txt \
wordstar.txt xjed.txt yankpop.txt README jed.tex jed-j.doc
post-extract:
@cd ${WRKDIR} && ${MV} *.sl ${_LIBDIR}/
@${CP} ${WRKSRC}/jed-j.doc ${_DOCDIR}/
post-patch:
@${RM} ${_INFODIR}/*.orig
do-install:
${MKDIR} ${JED_ROOT}
cd ${JED_ROOT} && ${MKDIR} bin lib lib/colors lib/tm
cd ${_OBJDIR} && ${INSTALL_PROGRAM} ${BINSTUFF} ${PREFIX}/bin/
${INSTALL_PROGRAM} ${_OBJDIR}/getmail ${JED_ROOT}/bin/
${INSTALL_DATA} ${_LIBDIR}/*.sl \
${_LIBDIR}/*.dat \
${_LIBDIR}/*.hlp \
${_LIBDIR}/jed.rc \
${JED_ROOT}/lib/
${INSTALL_DATA} ${_LIBDIR}/colors/* ${JED_ROOT}/lib/colors/
${INSTALL_DATA} ${_LIBDIR}/tm/* ${JED_ROOT}/lib/tm/
cd ${_DOCDIR} && ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
${INSTALL_DATA} ${_INFODIR}/jed.info ${PREFIX}/info/
${INSTALL_DATA} ${_INFODIR}/jed.1in ${PREFIX}/info/jed.info-1
${INSTALL_DATA} ${_INFODIR}/jed.2in ${PREFIX}/info/jed.info-2
${INSTALL_DATA} ${_INFODIR}/jed.3in ${PREFIX}/info/jed.info-3
${MKDIR} ${DOCSDIR}
cd ${_DOCDIR} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>