summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-12-09 18:35:22 -0500
committerShokara Kou <kou@13f0.net>2022-12-09 18:41:52 -0500
commit1bace0ee6ee90e32846c27ca8f293d3b621588cd (patch)
tree44729442a5d6619ab8b28a583f361643fea481ba
parent0503edba1e42c9c868a23267b3c4f9c016bfe35e (diff)
add motif flavor to emacs
-rw-r--r--editors/emacs/Makefile18
-rw-r--r--editors/emacs/pkg/PFRAG.motif2
-rw-r--r--editors/emacs/pkg/PFRAG.no-no_x1116
-rw-r--r--editors/emacs/pkg/PLIST2
4 files changed, 15 insertions, 23 deletions
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
index 48d1fc2..2d62d56 100644
--- a/editors/emacs/Makefile
+++ b/editors/emacs/Makefile
@@ -19,7 +19,7 @@ EXTRACT_SUFX= .tar.xz
19 19
20DEBUG_PACKAGES = ${BUILD_PACKAGES} 20DEBUG_PACKAGES = ${BUILD_PACKAGES}
21 21
22FLAVORS= athena no_x11 22FLAVORS= athena motif no_x11
23FLAVOR?= athena 23FLAVOR?= athena
24 24
25GCCARCH= ${MACHINE_ARCH}-unknown-openbsd 25GCCARCH= ${MACHINE_ARCH}-unknown-openbsd
@@ -52,9 +52,7 @@ CONFIGURE_ARGS+= --without-x
52LIB_DEPENDS+= graphics/jpeg \ 52LIB_DEPENDS+= graphics/jpeg \
53 graphics/png \ 53 graphics/png \
54 devel/gmp 54 devel/gmp
55. if ${FLAVOR} == "athena"
56CONFIGURE_ARGS+= --with-x \ 55CONFIGURE_ARGS+= --with-x \
57 --with-x-toolkit=athena \
58 --with-xpm \ 56 --with-xpm \
59 --with-jpeg \ 57 --with-jpeg \
60 --with-png \ 58 --with-png \
@@ -62,10 +60,20 @@ CONFIGURE_ARGS+= --with-x \
62 --without-harfbuzz \ 60 --without-harfbuzz \
63 --without-otf \ 61 --without-otf \
64 --without-m17n-flt 62 --without-m17n-flt
65LIB_DEPENDS+= x11/Xaw3d 63
66WANTLIB += ICE SM X11 X11-xcb Xaw3d Xext Xfixes Xinerama Xmu 64
65WANTLIB += ICE SM X11 X11-xcb Xext Xfixes Xinerama Xmu
67WANTLIB += Xpm Xrandr Xrender Xt xcb fontconfig freetype 66WANTLIB += Xpm Xrandr Xrender Xt xcb fontconfig freetype
68WANTLIB += jpeg png gmp 67WANTLIB += jpeg png gmp
68
69. if ${FLAVOR} == "athena"
70CONFIGURE_ARGS+= --with-x-toolkit=athena
71LIB_DEPENDS+= x11/Xaw3d
72WANTLIB += Xaw3d
73. elif ${FLAVOR} == "motif"
74CONFIGURE_ARGS+= --with-x-toolkit=motif
75LIB_DEPENDS+= x11/motif
76WANTLIB += Xm
69. else 77. else
70ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}" 78ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
71. endif 79. endif
diff --git a/editors/emacs/pkg/PFRAG.motif b/editors/emacs/pkg/PFRAG.motif
new file mode 100644
index 0000000..26ff4d2
--- /dev/null
+++ b/editors/emacs/pkg/PFRAG.motif
@@ -0,0 +1,2 @@
1@pkgpath editors/emacs22,-main,
2@pkgpath editors/emacs23,-main,motif
diff --git a/editors/emacs/pkg/PFRAG.no-no_x11 b/editors/emacs/pkg/PFRAG.no-no_x11
deleted file mode 100644
index 54337e4..0000000
--- a/editors/emacs/pkg/PFRAG.no-no_x11
+++ /dev/null
@@ -1,16 +0,0 @@
1@pkgpath editors/emacs21,-main
2share/applications/emacs-mail.desktop
3share/applications/emacs.desktop
4share/applications/emacsclient-mail.desktop
5share/applications/emacsclient.desktop
6share/icons/hicolor/128x128/apps/emacs.png
7share/icons/hicolor/16x16/apps/emacs.png
8share/icons/hicolor/24x24/apps/emacs.png
9share/icons/hicolor/32x32/apps/emacs.png
10share/icons/hicolor/48x48/apps/emacs.png
11share/icons/hicolor/scalable/apps/emacs.ico
12share/icons/hicolor/scalable/apps/emacs.svg
13share/icons/hicolor/scalable/mimetypes/emacs-document.svg
14share/icons/hicolor/scalable/mimetypes/emacs-document23.svg
15@tag update-desktop-database
16@tag gtk-update-icon-cache %D/share/icons/hicolor
diff --git a/editors/emacs/pkg/PLIST b/editors/emacs/pkg/PLIST
index 72875cc..54a0fb2 100644
--- a/editors/emacs/pkg/PLIST
+++ b/editors/emacs/pkg/PLIST
@@ -4196,5 +4196,3 @@ share/icons/hicolor/scalable/mimetypes/emacs-document.svg
4196share/icons/hicolor/scalable/mimetypes/emacs-document23.svg 4196share/icons/hicolor/scalable/mimetypes/emacs-document23.svg
4197share/metainfo/ 4197share/metainfo/
4198share/metainfo/emacs.metainfo.xml 4198share/metainfo/emacs.metainfo.xml
4199@tag gtk-update-icon-cache %D/share/icons/hicolor
4200@tag update-desktop-database