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.
23 lines
672 B
Makefile
23 lines
672 B
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2008/10/11 09:31:56 uebayasi Exp $
|
|
#
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
XEMACS_BUILDLINK3_MK:= ${XEMACS_BUILDLINK3_MK}+
|
|
|
|
.if ${BUILDLINK_DEPTH} == "+"
|
|
BUILDLINK_DEPENDS+= xemacs
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nxemacs}
|
|
BUILDLINK_PACKAGES+= xemacs
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}xemacs
|
|
|
|
.if ${XEMACS_BUILDLINK3_MK} == "+"
|
|
.include "../../editors/emacs/modules.mk"
|
|
BUILDLINK_API_DEPENDS.xemacs+= ${_EMACS_REQD}
|
|
BUILDLINK_PKGSRCDIR.xemacs?= ${_EMACS_PKGDIR}
|
|
.endif # XEMACS_BUILDLINK3_MK
|
|
|
|
BUILDLINK_CONTENTS_FILTER.xemacs= ${EGREP} '.*\.el$$|.*\.elc$$'
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|