dmenu-git: Import dmenu-4.8 as wip/dmenu-git
authorLeonardo Taccari <leot@NetBSD.org>
Sat, 1 Dec 2018 11:31:51 +0000 (12:31 +0100)
committerLeonardo Taccari <leot@NetBSD.org>
Sat, 1 Dec 2018 11:31:51 +0000 (12:31 +0100)
dmenu is a dynamic menu for X, originally designed for dwm (wm/dwm).
It manages large numbers of user-defined menu items efficiently.

Based on x11/dmenu

Makefile
dmenu-git/DESCR [new file with mode: 0644]
dmenu-git/Makefile [new file with mode: 0644]
dmenu-git/PLIST [new file with mode: 0644]
dmenu-git/options.mk [new file with mode: 0644]

index 587958f4336bdb191c367e1d09611b174e82a9c7..cfa80c45cc7dd7677345a4ba441f0272befc53e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -602,6 +602,7 @@ SUBDIR+=    dma
 SUBDIR+=       dmapd
 SUBDIR+=       dmd
 SUBDIR+=       dmd-bin
+SUBDIR+=       dmenu-git
 SUBDIR+=       dmt-ux
 SUBDIR+=       dnrd
 SUBDIR+=       dns2tcp
diff --git a/dmenu-git/DESCR b/dmenu-git/DESCR
new file mode 100644 (file)
index 0000000..af8ec6d
--- /dev/null
@@ -0,0 +1,2 @@
+dmenu is a dynamic menu for X, originally designed for dwm (wm/dwm).
+It manages large numbers of user-defined menu items efficiently.
diff --git a/dmenu-git/Makefile b/dmenu-git/Makefile
new file mode 100644 (file)
index 0000000..f2db843
--- /dev/null
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.14 2018/03/15 10:58:24 leot Exp $
+#
+
+DISTNAME=      dmenu-4.8
+CATEGORIES=    x11
+MASTER_SITES=  http://dl.suckless.org/tools/
+
+MAINTAINER=    leot@NetBSD.org
+HOMEPAGE=      http://tools.suckless.org/dmenu
+COMMENT=       Dynamic menu for X
+LICENSE=       mit
+
+GIT_REPO=      http://git.suckless.org/dmenu
+
+MAKE_JOBS_SAFE=        no
+
+USE_LANGUAGES= c99
+
+# Adjust config.mk
+SUBST_CLASSES+=                makefile
+SUBST_STAGE.makefile=  pre-patch
+SUBST_MESSAGE.makefile=        Fixing config.mk
+SUBST_FILES.makefile=  config.mk
+SUBST_SED.makefile+=   -e 's,/usr/local,${PREFIX},g'
+SUBST_SED.makefile+=   -e 's,share/man,${PKGMANDIR},g'
+SUBST_SED.makefile+=   -e 's,/usr/X11R6,${X11BASE},'
+SUBST_SED.makefile+=   -e 's,^CFLAGS *= ,CFLAGS += ,'
+SUBST_SED.makefile+=   -e 's,^LDFLAGS *= ,LDFLAGS += ,'
+SUBST_SED.makefile+=   -e 's/-I$${FREETYPEINC}/$${FREETYPEINC}/'
+SUBST_SED.makefile+=   -e 's,^FREETYPEINC *=.*,FREETYPEINC != freetype-config --cflags,'
+SUBST_SED.makefile+=   -e 's/cc/${CC:Q}/'
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+.include "options.mk"
+
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXft/buildlink3.mk"
+.include "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/dmenu-git/PLIST b/dmenu-git/PLIST
new file mode 100644 (file)
index 0000000..931a1ad
--- /dev/null
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.6 2015/11/11 16:13:12 leot Exp $
+bin/dmenu
+bin/dmenu_path
+bin/dmenu_run
+bin/stest
+man/man1/dmenu.1
+man/man1/stest.1
diff --git a/dmenu-git/options.mk b/dmenu-git/options.mk
new file mode 100644 (file)
index 0000000..010af4f
--- /dev/null
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.3 2015/11/11 16:13:12 leot Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.dmenu
+PKG_SUPPORTED_OPTIONS= xinerama
+PKG_SUGGESTED_OPTIONS= xinerama
+
+.include "../../mk/bsd.options.mk"
+
+#
+# Xinerama support
+#
+# If we don't want the Xinerama support we delete XINERAMALIBS and
+# XINERAMAFLAGS lines, otherwise the Xinerama support is the default.
+#
+.if !empty(PKG_OPTIONS:Mxinerama)
+.  include "../../x11/libXinerama/buildlink3.mk"
+.else
+SUBST_CLASSES+=                options
+SUBST_STAGE.options=   pre-patch
+SUBST_MESSAGE.options= Toggle the Xinerama support
+SUBST_FILES.options=   config.mk
+SUBST_SED.options+=    -e '/^XINERAMA/d'
+.endif