Lines 1-73
Link Here
|
1 |
--- Makefile.orig 2011-03-03 15:40:49.000000000 -0600 |
|
|
2 |
+++ Makefile 2011-03-08 10:37:12.000000000 -0600 |
3 |
@@ -1,5 +1,5 @@ |
4 |
# Where is your Xwindows located? |
5 |
-X11=/usr/X11R6 |
6 |
+X11=${LOCALBASE} |
7 |
|
8 |
# |
9 |
# For building rpms |
10 |
@@ -7,9 +7,9 @@ |
11 |
|
12 |
# |
13 |
# For installing |
14 |
-prefix=/usr |
15 |
-sysconfdir=/etc |
16 |
-exec_prefix= |
17 |
+prefix=${PREFIX} |
18 |
+sysconfdir=${prefix}/etc |
19 |
+exec_prefix=${PREFIX} |
20 |
|
21 |
# On 64 bit arch change libprefix to lib64 |
22 |
libprefix=/lib |
23 |
@@ -20,7 +20,7 @@ |
24 |
RPMDIR=/usr/src/RPM |
25 |
|
26 |
# Choose compiler |
27 |
-CC=gcc |
28 |
+CC?=gcc |
29 |
LD=gcc |
30 |
BINFORMAT=bin |
31 |
|
32 |
@@ -74,10 +74,10 @@ |
33 |
${MAKE} all CC=cc LD=ld XLDFLAGS='-expect_unresolved "*" -shared -msym -O3' |
34 |
|
35 |
freebsd-aout: |
36 |
- ${MAKE} all CC=gcc XCFLAGS='-fPIC -aout' LD=gcc XLDFLAGS='-shared -aout' |
37 |
+ ${MAKE} all CC=${CC} XCFLAGS='-fPIC -aout' LD=gcc XLDFLAGS='-shared -aout' |
38 |
|
39 |
freebsd: |
40 |
- ${MAKE} all CC=gcc XCFLAGS=-fPIC LD=gcc XLDFLAGS=-shared X11=/usr/X11R6/ |
41 |
+ ${MAKE} all CC=${CC} XCFLAGS=-fPIC LD=gcc XLDFLAGS=-shared X11=${LOCALBASE} |
42 |
|
43 |
openbsd: |
44 |
${MAKE} all CC=gcc XCFLAGS=-fPIC LD=gcc XLDFLAGS=-shared X11=/usr/X11R6/ |
45 |
@@ -122,7 +122,7 @@ |
46 |
mozplugger-controller \ |
47 |
mozplugger-linker |
48 |
|
49 |
-DEFINES= -DXP_UNIX -DVERSION=\"$(VERSION)\" -D$(BUILD) -DSYSCONFDIR=\"${sysconfdir}\" #-D__amd64__ |
50 |
+DEFINES= -DXP_UNIX -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\" -D$(BUILD) -DSYSCONFDIR=\"${sysconfdir}\" #-D__amd64__ |
51 |
INCLUDES= -Inpapi/include -I$(X11)/include |
52 |
RPM_OPT_FLAGS ?= -O2 |
53 |
COMMON_CFLAGS=$(RPM_OPT_FLAGS) $(INCLUDES) $(DEFINES) |
54 |
@@ -202,15 +202,15 @@ |
55 |
|
56 |
install: |
57 |
-@mkdir -p $(exec_prefix)/bin |
58 |
- -@mkdir -p $(prefix)$(libprefix)/mozilla/plugins |
59 |
- -@mkdir -p $(exec_prefix)/share/man/man7 |
60 |
+ -@mkdir -p $(root)${WEBPLUGINS_DIR} |
61 |
+ -@mkdir -p $(root)$(prefix)/man/man7 |
62 |
-@mkdir -p ${sysconfdir} |
63 |
cp mozplugger-helper $(exec_prefix)/bin/ |
64 |
cp mozplugger-controller $(exec_prefix)/bin/ |
65 |
cp mozplugger-linker $(exec_prefix)/bin/ |
66 |
- cp mozplugger.so $(prefix)$(libprefix)/mozilla/plugins/ |
67 |
+ cp mozplugger.so $(root)${WEBPLUGINS_DIR} |
68 |
cp mozpluggerrc ${sysconfdir}/ |
69 |
- cp mozplugger.7 $(exec_prefix)/share/man/man7/ |
70 |
+ cp mozplugger.7 $(root)$(prefix)/man/man7/ |
71 |
|
72 |
mozplugger.tar.gz: $(BASE_FILES) $(SOURCE_FILES) |
73 |
@( DIR=`pwd`;\ |