mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
104 lines
2.6 KiB
Makefile
104 lines
2.6 KiB
Makefile
# New ports collection makefile for: Jed text editor w/ Japanese support
|
|
# Version required: 0.99.8.j067
|
|
# Date created: 2 Feb 2000
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
DISTNAME= jed-B0.99-8__J067
|
|
PKGNAME= ja-jed-0.99.8.j067
|
|
CATEGORIES= japanese editors
|
|
MASTER_SITES= http://people.FreeBSD.org/~knu/ports/distfiles/ \
|
|
http://kondara.sdri.co.jp/~kikutani/slang/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
jed-extralibs-0.99.8${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= knu@idaemons.org
|
|
|
|
LIB_DEPENDS= slang.2:${PORTSDIR}/japanese/libslang \
|
|
${LIBDEP_CANNA}
|
|
|
|
DIST_SUBDIR= jed
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= JED_ROOT="${JED_ROOT}" X_EXTRA_LIBS="-lxpg4 -lcurses"
|
|
CONFIGURE_ARGS= --enable-x-locale=no --with-canna="${WITH_CANNA}"
|
|
ALL_TARGET= ${BINSTUFF} getmail
|
|
MAN1= jed.1 rgrep.1
|
|
|
|
JED_ROOT= ${PREFIX}/lib/jed
|
|
BINSTUFF= jed rgrep
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(NO_CANNA)
|
|
WITH_CANNA= no
|
|
.else
|
|
WITH_CANNA= yes
|
|
LIBDEP_CANNA= canna.1:${PORTSDIR}/japanese/Canna
|
|
.endif
|
|
|
|
# XJED core dumps on 3.x-STABLE for the present.
|
|
.if ${OSVERSION} < 400000
|
|
XJED_BROKEN= yes
|
|
.endif
|
|
|
|
.if defined(NO_X11)
|
|
NO_XJED= yes
|
|
.endif
|
|
|
|
.if defined(NO_XJED)
|
|
PLIST_SUB= XJED_ENTRY="@comment xjed is not installed"
|
|
.else
|
|
USE_XLIB= yes
|
|
BINSTUFF+= xjed
|
|
PLIST_SUB= XJED_ENTRY="bin/xjed"
|
|
.endif
|
|
|
|
_OBJDIR= ${WRKSRC}/src/${ARCH}objs
|
|
_DOCDIR= ${WRKSRC}/doc
|
|
_INFODIR= ${WRKSRC}/info
|
|
_LIBDIR= ${WRKSRC}/lib
|
|
|
|
pre-fetch:
|
|
.if !defined(NO_CANNA)
|
|
@${ECHO_MSG} "To build this port without Canna, define \"NO_CANNA\"."
|
|
.endif
|
|
.if !defined(NO_XJED)
|
|
.if defined(XJED_BROKEN)
|
|
@${ECHO_MSG} "Sorry, I will not build xjed since it is broken on 3.x-STABLE for the present."
|
|
.else
|
|
@${ECHO_MSG} "To build this port without xjed, define \"NO_XJED\"."
|
|
.endif
|
|
.endif
|
|
|
|
post-extract:
|
|
@cd ${WRKDIR} && ${MV} *.sl ${_LIBDIR}/
|
|
|
|
do-install:
|
|
@${MKDIR} ${JED_ROOT}
|
|
.for d in bin doc lib lib/colors lib/tm
|
|
@${MKDIR} ${JED_ROOT}/${d}
|
|
.endfor
|
|
.for f in ${BINSTUFF}
|
|
${INSTALL_PROGRAM} ${_OBJDIR}/${f} ${PREFIX}/bin/
|
|
.endfor
|
|
${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/
|
|
.for f in ${MAN1}
|
|
${INSTALL_MAN} ${_DOCDIR}/${f} ${PREFIX}/man/man1/
|
|
.endfor
|
|
${INSTALL_DATA} ${_INFODIR}/jed.* ${PREFIX}/info/
|
|
@install-info ${PREFIX}/info/jed.info ${PREFIX}/info/dir
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${JED_ROOT}/doc/
|
|
${INSTALL_DATA} ${_DOCDIR}/README ${_DOCDIR}/*.txt ${_DOCDIR}/jed.tex ${WRKSRC}/jed-j.doc ${JED_ROOT}/doc/
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
|
|
|
.include <bsd.port.post.mk>
|