summaryrefslogtreecommitdiff
path: root/japanese/kon2-16dot/files/patch-src_Makefile.FreeBSD
blob: 951777eb3315ebe9b40ed9b16f652cdb9c000824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- src/Makefile.FreeBSD.orig	1997-01-30 10:29:25.000000000 +0900
+++ src/Makefile.FreeBSD	2014-01-31 10:53:18.000000000 +0900
@@ -1,12 +1,17 @@
 # FreeBSD makefile for kon
 # Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
 
+.include <bsd.own.mk>
+
 PROG=	kon
-BINOWN=		root
-BINMODE=	4555
-SRCS=	vt.c sock.c fnld.c vc.c mouse.c term.c main.c utmp.c errors.c child.c
+SRCS=	vt.c sock.c fnld.c vc.c mouse.c term.c main.c errors.c child.c
+.if exists(${INCLUDEDIR}/utmpx.h)
+SRCS+=	utmpx.c
+.else
+SRCS+=	utmp.c
+.endif
 LIBS+=	-L${.CURDIR}/display -L${.CURDIR}/../lib -ldisplay -lgon
-NOMAN=	YES
+MK_MAN=	no
 CFLAGS+=	-I${.CURDIR}/../include
 CLEANFILES=	Makefile
 
@@ -28,4 +33,7 @@
 .include "${.CURDIR}/../.config"
 .endif
 
+install: ${PROG}
+	/usr/bin/install -s ${PROG} ${BINDIR}
+
 .include <bsd.prog.mk>