1996-12-07 13:24:00 +00:00
|
|
|
# New ports collection makefile for: jman - japanese man with EUC
|
1996-12-12 08:36:15 +00:00
|
|
|
# Version required: 1.1
|
1996-12-07 13:24:00 +00:00
|
|
|
# Date created: 4 December 1996
|
|
|
|
# Whom: Kiriyama Kazuhiko <kiri@kiri.toba-cmt.ac.jp>
|
|
|
|
#
|
1997-06-13 16:57:37 +00:00
|
|
|
# $Id: Makefile,v 1.8 1997/05/20 04:27:31 asami Exp $
|
1996-12-07 13:24:00 +00:00
|
|
|
#
|
|
|
|
|
1996-12-12 08:36:15 +00:00
|
|
|
DISTNAME= jp-man-1.1
|
1996-12-07 13:24:00 +00:00
|
|
|
CATEGORIES= japanese
|
1997-02-12 10:59:35 +00:00
|
|
|
MASTER_SITES= ftp://jaz.jp.freebsd.org/pub/FreeBSD-jp/man-jp/ \
|
|
|
|
ftp://ports.jp.freebsd.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/
|
1996-12-07 13:24:00 +00:00
|
|
|
|
|
|
|
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
|
|
|
|
|
1997-03-30 12:40:11 +00:00
|
|
|
#do not run-depend on mule because dependency will be pulled in to package
|
|
|
|
#and we don't know which one the user wants
|
1996-12-07 13:24:00 +00:00
|
|
|
RUN_DEPENDS= ${PREFIX}/bin/groff:${PORTSDIR}/japanese/groff \
|
1997-03-30 12:40:11 +00:00
|
|
|
jless:${PORTSDIR}/japanese/less
|
1997-03-30 02:57:20 +00:00
|
|
|
|
1997-06-13 16:57:37 +00:00
|
|
|
MANLANG= ja_JP.EUC
|
|
|
|
MAN1= jcatman.1 jman.1 jmanpath.1 japropos.1 jwhatis.1 jmakewhatis.1
|
|
|
|
MANCOMPRESSED= yes
|
1997-03-30 02:57:20 +00:00
|
|
|
JMANELDIR= ${PREFIX}/lib/mule/site-lisp/jman
|
1996-12-07 13:24:00 +00:00
|
|
|
|
1997-02-12 10:59:35 +00:00
|
|
|
# XPG4LIBPATH specifies the path name of the xpg4 library.
|
|
|
|
# The xpg4 library include setlocale() function and etc. for I18N,
|
|
|
|
# when using EUC code(e.g. ja_JP.EUC). At version 2.1.5 of FreeBSD or older,
|
|
|
|
# there isn't the xpg4 library in system, because include C library.
|
|
|
|
# But 2.2.0 or newer, the set of code for xpg4 was removed from C library,
|
|
|
|
# and included in new created xpg4 libray(/usr/lib/libxpg4*) .
|
|
|
|
# If your system have xpg4 library(libxpg4*) in /usr/lib, this patch
|
|
|
|
# automatically apply to srource file. If your system have xpg4 library
|
|
|
|
# in other directory, you must define XPG4LIBPATH. And if you don't want to
|
|
|
|
# use xpg4 library, you must define NOUSE_XPG4LIB. At default, you don't
|
|
|
|
# have to define XPG4LIBPATH and NOUSE_XPG4LIB.
|
|
|
|
# See a make rule of target pre-patch for details.
|
|
|
|
#
|
|
|
|
XPG4LIBPATH?= /usr/lib
|
|
|
|
|
|
|
|
pre-patch:
|
1997-02-14 05:20:19 +00:00
|
|
|
@${MKDIR} ${PATCHDIR}
|
1997-05-20 04:27:35 +00:00
|
|
|
@${RM} -f ${PATCHDIR}/patch-aa
|
1997-02-12 10:59:35 +00:00
|
|
|
.if !defined(NOUSE_XPG4LIB)
|
1997-05-20 04:27:35 +00:00
|
|
|
@${SED} -e "s,%XPG4LIBPATH%,${XPG4LIBPATH},g" \
|
|
|
|
< ${FILESDIR}/patch-xpg4.tmpl > ${FILESDIR}/patch-xpg4
|
1997-02-12 10:59:35 +00:00
|
|
|
@(for libfile in ${XPG4LIBPATH}/libxpg4*; do \
|
|
|
|
if [ ! "$$libfile" = "" ]; then \
|
1997-05-20 04:27:35 +00:00
|
|
|
ln -sf ${FILESDIR}/patch-xpg4 \
|
|
|
|
${PATCHDIR}/patch-aa; \
|
1997-02-12 10:59:35 +00:00
|
|
|
break 1; \
|
|
|
|
fi; \
|
|
|
|
done)
|
|
|
|
.else
|
1997-05-20 04:27:35 +00:00
|
|
|
@ln -sf ${FILESDIR}/patch-noxpg4 ${PATCHDIR}/patch-aa
|
1997-02-12 10:59:35 +00:00
|
|
|
.endif
|
|
|
|
|
1996-12-07 13:24:00 +00:00
|
|
|
post-install:
|
1997-03-30 02:57:20 +00:00
|
|
|
@${MKDIR} ${JMANELDIR}
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/jman.el ${JMANELDIR}
|
1997-05-20 04:27:35 +00:00
|
|
|
@${SETENV} CP=${CP} PKG_PREFIX=${PREFIX} \
|
|
|
|
/bin/sh ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
|
1997-02-12 10:59:35 +00:00
|
|
|
|
|
|
|
pre-clean:
|
1997-05-20 04:27:35 +00:00
|
|
|
@${RM} -f ${PATCHDIR}/patch-aa ${FILESDIR}/patch-xpg4
|
1996-12-07 13:24:00 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|