View | Details | Raw Unified | Return to bug 53364
Collapse All | Expand All

(-)pdmenu/Makefile (-4 / +3 lines)
Lines 5-16 Link Here
5
# $FreeBSD: ports/misc/pdmenu/Makefile,v 1.13 2003/03/07 06:07:14 ade Exp $
5
# $FreeBSD: ports/misc/pdmenu/Makefile,v 1.13 2003/03/07 06:07:14 ade Exp $
6
6
7
PORTNAME=	pdmenu
7
PORTNAME=	pdmenu
8
PORTVERSION=	1.2.65
8
PORTVERSION=	1.2.81
9
CATEGORIES=	misc
9
CATEGORIES=	misc
10
# http://kitenet.net is unreachable for a long time now, asked the
10
MASTER_SITES=	http://kitenet.net/programs/pdmenu/
11
# author and maintaier for a known replacement - edwin 20021227
12
MASTER_SITES=	http://kitenet.net/programs/code/pdmenu/
13
DISTNAME=	pdmenu_${PORTVERSION}
11
DISTNAME=	pdmenu_${PORTVERSION}
12
BROKEN=		"can't find required slang library or library is obsolete"
14
13
15
MAINTAINER=	nbm@FreeBSD.org
14
MAINTAINER=	nbm@FreeBSD.org
16
COMMENT=	A simple console menu program
15
COMMENT=	A simple console menu program
(-)pdmenu/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (pdmenu_1.2.65.tar.gz) = a48c6bd9de312eb91a4a6715c100e71e
1
MD5 (pdmenu_1.2.81.tar.gz) = ca6a00583508358dec358f2561430298
(-)pdmenu/files/patch-aa (-58 lines)
Lines 1-58 Link Here
1
--- configure.in.orig	Thu Jan 14 17:49:38 1999
2
+++ configure.in	Thu Jan 14 17:50:06 1999
3
@@ -36,6 +36,27 @@
4
 rmdir ./test/test2 2>/dev/null
5
 rmdir ./test 2>/dev/null
6
 
7
+dnl If we cannot find terminfo, link with termcap.
8
+Terminfo_Dirs="/usr/lib/terminfo \
9
+	/usr/share/lib/terminfo \
10
+	/usr/local/lib/terminfo"
11
+TERMCAP=yes
12
+AC_MSG_CHECKING(for terminfo)
13
+for terminfo_dir in $Terminfo_Dirs
14
+do
15
+	if test -d $terminfo_dir; then
16
+		AC_MSG_RESULT(found)
17
+		TERMCAP=""
18
+		break
19
+	fi
20
+done
21
+if test "$TERMCAP"; then
22
+	AC_MSG_RESULT(not found)
23
+	AC_CHECK_LIB(termcap,tgetent)
24
+	# Note that if this fails, we continue and make probably dies with
25
+	# an error. Unless terminfo is hiding somewhere else..
26
+fi
27
+
28
 dnl Let the user specify an alternate location for the libs.
29
 dnl I have to add this to CFLAGS, instead of to LIBS, to placate 
30
 dnl some compiler that wanted -L before -l .
31
@@ -96,27 +117,6 @@
32
 	fi
33
 else
34
 	AC_MSG_WARN(pdmenu will be built without GPM mouse support.)
35
-fi
36
-
37
-dnl If we cannot find terminfo, link with termcap.
38
-Terminfo_Dirs="/usr/lib/terminfo \
39
-	/usr/share/lib/terminfo \
40
-	/usr/local/lib/terminfo"
41
-TERMCAP=yes
42
-AC_MSG_CHECKING(for terminfo)
43
-for terminfo_dir in $Terminfo_Dirs
44
-do
45
-	if test -d $terminfo_dir; then
46
-		AC_MSG_RESULT(found)
47
-		TERMCAP=""
48
-		break
49
-	fi
50
-done
51
-if test "$TERMCAP"; then
52
-	AC_MSG_RESULT(not found)
53
-	AC_CHECK_LIB(termcap,tgetent)
54
-	# Note that if this fails, we continue and make probably dies with
55
-	# an error. Unless terminfo is hiding somewhere else..
56
 fi
57
 
58
 AC_CHECK_PROG(DATE_PROG,date,yes,no)
(-)pdmenu/files/patch-ab (-150 lines)
Lines 1-150 Link Here
1
--- configure.orig	Tue Sep  7 01:19:45 1999
2
+++ configure	Fri Sep 10 13:26:38 1999
3
@@ -890,6 +890,73 @@
4
 rmdir ./test/test2 2>/dev/null
5
 rmdir ./test 2>/dev/null
6
 
