--- a/Makefile +++ b/Makefile @@ -119,7 +119,11 @@ i18n: $(I18Nmsgs) $(I18Npot) libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ +ifdef FREEBSD + @cp -f $@ $(LIBDIR)/$@.$(APIVERSION) +else @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) +endif perm: @chmod 644 *.{c,h,html} COPYING HISTORY README TODO Makefile po/* patches/* @@ -138,3 +142,6 @@ clean: clean_code: clean uncrustify -c ../../../../clean_code/config --replace --no-backup $(UNCRUSTIFY_FILES) + +install: + ${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) ${DESTDIR}$(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION)