openbsd-ports/devel/id-utils/Makefile

63 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.13 1999/11/03 16:24:56 espie Exp $
1997-12-01 16:37:56 -05:00
1999-05-10 23:04:35 -04:00
DISTNAME= id-utils-3.2d
1997-12-01 16:37:56 -05:00
CATEGORIES= devel
MAINTAINER= ports@OpenBSD.ORG
1997-12-01 16:37:56 -05:00
1999-05-10 23:04:35 -04:00
MASTER_SITES= ftp://alpha.gnu.org/gnu/ \
ftp://ftp.enst.fr/pub/gnu/gnits/
1998-10-08 14:21:00 -04:00
# 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
1999-10-14 18:08:27 -04:00
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
1997-12-01 16:37:56 -05:00
1999-05-10 23:04:35 -04:00
# International files don't want to be built separately
#
SEPARATE_BUILD= simple
1997-12-01 16:37:56 -05:00
GNU_CONFIGURE= yes
USE_GMAKE= yes
.include <bsd.port.mk>