blob: 77b9aa193d74c9e7e8427808304d299f20e9afe2 (
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
|
$NetBSD: patch-aa,v 1.4 2003/12/14 12:38:30 wiz Exp $
--- Makefile.orig 2003-08-09 21:33:27.000000000 +0200
+++ Makefile
@@ -1,8 +1,8 @@
-CC=gcc
-CFLAGS=`pkg-config --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
+CC?=gcc
+CFLAGS+=`pkg-config --cflags gtk+-2.0` -I. -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
LIBS=`pkg-config --libs gtk+-2.0`
-bindir ?= /usr/bin
-datadir ?= /usr/share
+bindir ?= ${PREFIX}/bin
+datadir ?= ${PREFIX}/share
.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
@@ -16,12 +16,11 @@ gpdata.o: gpdata.c gperiodic.h
gperiodic.o: gperiodic.c gperiodic.h table_data.h
install:
- make -C po/ install enable_nls=1 datadir=$(datadir)
- install gperiodic $(bindir)
- install gperiodic.desktop $(datadir)/applications
- install gperiodic.png $(datadir)/pixmaps
- install gperiodic-crystal.png $(datadir)/pixmaps
- make clean
+ cd po && ${MAKE} install enable_nls=1 datadir=$(datadir)
+ ${BSD_INSTALL_PROGRAM} gperiodic $(bindir)
+ ${BSD_INSTALL_DATA} gperiodic.desktop ${PREFIX}/share/gnome/apps/Applications
+ ${BSD_INSTALL_DATA} gperiodic.png $(datadir)/pixmaps
+ ${BSD_INSTALL_DATA} gperiodic-crystal.png $(datadir)/pixmaps
uninstall:
rm $(bindir)/gperiodic
|