aboutsummaryrefslogblamecommitdiff
path: root/multimedia/vdr-plugin-markad/files/patch-plugin_Makefile
blob: 6471e82124d71efe77c9274c6eed99da7a8c3c2e (plain) (tree)
1
2
3
4
5
6
7
8

                                                       
                                                

             

              
                                                                                                                                    


                                                                                               



                                                        
                                                                             
     
                                                                                               



                                                                                          
--- plugin/Makefile.orig	2012-02-13 19:32:27 UTC
+++ plugin/Makefile
@@ -99,11 +99,19 @@ i18n: $(I18Nmsgs) $(I18Npot)
 ### Targets:
 
 install: all 
+ifdef FREEBSD
+	${INSTALL_PROGRAM} $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION) ${DESTDIR}$(PREFIX)/lib/vdr/libvdr-$(PLUGIN).so.$(APIVERSION)
+else
 	cp --remove-destination libvdr-$(PLUGIN).so $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION)
+endif
 
 libvdr-$(PLUGIN).so: $(OBJS)
 	$(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -o $@
+ifdef FREEBSD
+	cp -f libvdr-$(PLUGIN).so $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION)
+else
 	cp --remove-destination libvdr-$(PLUGIN).so $(LIBDIR)/libvdr-$(PLUGIN).so.$(APIVERSION)
+endif
 
 clean:
 	@-rm -f $(OBJS) $(DEPFILE) *.so *.so.* *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot