ports/devel/google-gdata/files/patch-Makefile
David Naylor 1da3310ac1 lang/mono: update to version 5.2.0.215 (and enhance USES=mono)
Highlights:
 - New Roslyn compiler for C# available
 - Improved support for nuget packages in USES=mono

General:
 - fix pkg-plist: mono now produces '.pdb' debug files instead of '.mdb'
 - bump all dependant ports

USES=mono:
 - properly handle caching of nuget packages
 - add support for multiple feeds for nuget packages
 - add support for nuget dependencies in a separate file
 - add support for paket packages

lang/mono:
 - update to version 5.2.0.215
 - automate certificate initialisation [2]
 - increase test coverage
 - mark as conflicting with net/czmq (conflicting on makecert) [1]
 - patch mono to use $PREFIX/share/mono instead of /usr/share/.mono

devel/google-gdata:
 - use nunit.framework nuget package as the Mono shipped version is no longer suppport.
 - switch to using csc(1) for compiling (mcs(1) is depreciated).
 - use delayed signing (and then sign with sn(1)) as csc(1) does not support signing.
 - fix reference to system assemblies (the '.dll' suffix is required).
 - fix reference to HttpUtility: csc(1) is more strict about scoping

devel/monodevelop:
 - reroll distinfo (no changes to content)

lang/fsharp:
 - reroll distinfo (no changes to content)

security/gnome-keyring-sharp:
 - delay sign (then sign with sn(1)) as csc(1) does not support direct signing.

PR:	223188 [1]
PR:	209670 [2]
Differential Revision:	https://reviews.freebsd.org/D13752
2018-01-30 19:00:27 +00:00

44 lines
1.9 KiB
Text

--- Makefile.orig 2013-06-14 18:54:08 UTC
+++ Makefile
@@ -1,6 +1,3 @@
-CSC1=mcs
-CSC=gmcs
-
DEFINES=/d:TRACE
VERSION=$(shell egrep AssemblyVersion version/AssemblyVersion.cs | egrep -o \([[:digit:]]\.\)+[[:digit:]]+)
@@ -33,7 +30,7 @@ ALLLIBS = \
UNINSTALLLIBS = $(basename $(ALLLIBS))
-FRAMEWORK_REFS = -r:System.dll -r:System.Xml.dll -r:System.Configuration.dll
+FRAMEWORK_REFS = -r:System.dll -r:System.Xml.dll -r:System.Configuration.dll -r:%%LOCALBASE%%/lib/mono/Newtonsoft.Json/Newtonsoft.Json.dll
PKGCONFIG_FILES = $(patsubst %.pc.in,%.pc,$(wildcard misc/*.pc.in))
@@ -112,14 +109,14 @@ clean:
install: all
for i in $(ALLLIBS); do gacutil -i $$i -package GData-Sharp -root "$(DESTDIR)$(PREFIX)/lib"; done
install -d "$(DESTDIR)$(PKGCONFIGDIR)"
- install -m 644 -t "$(DESTDIR)$(PKGCONFIGDIR)" $(PKGCONFIG_FILES)
+ install -m 644 $(PKGCONFIG_FILES) "$(DESTDIR)$(PKGCONFIGDIR)"
uninstall:
for i in $(UNINSTALLLIBS); do gacutil -u $$i -package GData-Sharp -root "$(DESTDIR)$(PREFIX)/lib"; done
for i in $(PKGCONFIG_FILES) ; do rm "$(DESTDIR)$(PKGCONFIGDIR)/$$i" ; done
tests: $(ALLLIBS)
- $(CSC) $(DEFINES) -target:library -out:unittests.dll $(ALLREFS) -r:nunit.framework.dll $(test_sources)
+ $(CSC) $(DEFINES) -target:library -out:unittests.dll $(ALLREFS) -r:packages/nunit.framework/lib/nunit.framework.dll $(test_sources)
gapps_sample_sources = samples/appsforyourdomain/appsdemo.cs
gapps_appsdemo.exe: $(ALLLIBS) $(gapps_sample_sources)
@@ -147,7 +144,7 @@ gspreadsheet_demo.exe:
PhotoTool_sources = $(wildcard samples/PhotoBrowser/*.cs)
PhotoTool.exe: $(ALLLIBS) $(PhotoTool_sources)
- $(CSC) -out:$@ $(ALLREFS) -r:System.Windows.Forms -r:System.Drawing -r:System.Data $(PhotoTool_sources)
+ $(CSC) -out:$@ $(ALLREFS) -r:System.Windows.Forms.dll -r:System.Drawing.dll -r:System.Data.dll $(PhotoTool_sources)
test:
nunit-console2 unittests.dll