Package: freefem++ / 3.47+dfsg1-1

examples++-load.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Add arch names for build on them to succeed and locations for include and preference files
--- a/examples++-load/Makefile.am
+++ b/examples++-load/Makefile.am
@@ -222,8 +222,8 @@
 	  sed <$$i >$(DESTDIR)$(ff_prefix_dir)/lib/$$i 's#$(abs_top_builddir)/download#$(ff_prefix_dir)#' ;\
 	 done
 	echo loadpath += \"./\"  >$(DESTDIR)$(ff_prefix_dir)/etc/freefem++.pref
-	echo loadpath += \"$(ff_prefix_dir)/lib\"  >>$(DESTDIR)$(ff_prefix_dir)/etc/freefem++.pref
-	echo includepath += \"$(ff_prefix_dir)/idp\"  >>$(DESTDIR)$(ff_prefix_dir)/etc/freefem++.pref
+	echo loadpath += \"$(prefix)/lib/freefem++\"  >>$(DESTDIR)$(ff_prefix_dir)/etc/freefem++.pref
+	echo includepath += \"$(prefix)/include/freefem++/idp\"  >>$(DESTDIR)$(ff_prefix_dir)/etc/freefem++.pref
 	$(INSTALL_SCRIPT) ff-c++  $(DESTDIR)${bindir}
 	$(INSTALL_SCRIPT) ff-pkg-download  $(DESTDIR)${bindir}
 	$(INSTALL_SCRIPT) ff-get-dep   $(DESTDIR)${bindir}
--- a/examples++-load/load.link.in
+++ b/examples++-load/load.link.in
@@ -227,7 +227,7 @@
         LIBS="'$b/libff.dll' $LIBS $DLL"
 #        SUF=dll
 	;;
-    FreeBSD|NetBSD)
+    FreeBSD|NetBSD|GNU|GNU/kFreeBSD)
 	SHARED="-shared" 
 	FLAGS='-fPIC';;
 	# 64 bit Linux needs -fPIC (ALH)