ports/devel/sfml1/files/patch-src__SFML__Audio__Makefile
Dmitry Marakasov 8af4a553bd - Use canonical patch filenames
- Fix SONAMEs and simplify libraries installation
2014-08-18 13:37:34 +00:00

30 lines
994 B
Text

--- src/SFML/Audio/Makefile.orig 2014-08-18 16:51:52.000000000 +0400
+++ src/SFML/Audio/Makefile 2014-08-18 16:52:27.000000000 +0400
@@ -8,7 +8,7 @@
LIBNAME = $(LIBPATH)/$(LIB)
INSTALL =
else
- LIB = libsfml-audio.so
+ LIB = libsfml1-audio.so
LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
endif
@@ -18,14 +18,14 @@
libsfml-audio-s.a: $(OBJ) $(OBJVORBIS)
$(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJVORBIS)
-libsfml-audio.so: $(OBJ) $(OBJVORBIS)
- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJVORBIS) -lsndfile -lopenal
+libsfml1-audio.so: $(OBJ) $(OBJVORBIS)
+ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJVORBIS) -lsndfile -lopenal
$(OBJ): %.o: %.cpp
- $(CPP) -o $@ -c $< $(CFLAGS)
+ $(CXX) -o $@ -c $< $(CXXFLAGS)
$(OBJVORBIS): %.o: %.c
- $(CC) -o $@ -c $< $(CFLAGSEXT)
+ $(CC) -o $@ -c $< $(CFLAGS)
.PHONY: clean mrproper