summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorSamuel <samuellb@crashie.(none)>2009-06-16 22:10:04 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:07 +0100
commitc58f5585564d39843de0c9c46050a8284b0e05b0 (patch)
treedf34e524ee7a1428d74fcd303880f6b35856d800 /plugin
parent3aff8b355f4394b95f129390a00f6c440683f6ef (diff)
downloadfribid-c58f5585564d39843de0c9c46050a8284b0e05b0.tar.gz
fribid-c58f5585564d39843de0c9c46050a8284b0e05b0.tar.bz2
fribid-c58f5585564d39843de0c9c46050a8284b0e05b0.zip
Made the plugin path configurable
The default path is /usr/lib/mozilla/plugins
Diffstat (limited to 'plugin')
-rw-r--r--plugin/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugin/Makefile b/plugin/Makefile
index cf92e8f..e5dc64d 100644
--- a/plugin/Makefile
+++ b/plugin/Makefile
@@ -5,9 +5,7 @@ CCFLAGS=$(COMMONCFLAGS) -I../npapi/include -fPIC -fvisibility=hidden
# Files to be installed
LIB_PATH=`../configure --internal--get-define=LIB_PATH`
NPAPI_PLUGIN_LIB=`../configure --internal--get-define=NPAPI_PLUGIN_LIB`
-NPAPI_PLUGIN_LINK1=`../configure --internal--get-define=NPAPI_PLUGIN_LINK1`
-NPAPI_PLUGIN_LINK2=`../configure --internal--get-define=NPAPI_PLUGIN_LINK2`
-NPAPI_PLUGIN_REL=`../configure --internal--get-define=NPAPI_PLUGIN_REL`
+NPAPI_PLUGIN_PATHS=`../configure --internal--get-define=NPAPI_PLUGIN_PATHS`
OBJECTS=ipc.o npmain.o npobject.o plugin.o pipe.o npn_gate.o np_entry.o
@@ -32,16 +30,18 @@ clean:
install:
install -d $(LIB_PATH)
install -s -m 644 libplugins.so $(LIB_PATH)
- ../configure --internal--remove-link $(NPAPI_PLUGIN_LINK1) $(NPAPI_PLUGIN_REL)
- ../configure --internal--remove-link $(NPAPI_PLUGIN_LINK2) $(NPAPI_PLUGIN_REL)
- ln -s $(NPAPI_PLUGIN_REL) $(NPAPI_PLUGIN_LINK1)
- ln -s $(NPAPI_PLUGIN_REL) $(NPAPI_PLUGIN_LINK2)
+ for path in $(NPAPI_PLUGIN_PATHS); do \
+ (../configure --internal--remove-link $$path/libplugins.so $(NPAPI_PLUGIN_LIB) || exit 1) && \
+ install -d $$path && \
+ ln -s $(NPAPI_PLUGIN_LIB) $$path/libplugins.so; \
+ done
uninstall:
rm -f $(NPAPI_PLUGIN_LIB)
[ ! -d $(LIB_PATH) ] || rmdir $(LIB_PATH) 2> /dev/null || true
- ../configure --internal--remove-link $(NPAPI_PLUGIN_LINK1) $(NPAPI_PLUGIN_REL)
- ../configure --internal--remove-link $(NPAPI_PLUGIN_LINK2) $(NPAPI_PLUGIN_REL)
+ for path in $(NPAPI_PLUGIN_PATHS); do \
+ ../configure --internal--remove-link $$path/libplugins.so $(NPAPI_PLUGIN_LIB) || exit 1; \
+ done
$(OBJECTS): ../common/defines.h ../common/config.h
../common/config.h: