| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.38 2013/02/17 07:36:09 dholland Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.39 2013/02/23 23:32:19 dholland Exp $ |
2 | # | | 2 | # |
3 | # used by editors/emacs/Makefile | | 3 | # used by editors/emacs/Makefile |
4 | # used by editors/emacs-nox11/Makefile | | 4 | # used by editors/emacs-nox11/Makefile |
5 | | | 5 | |
6 | CATEGORIES= editors | | 6 | CATEGORIES= editors |
7 | MASTER_SITES= # empty | | 7 | MASTER_SITES= # empty |
8 | DISTFILES= # empty | | 8 | DISTFILES= # empty |
9 | | | 9 | |
10 | MAINTAINER= dholland@NetBSD.org | | 10 | MAINTAINER= dholland@NetBSD.org |
11 | COMMENT= Meta-package for installing the preferred Emacs version | | 11 | COMMENT= Meta-package for installing the preferred Emacs version |
12 | | | 12 | |
13 | META_PACKAGE= yes | | 13 | META_PACKAGE= yes |
14 | | | 14 | |
| @@ -35,27 +35,27 @@ MY_EMACS_TYPE:= emacs20 | | | @@ -35,27 +35,27 @@ MY_EMACS_TYPE:= emacs20 |
35 | | | 35 | |
36 | .if !empty(MY_EMACS_TYPE:Mxemacs*) | | 36 | .if !empty(MY_EMACS_TYPE:Mxemacs*) |
37 | PKG_FAIL_REASON+= "EMACS_TYPE is xemacs." | | 37 | PKG_FAIL_REASON+= "EMACS_TYPE is xemacs." |
38 | # (Set this to avoid crashing out below.) | | 38 | # (Set this to avoid crashing out below.) |
39 | EMACS_PKGDIR= ../../editors/xemacs | | 39 | EMACS_PKGDIR= ../../editors/xemacs |
40 | .elif ${MY_EMACS_TYPE} == "emacs25" | | 40 | .elif ${MY_EMACS_TYPE} == "emacs25" |
41 | EMACS_PKGDIR= ../../editors/emacs-snapshot | | 41 | EMACS_PKGDIR= ../../editors/emacs-snapshot |
42 | .elif !empty(MY_EMACS_TYPE:M*nox) | | 42 | .elif !empty(MY_EMACS_TYPE:M*nox) |
43 | EMACS_PKGDIR= ../../editors/${EMACS_BASE_TYPE}-nox11 | | 43 | EMACS_PKGDIR= ../../editors/${EMACS_BASE_TYPE}-nox11 |
44 | .else | | 44 | .else |
45 | EMACS_PKGDIR= ../../editors/${EMACS_BASE_TYPE} | | 45 | EMACS_PKGDIR= ../../editors/${EMACS_BASE_TYPE} |
46 | .endif | | 46 | .endif |
47 | | | 47 | |
48 | DEPENDS+= ${EMACS_BASE_TYPE}>=${EMACS_MAJOR}:${EMACS_PKGDIR} | | 48 | DEPENDS+= ${MY_EMACS_TYPE}>=${EMACS_MAJOR}:${EMACS_PKGDIR} |
49 | | | 49 | |
50 | # | | 50 | # |
51 | # 2. Now it gets gross. Before this meta-package was introduced, the | | 51 | # 2. Now it gets gross. Before this meta-package was introduced, the |
52 | # emacs packages all had PKGNAME set to "emacs". Now the meta-package | | 52 | # emacs packages all had PKGNAME set to "emacs". Now the meta-package |
53 | # is called "emacs" and the emacs packages themselves have the emacs | | 53 | # is called "emacs" and the emacs packages themselves have the emacs |
54 | # major version in them. But in order to make updates work properly, | | 54 | # major version in them. But in order to make updates work properly, |
55 | # the version of the package called "emacs" cannot go down. We need to | | 55 | # the version of the package called "emacs" cannot go down. We need to |
56 | # set MY_EMACS_VERSION accordingly. The following were the versions at | | 56 | # set MY_EMACS_VERSION accordingly. The following were the versions at |
57 | # the time the renaming was done: | | 57 | # the time the renaming was done: |
58 | # emacs20 20.7nb16 | | 58 | # emacs20 20.7nb16 |
59 | # emacs21 21.4anb26 | | 59 | # emacs21 21.4anb26 |
60 | # emacs21-nox11 21.4anb13 | | 60 | # emacs21-nox11 21.4anb13 |
61 | # emacs22 22.3nb26 | | 61 | # emacs22 22.3nb26 |