commit 1bace0ee6ee90e32846c27ca8f293d3b621588cd
parent 0503edba1e42c9c868a23267b3c4f9c016bfe35e
Author: Shokara Kou <kou@13f0.net>
Date: Fri, 9 Dec 2022 18:35:22 -0500
add motif flavor to emacs
Diffstat:
4 files changed, 15 insertions(+), 23 deletions(-)
diff --git a/editors/emacs/Makefile b/editors/emacs/Makefile
@@ -19,7 +19,7 @@ EXTRACT_SUFX= .tar.xz
DEBUG_PACKAGES = ${BUILD_PACKAGES}
-FLAVORS= athena no_x11
+FLAVORS= athena motif no_x11
FLAVOR?= athena
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd
@@ -52,9 +52,7 @@ CONFIGURE_ARGS+= --without-x
LIB_DEPENDS+= graphics/jpeg \
graphics/png \
devel/gmp
-. if ${FLAVOR} == "athena"
CONFIGURE_ARGS+= --with-x \
- --with-x-toolkit=athena \
--with-xpm \
--with-jpeg \
--with-png \
@@ -62,10 +60,20 @@ CONFIGURE_ARGS+= --with-x \
--without-harfbuzz \
--without-otf \
--without-m17n-flt
-LIB_DEPENDS+= x11/Xaw3d
-WANTLIB += ICE SM X11 X11-xcb Xaw3d Xext Xfixes Xinerama Xmu
+
+
+WANTLIB += ICE SM X11 X11-xcb Xext Xfixes Xinerama Xmu
WANTLIB += Xpm Xrandr Xrender Xt xcb fontconfig freetype
WANTLIB += jpeg png gmp
+
+. if ${FLAVOR} == "athena"
+CONFIGURE_ARGS+= --with-x-toolkit=athena
+LIB_DEPENDS+= x11/Xaw3d
+WANTLIB += Xaw3d
+. elif ${FLAVOR} == "motif"
+CONFIGURE_ARGS+= --with-x-toolkit=motif
+LIB_DEPENDS+= x11/motif
+WANTLIB += Xm
. else
ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
. endif
diff --git a/editors/emacs/pkg/PFRAG.motif b/editors/emacs/pkg/PFRAG.motif
@@ -0,0 +1,2 @@
+@pkgpath editors/emacs22,-main,
+@pkgpath editors/emacs23,-main,motif
diff --git a/editors/emacs/pkg/PFRAG.no-no_x11 b/editors/emacs/pkg/PFRAG.no-no_x11
@@ -1,16 +0,0 @@
-@pkgpath editors/emacs21,-main
-share/applications/emacs-mail.desktop
-share/applications/emacs.desktop
-share/applications/emacsclient-mail.desktop
-share/applications/emacsclient.desktop
-share/icons/hicolor/128x128/apps/emacs.png
-share/icons/hicolor/16x16/apps/emacs.png
-share/icons/hicolor/24x24/apps/emacs.png
-share/icons/hicolor/32x32/apps/emacs.png
-share/icons/hicolor/48x48/apps/emacs.png
-share/icons/hicolor/scalable/apps/emacs.ico
-share/icons/hicolor/scalable/apps/emacs.svg
-share/icons/hicolor/scalable/mimetypes/emacs-document.svg
-share/icons/hicolor/scalable/mimetypes/emacs-document23.svg
-@tag update-desktop-database
-@tag gtk-update-icon-cache %D/share/icons/hicolor
diff --git a/editors/emacs/pkg/PLIST b/editors/emacs/pkg/PLIST
@@ -4196,5 +4196,3 @@ share/icons/hicolor/scalable/mimetypes/emacs-document.svg
share/icons/hicolor/scalable/mimetypes/emacs-document23.svg
share/metainfo/
share/metainfo/emacs.metainfo.xml
-@tag gtk-update-icon-cache %D/share/icons/hicolor
-@tag update-desktop-database