[BACK]Return to patch-src_SFML_Window_Makefile CVS log [TXT][DIR] Up to [local] / ports / devel / sfml / patches

File: [local] / ports / devel / sfml / patches / Attic / patch-src_SFML_Window_Makefile (download)

Revision 1.1.1.1 (vendor branch), Thu Oct 27 16:00:46 2011 UTC (12 years, 8 months ago) by yason
Branch: yason
CVS Tags: import
Changes since 1.1: +0 -0 lines

import

$OpenBSD$
--- src/SFML/Window/Makefile.orig	Wed Jan 27 17:00:37 2010
+++ src/SFML/Window/Makefile	Thu Oct 27 19:08:53 2011
@@ -8,7 +8,7 @@ ifeq ($(STATIC), yes)
     INSTALL = 
 else
     LIB     = libsfml-window.so
-    LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
+    LIBNAME = $(LIBPATH)/$(LIB).${LIBsfml-window_VERSION}
     INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
 endif
 
@@ -18,10 +18,10 @@ libsfml-window-s.a: $(OBJ)
 	$(AR) $(ARFLAGS) $(LIBNAME) $(OBJ)
 
 libsfml-window.so: $(OBJ)
-	$(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) -lX11 -lXrandr -lGL
+	$(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).${LIBsfml-window_VERSION} -o $(LIBNAME) $(OBJ) $(OBJGLEW) -lX11 -lXrandr -lGL
 
 $(OBJ): %.o: %.cpp
-	$(CPP) -o $@ -c $< $(CFLAGS)
+	$(CXX) -o $@ -c $< $(CXXFLAGS)
 
 .PHONY: clean mrproper
 
@@ -32,4 +32,4 @@ mrproper: clean
 	@rm -rf $(LIBNAME)
 
 install:
-	@($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL))
+	$(BSD_INSTALL_DATA) $(LIBNAME) $(DESTLIBDIR)