aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pdmenu
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-08-03 06:34:23 +0800
committermiwi <miwi@FreeBSD.org>2008-08-03 06:34:23 +0800
commitd991b857f151264f0ec4f5c3f9abcec897a68d9f (patch)
treec5f68f79c9a4d024f95f6047c20e46c177226977 /misc/pdmenu
parentb6d02b38091a1ae4a1e591542902775d2924f8b8 (diff)
downloadfreebsd-ports-gnome-d991b857f151264f0ec4f5c3f9abcec897a68d9f.tar.gz
freebsd-ports-gnome-d991b857f151264f0ec4f5c3f9abcec897a68d9f.tar.zst
freebsd-ports-gnome-d991b857f151264f0ec4f5c3f9abcec897a68d9f.zip
- Update to 1.2.95
- Update WWW PR: 126175 Submitted by: Ports Fury
Diffstat (limited to 'misc/pdmenu')
-rw-r--r--misc/pdmenu/Makefile15
-rw-r--r--misc/pdmenu/distinfo6
-rw-r--r--misc/pdmenu/files/patch-src__pdmenu.c13
-rw-r--r--misc/pdmenu/pkg-descr2
4 files changed, 28 insertions, 8 deletions
diff --git a/misc/pdmenu/Makefile b/misc/pdmenu/Makefile
index 63755c54ef50..253a47c8d742 100644
--- a/misc/pdmenu/Makefile
+++ b/misc/pdmenu/Makefile
@@ -5,8 +5,7 @@
# $FreeBSD$
PORTNAME= pdmenu
-PORTVERSION= 1.2.93
-PORTREVISION= 1
+PORTVERSION= 1.2.95
CATEGORIES= misc
MASTER_SITES= DEBIAN
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -14,7 +13,7 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple console menu program
-LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
+OPTIONS= SLANG2 "Build using libslang-2.x" off
WRKSRC= ${WRKDIR}/${PORTNAME}
@@ -36,6 +35,14 @@ PLIST_FILES= bin/pdmenu \
%%DATADIR%%/showdir.pl
PLIST_DIRS= %%DATADIR%%
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SLANG2)
+LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
+.else
+LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pdmenu ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/examples/pdmenurc ${PREFIX}/etc
@@ -52,4 +59,4 @@ do-install:
post-install:
@${STRIP_CMD} ${PREFIX}/bin/pdmenu
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/misc/pdmenu/distinfo b/misc/pdmenu/distinfo
index daa76d1c18d7..7bd5c2c7e815 100644
--- a/misc/pdmenu/distinfo
+++ b/misc/pdmenu/distinfo
@@ -1,3 +1,3 @@
-MD5 (pdmenu_1.2.93.tar.gz) = 5177eaafc65e27abbdfa45c4d8f5c850
-SHA256 (pdmenu_1.2.93.tar.gz) = cac07ce100dbfec48e882ffb607f798d0163a1f7d80063940742a72d53e1db52
-SIZE (pdmenu_1.2.93.tar.gz) = 152256
+MD5 (pdmenu_1.2.95.tar.gz) = be9d200f596ded2640cdd0b55125cbc8
+SHA256 (pdmenu_1.2.95.tar.gz) = bb1f1229e0e809050d4d4bf682e353cf0ad17b9be787468aaaf2b9feceda683d
+SIZE (pdmenu_1.2.95.tar.gz) = 154480
diff --git a/misc/pdmenu/files/patch-src__pdmenu.c b/misc/pdmenu/files/patch-src__pdmenu.c
new file mode 100644
index 000000000000..fbef741e22d9
--- /dev/null
+++ b/misc/pdmenu/files/patch-src__pdmenu.c
@@ -0,0 +1,13 @@
+--- src/pdmenu.c.orig 2008-07-23 01:56:11.000000000 +0900
++++ src/pdmenu.c 2008-07-30 01:31:58.000000000 +0900
+@@ -230,8 +230,10 @@
+ strcpy(FG[8],UNSEL_MENU_FG_DEFAULT);
+ strcpy(BG[8],UNSEL_MENU_BG_DEFAULT);
+
++#if (defined(SLANG_VERSION) && (SLANG_VERSION >= 20000))
+ /* Enable utf-8 in slang. */
+ SLutf8_enable(-1);
++#endif
+
+ /* Parse parameters and load pdmenurc file. */
+ m=GetConfig(argc,argv);
diff --git a/misc/pdmenu/pkg-descr b/misc/pdmenu/pkg-descr
index b9475bbe96ab..fd34256e9f2b 100644
--- a/misc/pdmenu/pkg-descr
+++ b/misc/pdmenu/pkg-descr
@@ -2,4 +2,4 @@ Pdmenu is a menuing system for Unix. It is designed to be easy to
use, and is suitable for a login shell for inexperienced users, or
it can just be ran at the command line as a handy menu.
-WWW: http://www.kitenet.net/programs/pdmenu/
+WWW: http://kitenet.net/~joey/code/pdmenu/