summaryrefslogtreecommitdiff
path: root/sysutils/gkrellm/patches/patch-aa
blob: d28d6482a6cab3403471e3db7cc47b95368a3af0 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
$NetBSD: patch-aa,v 1.7 2002/06/07 17:15:57 wiz Exp $

--- Makefile.top_enable_nls.orig	Wed Dec  5 08:41:15 2001
+++ Makefile.top_enable_nls
@@ -31,8 +31,11 @@
 # Default
 #--------
 GTK_CONFIG = gtk-config
+IMLIB_CONFIG = imlib-config
 EXTRAOBJS = md5c.o
 BINMODE = 755
+BINGRP = wheel
+PREFIX ?= /usr/local
 
 # FreeBSD 2.X
 #------------
@@ -53,12 +56,17 @@
 
 # NetBSD or OpenBSD
 #------------------
-#GTK_CONFIG= gtk-config
-#GTOP_LIBS=
-#PTHREAD_INC=-I/usr/local/include
-#SYS_LIBS=-lkvm
-#EXTRAOBJS =
-#BINMODE=2755
+GTK_CONFIG ?= gtk-config
+IMLIB_CONFIG ?= imlib-config
+GTOP_INCLUDE =
+GTOP_LIBS =
+PTHREAD_INC ?= -I/usr/pkg/include
+EXTRAOBJS =
+LINK_FLAGS = -Wl,-E
+LOCALEDIR = ${PREFIX}/share/locale
+MANDIR = ${PREFIX}/man/man1
+BINMODE = 2755
+BINGRP = kmem
 
 # Solaris 2.x
 #------------
@@ -75,21 +83,23 @@
 # used if you "make gnome-gtop" or "make gtop".
 #-----------------------------------
 GTOP_PREFIX = /usr
-GTOP_INCLUDE = -I$(GTOP_PREFIX)/include
-GTOP_LIBS = -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps -lXau
+GTOP_INCLUDE ?= -I$(GTOP_PREFIX)/include
+GTOP_LIBS ?= -L$(GTOP_PREFIX)/lib -lgtop -lgtop_common -lgtop_sysdeps -lXau
 
 
-INSTALLDIR=/usr/local/bin
-MANDIR=/usr/local/share/man/man1
+PREFIX ?= /usr/local
+INSTALLDIR ?= ${PREFIX}/bin
+MANDIR ?= ${PREFIX}/share/man/man1
 MANMODE = 644
 MANDIRMODE = 755
-INCLUDEDIR=/usr/local/include
+INCLUDEDIR ?= ${PREFIX}/include
 INCLUDEMODE = 644
 INCLUDEDIRMODE = 755
 
 LOCALEDIR ?= /usr/share/locale
 
 export GTK_CONFIG GTOP_INCLUDE GTOP_LIBS SYS_LIBS EXTRAOBJS BINMODE
+export BINGRP IMLIB_CONFIG LINK_FLAGS PREFIX
 export INSTALLDIR INCLUDEDIR INCLUDEMODE INCLUDEDIRMODE LOCALEDIR
 export MANDIR MANDIRMODE MANMODE
 
@@ -132,9 +142,7 @@
 
 netbsd:
 	(cd po && ${MAKE} all)
-	(cd src && ${MAKE} GTK_CONFIG=gtk-config GTOP_LIBS= GTOP_INCLUDE= \
-		PTHREAD_INC=-I/usr/local/include EXTRAOBJS= \
-		SYS_LIBS="-lkvm" gkrellm )
+	(cd src && ${MAKE} SYS_LIBS="-lkvm" gkrellm )
 
 openbsd:
 	(cd po && ${MAKE} all)