1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/lang/asis/files/patch-Makefile
John Marino c23e7f6707 Add new port: lang/asis
This is ASIS, the Ada Semantic Interface Specification.
ASIS is tightly coupled with lang/gcc-aux and must be built with the same
sources.  For this reason, ASIS will not work with other Ada compilers,
including GNAT GPL (lang/gnat).

ASIS is a dependency of several upcoming Ada ports.

Approved by:	bapt (mentor)
2013-07-21 14:17:04 +00:00

51 lines
1.6 KiB
Plaintext

--- Makefile.orig 2013-07-17 18:11:51.000000000 +0000
+++ Makefile
@@ -1,21 +1,21 @@
include Makefile.stub
-all: lib/libasis$(arext) asistant
+all: lib/libasis$(arext) asistant tools
BLD=prod
tools = gnatstub gnatelim gnatmetric gnatpp gnatcheck
gu_tools = aunitstub aunitglue
-I_BIN = $(prefix)/bin
-I_INC = $(prefix)/include/asis
-I_LIB = $(prefix)/lib/asis
-I_GPR = $(prefix)/lib/gnat
-I_DOC = $(prefix)/share/doc/asis
-I_GPS = $(prefix)/share/gps/plug-ins
-G_DOC = $(prefix)/share/doc/gnat
+I_BIN = $(DESTDIR)$(prefix)/bin
+I_INC = $(DESTDIR)$(prefix)/include/asis
+I_LIB = $(DESTDIR)$(prefix)/lib/asis
+I_GPR = $(DESTDIR)$(prefix)/lib/gnat
+I_DOC = $(DESTDIR)$(prefix)/share/doc/asis
+I_GPS = $(DESTDIR)$(prefix)/share/gps/plug-ins
+G_DOC = $(DESTDIR)$(prefix)/share/doc/gnat
-install: install-lib install-asistant
+install: install-lib install-asistant install-tools
install-lib:
$(RMDIR) $(I_INC)
@@ -36,7 +36,6 @@ ifneq ($(ATTRIB),)
cd $(I_LIB) && $(ATTRIB) +r '*.ali'
cd $(I_LIB) && $(ATTRIB) +r 'libasis$(arext)'
endif
- $(INSTALL_FILES) gnat/*.ads gnat/*.adb $(I_INC)
$(INSTALL_FILES) asis/*.ads asis/*.adb $(I_INC)
$(INSTALL_FILES) asis/asis.gpr $(I_GPR)
$(INSTALL_FILES) documentation/gps_index.xml $(I_GPS)/asis.xml
@@ -45,8 +44,6 @@ endif
-$(INSTALL_FILES) documentation/asis_*.info $(I_DOC)/info/
lib/libasis$(arext): force
- cd gnat && $(GNATMAKE) xsnamest && ./xsnamest \
- && mv snames.ns snames.ads && mv snames.nb snames.adb
$(GNATMAKE) -Pasis_bld -XBLD=$(BLD) -XASISOPSYS=$(ASISOPSYS)
install-tools: $(tools:%=install-%)