aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-04-02 01:39:50 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-04-02 01:39:50 +0800
commitc62e2b26473fcd6b2e2bdc0b335bb7c469e2d0f2 (patch)
treec530dcfb5c74bafb79e98cbdebc08183fcc5a3f3 /devel
parenta3d241d1c5a3b88669a2bf4c20108f79f3e5e0bc (diff)
downloadfreebsd-ports-gnome-c62e2b26473fcd6b2e2bdc0b335bb7c469e2d0f2.tar.gz
freebsd-ports-gnome-c62e2b26473fcd6b2e2bdc0b335bb7c469e2d0f2.tar.zst
freebsd-ports-gnome-c62e2b26473fcd6b2e2bdc0b335bb7c469e2d0f2.zip
- Remove useless -lpthread replacement
- Try to fix build under DragonFly
Diffstat (limited to 'devel')
-rw-r--r--devel/sfml1/Makefile2
-rw-r--r--devel/sfml1/files/patch-include_SFML_System_ResourcePtr.inl10
-rw-r--r--devel/sfml1/files/patch-src__SFML__System__Makefile2
3 files changed, 12 insertions, 2 deletions
diff --git a/devel/sfml1/Makefile b/devel/sfml1/Makefile
index abeeb7f97116..447aecda88cd 100644
--- a/devel/sfml1/Makefile
+++ b/devel/sfml1/Makefile
@@ -18,7 +18,7 @@ LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile \
libfreetype.so:${PORTSDIR}/print/freetype2
USES= gmake openal:al pkgconfig dos2unix
-DOS2UNIX_GLOB= Makefile
+DOS2UNIX_GLOB= Makefile ResourcePtr.inl
USE_XORG= x11 xrandr
USE_GL= gl glu
USE_LDCONFIG= yes
diff --git a/devel/sfml1/files/patch-include_SFML_System_ResourcePtr.inl b/devel/sfml1/files/patch-include_SFML_System_ResourcePtr.inl
new file mode 100644
index 000000000000..e2923b8c4917
--- /dev/null
+++ b/devel/sfml1/files/patch-include_SFML_System_ResourcePtr.inl
@@ -0,0 +1,10 @@
+--- include/SFML/System/ResourcePtr.inl.orig 2010-01-27 16:53:54.000000000 +0300
++++ include/SFML/System/ResourcePtr.inl 2015-03-27 15:46:53.809250000 +0300
+@@ -22,6 +22,7 @@
+ //
+ ////////////////////////////////////////////////////////////
+
++#include <cstddef>
+
+ ////////////////////////////////////////////////////////////
+ /// Default constructor
diff --git a/devel/sfml1/files/patch-src__SFML__System__Makefile b/devel/sfml1/files/patch-src__SFML__System__Makefile
index 738df7635f29..fd2be586cb4c 100644
--- a/devel/sfml1/files/patch-src__SFML__System__Makefile
+++ b/devel/sfml1/files/patch-src__SFML__System__Makefile
@@ -16,7 +16,7 @@
-libsfml-system.so: $(OBJ)
- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) -lpthread
+libsfml1-system.so: $(OBJ)
-+ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) -pthread
++ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) -lpthread
$(OBJ): %.o: %.cpp
- $(CPP) -o $@ -c $< $(CFLAGS)