openbsd-ports/devel/id-utils/Makefile
espie a063a0f5f7 Fix typo in xemacs installation directory.
This should be the final solution to that problem.
* basic package needs BOTH emacs and xemacs to build, as it can't rely
on emacs-lisp compilers being intercheangable.
* one can build the port without emacs or xemacs, by asking explicitly for
it.
* basic package installs TWO sets of emacs files, one for emacs, one for
xemacs.

There needn't be RUNNING_DEPENDENCIES between id-utils and emacs/xemacs,
as the emacs-lisp files are an add-on, not necessary for id-utils to work.

However, pkg_* don't currently support the notion of a `shared' directory
between several packages, hence a succession of

pkg_add emacs
pkg_add id-utils
pkg_delete emacs
pkg_delete id-utils

won't deal with /usr/local/share/emacs/site_lisp correctly...
This is a problem in pkg_* design, not in the id-utils port.

Package checked and uploaded.
1999-11-03 16:24:56 +00:00

63 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 1999/11/03 16:24:56 espie Exp $
DISTNAME= id-utils-3.2d
CATEGORIES= devel
MAINTAINER= ports@OpenBSD.ORG
MASTER_SITES= ftp://alpha.gnu.org/gnu/ \
ftp://ftp.enst.fr/pub/gnu/gnits/
# take over the management of emacs file, as the current process is abysmal.
CONFIGURE_ARGS=--without-emacs
PKGNAME=${DISTNAME}
.if defined(WITHOUT_EMACS)
PKGNAME:=${PKGNAME}-noemacs
.else
BUILD_DEPENDS+= emacs:${PORTSDIR}/editors/emacs
.endif
.if defined(WITHOUT_XEMACS)
PKGNAME:=${PKGNAME}-noxemacs
.else
BUILD_DEPENDS+= xemacs:${PORTSDIR}/editors/xemacs20
.endif
PLIST=${WRKBUILD}/PLIST
post-build:
.if !defined(WITHOUT_EMACS)
mkdir -p ${WRKBUILD}/elisp
cd ${WRKBUILD}/elisp && ln -s -f ${WRKSRC}/lisp/id-utils.el && \
EMACS=emacs ${SHELL} ${WRKSRC}/lisp/elisp-comp id-utils.el
.endif
.if !defined(WITHOUT_XEMACS)
mkdir -p ${WRKBUILD}/xelisp
cd ${WRKBUILD}/xelisp && ln -s -f ${WRKSRC}/lisp/id-utils.el && \
EMACS=xemacs ${SHELL} ${WRKSRC}/lisp/elisp-comp id-utils.el
.endif
pre-install:
@cp ${FILESDIR}/PLIST ${PLIST}
.if !defined(WITHOUT_EMACS)
@echo "share/emacs/site-lisp/id-utils.el" >>${PLIST}
@echo "share/emacs/site-lisp/id-utils.elc" >>${PLIST}
${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKBUILD}/elisp/id-utils.el ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKBUILD}/elisp/id-utils.elc ${PREFIX}/share/emacs/site-lisp
.endif
.if !defined(WITHOUT_XEMACS)
@echo "lib/xemacs/site-lisp/id-utils.el" >>${PLIST}
@echo "lib/xemacs/site-lisp/id-utils.elc" >>${PLIST}
${INSTALL_DATA_DIR} ${PREFIX}/lib/emacs/site-lisp
${INSTALL_DATA} ${WRKBUILD}/elisp/id-utils.el ${PREFIX}/lib/xemacs/site-lisp
${INSTALL_DATA} ${WRKBUILD}/elisp/id-utils.elc ${PREFIX}/lib/xemacs/site-lisp
.endif
# International files don't want to be built separately
#
SEPARATE_BUILD= simple
GNU_CONFIGURE= yes
USE_GMAKE= yes
.include <bsd.port.mk>