Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 11956
Collapse All | Expand All

(-)plugger-4.0.orig/Makefile (-18 / +18 lines)
Lines 1-8 Link Here
1
# Where is your Plugin Source Development Kit from Netscape?
1
# Where are your Mozilla includes?
2
SDK=/home/hubbe/src/PluginSDK30b5
2
SDK=/usr/include/mozilla
3
3
4
# Where is your Xwindows located?
4
# Where is your Xwindows located?
5
X11=/usr/X11/
5
X11=/usr/X11R6
6
6
7
#
7
#
8
# For building rpms
8
# For building rpms
Lines 11-17 Link Here
11
# You may want to change this to /usr/ on
11
# You may want to change this to /usr/ on
12
# some installations.
12
# some installations.
13
prefix=/usr/local
13
prefix=/usr/local
14
14
mandir=$(prefix)/man
15
bindir=$(prefix)/bin
16
sysconfdir=$(prefix)/etc
17
plugindir=$(prefix)/lib/mozilla/plugins
15
#
18
#
16
#
19
#
17
RPMDIR=/usr/src/RPM
20
RPMDIR=/usr/src/RPM
Lines 91-97 Link Here
91
BIN_FILES=plugger.so plugger-$(VERSION)
94
BIN_FILES=plugger.so plugger-$(VERSION)
92
95
93
DEFINES=$(STREAM) -DVERSION=\"$(VERSION)\" # -DDEBUG # -DPLUGIN_TRACE
96
DEFINES=$(STREAM) -DVERSION=\"$(VERSION)\" # -DDEBUG # -DPLUGIN_TRACE
94
COMMON_CFLAGS=-O -I$(SDK)/include -I$(X11)/include -DXP_UNIX $(DEFINES)
97
COMMON_CFLAGS=-O -I$(SDK)/plugin -I$(SDK)/java -I$(SDK)/nspr -I$(X11)/include -DXP_UNIX $(DEFINES)
95
COMMON_LDFLAGS=
98
COMMON_LDFLAGS=
96
NORM_CFLAGS=
99
NORM_CFLAGS=
97
NORM_LDFLAGS=
100
NORM_LDFLAGS=
Lines 117-124 Link Here
117
plugger.o: plugger.c plugger.h
120
plugger.o: plugger.c plugger.h
118
	$(CC) -c $(SHARED_CFLAGS) -o plugger.o plugger.c
121
	$(CC) -c $(SHARED_CFLAGS) -o plugger.o plugger.c
119
122
120
common.o: $(SDK)/common/npunix.c
123
common.o: npunix.c
121
	$(CC) -c $(SHARED_CFLAGS) -o common.o $(SDK)/common/npunix.c
124
	$(CC) -c $(SHARED_CFLAGS) -o common.o npunix.c
122
125
123
clean:
126
clean:
124
	-rm *.o
127
	-rm *.o
Lines 141-157 Link Here
141
144
142
145
143
install:
146
install:
144
	-@mkdir $(root)$(prefix) 1>/dev/null 2>&1 || :
147
	-@mkdir -p $(root)$(bindir)
145
	-@mkdir $(root)$(prefix)/bin 1>/dev/null 2>&1 || :
148
	-@mkdir -p $(root)$(mandir)/man7
146
	-@mkdir $(root)$(prefix)/lib 1>/dev/null 2>&1 || :
149
	-@mkdir -p $(root)$(plugindir)
147
	-@mkdir $(root)$(prefix)/man 1>/dev/null 2>&1 || :
150
	-@mkdir -p $(root)$(sysconfdir)
148
	-@mkdir $(root)$(prefix)/man/man7 1>/dev/null 2>&1 || :
151
	cp plugger-$(VERSION) $(root)$(bindir)
149
	-@mkdir $(root)$(prefix)/lib/netscape 1>/dev/null 2>&1 || :
152
	cp plugger.so $(root)$(plugindir)
150
	-@mkdir $(root)$(prefix)/lib/netscape/plugins 1>/dev/null 2>&1 || :
153
	if [ ! -f $(root)/etc/pluggerrc-$(VERSION) ]; then cp pluggerrc $(root)$(sysconfdir)/pluggerrc-$(VERSION) ; fi
151
	cp plugger-$(VERSION) $(root)$(prefix)/bin/
154
	cp plugger.7 $(root)$(mandir)/man7/
152
	cp plugger.so $(root)$(prefix)/lib/netscape/plugins/
153
	if [ ! -f $(root)/etc/pluggerrc-$(VERSION) ]; then cp pluggerrc $(root)/etc/pluggerrc-$(VERSION) ; fi
154
	cp plugger.7 $(root)$(prefix)/man/man7/
155
155
156
plugger-$(VERSION).tar.gz: $(BASE_FILES) $(SOURCE_FILES)
156
plugger-$(VERSION).tar.gz: $(BASE_FILES) $(SOURCE_FILES)
157
	@( DIR=`pwd`;\
157
	@( DIR=`pwd`;\
(-)plugger-4.0.orig/plugger.c (-1 / +1 lines)
Lines 620-626 Link Here
620
}
620
}
621
621
622
/* Let netscape know things about plugger */
622
/* Let netscape know things about plugger */
623
NPError NPP_GetValue(void *future, NPPVariable variable, void *value)
623
NPError NPP_GetValue(NPP future, NPPVariable variable, void *value)
624
{
624
{
625
  NPError err = NPERR_NO_ERROR;
625
  NPError err = NPERR_NO_ERROR;
626
626

Return to bug 11956