mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
6a893888da
The author of matreshka informed me that GPRBuild 2014 has a bug in it that suppresses flags like -msse2 and -march. It's been fixed in the Pro version, but not the GPL version. He worked around the bug instead, and this commit brings in the essential part of that workaround. The GPRBuild bug prevented Matreshka from building on i386 on all releases and all platforms. While here, remove @dirrm from pkg-plist, strip the installed libraries, convert to USES=pgsql and tighten the makefile up a bit. MFH: 2014Q4
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
--- Makefile.build.orig 2013-09-18 07:12:40.852703000 +0000
|
|
+++ Makefile.build
|
|
@@ -1,5 +1,6 @@
|
|
include Makefile.config
|
|
|
|
+GNATMAKE = gnatmake
|
|
GPRBUILD_FLAGS = -p $(SMP_MFLAGS)
|
|
|
|
ALL_TARGETS = league xml fastcgi soap wsse wsdl2ada sql
|
|
@@ -31,6 +32,19 @@ endif
|
|
all: $(ALL_TARGETS)
|
|
|
|
league:
|
|
+ifneq (, $(findstring x86,$(ARCHITECTURE)))
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86_utilities.adb
|
|
+ifeq ($(ARCHITECTURE), x86)
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-simd-intel-sse.adb
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-simd-intel-sse2.ads
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-generic_x86_sse2.adb
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86-sse2.ads
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86-sse2_popcnt.ads
|
|
+endif
|
|
+ifeq ($(ARCHITECTURE), x86_64)
|
|
+ $(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86_64_popcnt.ads
|
|
+endif
|
|
+endif
|
|
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_league.gpr
|
|
|
|
xml: league
|