summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/Makefile1
-rw-r--r--x11/xmenu/Makefile41
-rw-r--r--x11/xmenu/distinfo3
-rw-r--r--x11/xmenu/files/patch-Makefile15
-rw-r--r--x11/xmenu/pkg-descr5
5 files changed, 65 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 5f11c940c4dc..c0d4e2c6b69d 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -453,6 +453,7 @@
SUBDIR += xman
SUBDIR += xmangekyou
SUBDIR += xmascot
+ SUBDIR += xmenu
SUBDIR += xmessage
SUBDIR += xmh
SUBDIR += xmodmap
diff --git a/x11/xmenu/Makefile b/x11/xmenu/Makefile
new file mode 100644
index 000000000000..5f303eff0789
--- /dev/null
+++ b/x11/xmenu/Makefile
@@ -0,0 +1,41 @@
+# $FreeBSD$
+
+PORTNAME= xmenu
+DISTVERSIONPREFIX= v
+DISTVERSION= 4.3.1
+CATEGORIES= x11
+
+MAINTAINER= vulcan@wired.sh
+COMMENT= X11 menu utility
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/README.md
+
+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libImlib2.so:graphics/imlib2
+
+USES= compiler:c11 xorg
+USE_GITHUB= yes
+GH_ACCOUNT= phillbush
+USE_XORG= x11 xft xinerama
+
+MAKE_ARGS= FREETYPEINC="${LOCALBASE}/include/freetype2" \
+ MANPREFIX="${PREFIX}/man" \
+ PREFIX="${PREFIX}"
+
+PLIST_FILES= bin/${PORTNAME} \
+ man/man1/${PORTNAME}.1.gz
+PORTDOCS= README.md
+PORTEXAMPLES= icons/* xmenu.sh
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/x11/xmenu/distinfo b/x11/xmenu/distinfo
new file mode 100644
index 000000000000..1dfba8bd7be8
--- /dev/null
+++ b/x11/xmenu/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1598877606
+SHA256 (phillbush-xmenu-v4.3.1_GH0.tar.gz) = c0e1e15ed3cd88ea9f4ed1a04664a7b8c743b012749578cfd2606980a7ee972c
+SIZE (phillbush-xmenu-v4.3.1_GH0.tar.gz) = 137703
diff --git a/x11/xmenu/files/patch-Makefile b/x11/xmenu/files/patch-Makefile
new file mode 100644
index 000000000000..d6f55030d4b4
--- /dev/null
+++ b/x11/xmenu/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig 2020-07-23 20:39:33 UTC
++++ Makefile
+@@ -17,8 +17,10 @@ clean:
+ -rm ${OBJS} ${PROG}
+
+ install: all
+- install -D -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/${PROG}
+- install -D -m 644 ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1/${PROG}.1
++ mkdir -p ${DESTDIR}${MANPREFIX}/man1
++ mkdir -p ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_PROGRAM} ${PROG} ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_MAN} ${PROG}.1 ${DESTDIR}${MANPREFIX}/man1
+
+ uninstall:
+ rm -f ${DESTDIR}${PREFIX}/bin/${PROG}
diff --git a/x11/xmenu/pkg-descr b/x11/xmenu/pkg-descr
new file mode 100644
index 000000000000..a1032b9cc045
--- /dev/null
+++ b/x11/xmenu/pkg-descr
@@ -0,0 +1,5 @@
+XMenu is a menu utility for X. XMenu receives a menu specification in stdin,
+shows a menu for the user to select one of the options, and outputs the option
+selected to stdout. XMenu can be controlled both via mouse and via keyboard.
+
+WWW: https://github.com/phillbush/xmenu