1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/japanese/xklock/files/patch-01
David E. O'Brien 499fa575e7 X key lock in the Japanese language.
PR:		ports/4061
Submitted by:	NAKAMURA Kazushi nkazushi@highway.or.jp
1998-02-28 23:29:19 +00:00

43 lines
1.0 KiB
Plaintext

--- Makefile- Sun Apr 20 21:20:12 1997
+++ Makefile Mon Apr 21 18:29:49 1997
@@ -4,9 +4,9 @@
#
CC = cc
-C_FLAG = -fwritable-strings -DSHADOW -O2 #-DDEBUG -g
+C_FLAG = -fwritable-strings -O2 -m486 -I${PREFIX}/include #-DDEBUG -g
RM_FLAG = -f
-LIB = -lX11 -lXmu -lshadow -lXpm
+LIB = -L${PREFIX}/lib -lX11 -lXmu -lXpm -lcrypt
EXE = xklock
OBJ1 = xklock.o
OBJ2 = jnames.o
@@ -18,14 +18,14 @@
DOC = xklock.doc readme.doc
TAR = xklock.tar
MAKE = Makefile Makefile.BE
-BIN_DIR = /usr/X386/bin
+BIN_DIR = ${PREFIX}/bin
all:$(EXE)
$(EXE):$(OBJ)
$(CC) $(C_FLAG) -o $@ $(OBJ) $(LIB)
-$(OBJ1):$(SRC1) $(INC)
+$(OBJ1):$(SRC1)
$(CC) $(C_FLAG) -c $(SRC1)
$(OBJ2):$(SRC2)
--- xklock.c- Mon Apr 21 20:25:29 1997
+++ xklock.c Mon Apr 21 20:23:36 1997
@@ -74,7 +74,7 @@
#ifdef SHADOW
static struct spwd *user_spwd;
#endif
-static char root_password[32], user_password[32];
+static char root_password[_PASSWORD_LEN], user_password[_PASSWORD_LEN];
static char *option_name[] = {
"-d", /* 0 */
"-foreground", /* 1 */