7
+Terminfo_Dirs="/usr/lib/terminfo \
8
+	/usr/share/lib/terminfo \
9
+	/usr/local/lib/terminfo"
10
+TERMCAP=yes
11
+echo $ac_n "checking for terminfo""... $ac_c" 1>&6
12
+echo "configure:840: checking for terminfo" >&5
13
+for terminfo_dir in $Terminfo_Dirs
14
+do
15
+	if test -d $terminfo_dir; then
16
+		echo "$ac_t""found" 1>&6
17
+		TERMCAP=""
18
+		break
19
+	fi
20
+done
21
+if test "$TERMCAP"; then
22
+	echo "$ac_t""not found" 1>&6
23
+	echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
24
+echo "configure:852: checking for tgetent in -ltermcap" >&5
25
+ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
26
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
27
+  echo $ac_n "(cached) $ac_c" 1>&6
28
+else
29
+  ac_save_LIBS="$LIBS"
30
+LIBS="-ltermcap  $LIBS"
31
+cat > conftest.$ac_ext <<EOF
32
+#line 860 "configure"
33
+#include "confdefs.h"
34
+/* Override any gcc2 internal prototype to avoid an error.  */
35
+/* We use char because int might match the return type of a gcc2
36
+    builtin and then its argument prototype would still apply.  */
37
+char tgetent();
38
+
39
+int main() {
40
+tgetent()
41
+; return 0; }
42
+EOF
43
+if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
44
+  rm -rf conftest*
45
+  eval "ac_cv_lib_$ac_lib_var=yes"
46
+else
47
+  echo "configure: failed program was:" >&5
48
+  cat conftest.$ac_ext >&5
49
+  rm -rf conftest*
50
+  eval "ac_cv_lib_$ac_lib_var=no"
51
+fi
52
+rm -f conftest*
53
+LIBS="$ac_save_LIBS"
54
+
55
+fi
56
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
57
+  echo "$ac_t""yes" 1>&6
58
+    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
59
+    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
60
+  cat >> confdefs.h <<EOF
61
+#define $ac_tr_lib 1
62
+EOF
63
+
64
+  LIBS="-ltermcap $LIBS"
65
+
66
+else
67
+  echo "$ac_t""no" 1>&6
68
+fi
69
+
70
+	# Note that if this fails, we continue and make probably dies with
71
+	# an error. Unless terminfo is hiding somewhere else..
72
+fi
73
+
74
 if test "$SLANG_LIB_LOC" != "" ; then 
75
 	CFLAGS="-L$SLANG_LIB_LOC $CFLAGS"
76
 fi
77
@@ -1756,73 +1823,6 @@
78
 	fi
79
 else
80
 	echo "configure: warning: pdmenu will be built without GPM mouse support." 1>&2
81
-fi
82
-
83
-Terminfo_Dirs="/usr/lib/terminfo \
84
-	/usr/share/lib/terminfo \
85
-	/usr/local/lib/terminfo"
86
-TERMCAP=yes
87
-echo $ac_n "checking for terminfo""... $ac_c" 1>&6
88
-echo "configure:1767: checking for terminfo" >&5
89
-for terminfo_dir in $Terminfo_Dirs
90
-do
91
-	if test -d $terminfo_dir; then
92
-		echo "$ac_t""found" 1>&6
93
-		TERMCAP=""
94
-		break
95
-	fi
96
-done
97
-if test "$TERMCAP"; then
98
-	echo "$ac_t""not found" 1>&6
99
-	echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
100
-echo "configure:1779: checking for tgetent in -ltermcap" >&5
101
-ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
102
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
103
-  echo $ac_n "(cached) $ac_c" 1>&6
104
-else
105
-  ac_save_LIBS="$LIBS"
106
-LIBS="-ltermcap  $LIBS"
107
-cat > conftest.$ac_ext <<EOF
108
-#line 1787 "configure"
109
-#include "confdefs.h"
110
-/* Override any gcc2 internal prototype to avoid an error.  */
111
-/* We use char because int might match the return type of a gcc2
112
-    builtin and then its argument prototype would still apply.  */
113
-char tgetent();
114
-
115
-int main() {
116
-tgetent()
117
-; return 0; }
118
-EOF
119
-if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
120
-  rm -rf conftest*
121
-  eval "ac_cv_lib_$ac_lib_var=yes"
122
-else
123
-  echo "configure: failed program was:" >&5
124
-  cat conftest.$ac_ext >&5
125
-  rm -rf conftest*
126
-  eval "ac_cv_lib_$ac_lib_var=no"
127
-fi
128
-rm -f conftest*
129
-LIBS="$ac_save_LIBS"
130
-
131
-fi
132
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
133
-  echo "$ac_t""yes" 1>&6
134
-    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
135
-    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
136
-  cat >> confdefs.h <<EOF
137
-#define $ac_tr_lib 1
138
-EOF
139
-
140
-  LIBS="-ltermcap $LIBS"
141
-
142
-else
143
-  echo "$ac_t""no" 1>&6
144
-fi
145
-
146
-	# Note that if this fails, we continue and make probably dies with
147
-	# an error. Unless terminfo is hiding somewhere else..
148
 fi
149
 
150
 # Extract the first word of "date", so it can be a program name with args.
(-)pdmenu/files/patch-ac (-11 lines)
Lines 1-11 Link Here
1
--- ./autoconf/makeinfo.in.orig	Sun Oct 20 13:39:21 2002
2
+++ ./autoconf/makeinfo.in	Sun Oct 20 13:39:28 2002
3
@@ -16,7 +16,7 @@
4
 VER		= @VER@
5
 DEFINES		= -DETCDIR=\"${SYSCONFDIR}/\" -DVER=\"${VER}\" @DEFS@ \
6
 		  $(PROFILE) -D__USE_FIXED_PROTOTYPES__ -D_GNU_SOURCE
7
-CFLAGS_FOR_GCC	= -Wall -fstrict-prototypes
8
+CFLAGS_FOR_GCC	= -Wall
9
 CFLAGS		= $(DEFINES) @gcc_cflags@ @CFLAGS@
10
 LIBS		= @LIBS@ $(EFENCE)
11
 SRCDIR		= src

Return to bug 53364