34004f51e0
Don't call pkg_info to get the installed Emacs version; always use the version matching EMACS_TYPE set by users. Be DEPENDS to it. This should address pkg/37146 by Aleksey Cheusov. While here convert some emacs lisp packages to user-destdir.
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2008/10/11 09:31:54 uebayasi Exp $
|
|
|
|
DISTNAME= irchat-pj-2.4.24.22
|
|
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
|
|
PKGREVISION= 1
|
|
CATEGORIES= chat
|
|
MASTER_SITES= http://his.luky.org/ftp/mirrors/irchat-pj/ \
|
|
http://gouketsu.net/irchat-pj/src/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
|
|
HOMEPAGE= http://gouketsu.net/irchat-pj/
|
|
COMMENT= Emacs lisp interface to Internet Relay Chat
|
|
|
|
INSTALLATION_DIRS= bin ${EMACS_LISPPREFIX:C|^${PREFIX}/||}/irchat-pj
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../editors/emacs/modules.mk"
|
|
|
|
.if ${EMACS_FLAVOR} == "emacs"
|
|
INSTALL_TARGET= install
|
|
.elif ${EMACS_FLAVOR} == "xemacs"
|
|
BUILD_TARGET= package
|
|
INSTALL_TARGET= install-package
|
|
.else
|
|
PKG_FAIL_REASON+= "Unknown Emacs flavor"
|
|
.endif
|
|
|
|
LIBS.SunOS+= -lnsl -lsocket
|
|
MAKE_ENV+= LIBS=${LIBS:M*:Q}
|
|
|
|
do-install:
|
|
cd ${WRKSRC}; \
|
|
${INSTALL_PROGRAM} dcc/dcc ${DESTDIR}${PREFIX}/bin; \
|
|
for f in irchat*.el*; do \
|
|
${INSTALL_DATA} $$f ${DESTDIR}${EMACS_LISPPREFIX}/irchat-pj; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|