2002-10-25 20:39:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2002/10/26 00:39:15 naddy Exp $
|
2002-03-03 02:08:36 -05:00
|
|
|
|
|
|
|
COMMENT= "Library of Emacs Input Method"
|
|
|
|
|
2002-04-27 20:33:38 -04:00
|
|
|
VERSION= 21.2
|
2002-03-03 02:08:36 -05:00
|
|
|
PKGNAME= emacs-leim-${VERSION}
|
|
|
|
DISTNAME= leim-${VERSION}
|
|
|
|
CATEGORIES= editors
|
2002-10-25 20:39:14 -04:00
|
|
|
|
2002-05-13 08:37:36 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
|
2002-03-03 02:08:36 -05:00
|
|
|
|
2002-04-27 20:33:38 -04:00
|
|
|
MAINTAINER= Yozo TODA <yozo@v007.vaio.ne.jp>
|
2002-03-03 02:08:36 -05:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2002-03-27 19:19:40 -05:00
|
|
|
BUILD_DEPENDS= :emacs-${VERSION}*:editors/emacs21
|
|
|
|
RUN_DEPENDS= :emacs-${VERSION}*:editors/emacs21
|
2002-03-03 02:08:36 -05:00
|
|
|
|
|
|
|
SUBST_VARS= VERSION
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/emacs-${VERSION}/leim
|
|
|
|
DATASUBDIR= share/emacs/${VERSION}
|
|
|
|
|
2002-10-25 20:39:14 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2002-03-03 02:08:36 -05:00
|
|
|
# this is what GNU configure script does plus two lines of patch to make it
|
|
|
|
# work with the installed emacs.
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC} && cat Makefile.in | sed -e 's|@version@|${VERSION}|' \
|
|
|
|
-e 's|@prefix@|$${DESTDIR}${PREFIX}|' \
|
|
|
|
-e 's|@datadir@|$${prefix}/share|' \
|
|
|
|
-e 's|@srcdir@|${WRKSRC}|' \
|
|
|
|
-e 's|^BUILT-EMACS.*|BUILT-EMACS = ${PREFIX}/bin/emacs|' \
|
|
|
|
-e 's|buildlisppath=.*|buildlisppath=${PREFIX}/${DATASUBDIR}/lisp|' \
|
|
|
|
> Makefile
|
|
|
|
|
|
|
|
# leim assumes that the target directory exists already.
|
|
|
|
pre-install:
|
|
|
|
@mkdir -p ${PREFIX}/${DATASUBDIR}/leim
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|