beb48aec38
New port for gkrellmwireless2 similar to gkrellmwireless. Perhaps Jim Mock should be the maintainer for this port. PR: ports/50072 Submitted by: Sin Key Teck <ktsin@acm.org>
42 lines
940 B
Text
42 lines
940 B
Text
--- Makefile.orig Fri Dec 6 23:01:13 2002
|
|
+++ Makefile Sun Mar 16 15:12:51 2003
|
|
@@ -1,33 +1,23 @@
|
|
# Depends on gmake..
|
|
#
|
|
-OS = $(shell uname)
|
|
-
|
|
-ifeq ($(OS),FreeBSD)
|
|
- GTK_CONFIG = pkg-config gtk+-2.0
|
|
- INCLUDE = -I/usr/src/sys
|
|
-elseif eq ($(OS),NetBSD)
|
|
- GTK_CONFIG = pkg-config gtk+-2.0
|
|
-else
|
|
-# default to the linux
|
|
- GTK_CONFIG = pkg-config gtk+-2.0
|
|
-endif
|
|
|
|
+GTK_CONFIG = pkg-config gtk+-2.0
|
|
|
|
GTK_CFLAGS = `$(GTK_CONFIG) --cflags`
|
|
GTK_LIB = `$(GTK_CONFIG) --libs`
|
|
|
|
-FLAGS = -O2 -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
|
|
+CFLAGS = -O2 -Wall -fPIC $(GTK_CFLAGS) $(GKRELLM_INCLUDE)
|
|
LIBS = $(GTK_LIB)
|
|
LFLAGS = -shared
|
|
|
|
-CC = gcc $(CFLAGS) $(FLAGS)
|
|
+CC ?= gcc $(CFLAGS) $(FLAGS)
|
|
|
|
OBJS = wireless.o
|
|
|
|
-PLUGIN_DIR = /usr/lib/gkrellm2/plugins
|
|
+PLUGIN_DIR = ${PREFIX}/libexec/gkrellm2/plugins
|
|
|
|
-INSTALL = install -c
|
|
-INSTALL_PROGRAM = $(INSTALL) -s
|
|
+INSTALL = install -c -s
|
|
+INSTALL_PROGRAM = $(INSTALL)
|
|
|
|
all: wireless.so
|
|
|