mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 15:59:18 -04:00
PR 272578 has been addressed by passing ${PREFIX} as an argument to the make command. PR: 272578 Reported by: nfisher.sr@gmail.com (Nathan Fischer)
33 lines
854 B
Makefile
33 lines
854 B
Makefile
--- config.example.mk.orig 2023-07-19 01:21:32.000000000 +0200
|
|
+++ config.example.mk 2023-07-19 13:07:52.729248178 +0200
|
|
@@ -1,21 +1,23 @@
|
|
## Install configuration
|
|
|
|
-PREFIX = /usr/local
|
|
-BINDIR = $(PREFIX)/bin
|
|
-MANDIR = $(PREFIX)/share/man
|
|
-SRCDIR = $(PREFIX)/src
|
|
+#PREFIX = %%LOCALBASE%%
|
|
+BINDIR = $(PREFIX)/bin
|
|
+MANDIR = $(PREFIX)/man
|
|
+DATADIR = $(PREFIX)/share/hare
|
|
+SRCDIR = $(DATADIR)/src
|
|
|
|
# Where to install the stdlib tree
|
|
STDLIB = $(SRCDIR)/hare/stdlib
|
|
|
|
# Default HAREPATH
|
|
-HAREPATH = $(SRCDIR)/hare/stdlib:$(SRCDIR)/hare/third-party
|
|
+LOCALSRCDIR = ${SRCDIR}/local-src
|
|
+HAREPATH = $(LOCALSRCDIR)/stdlib:$(LOCALSRCDIR)/third-party:$(DATADIR)/stdlib:$(DATADIR)/third-party
|
|
|
|
## Build configuration
|
|
|
|
# Platform to build for
|
|
-PLATFORM = linux
|
|
-ARCH = x86_64
|
|
+PLATFORM = freebsd
|
|
+#ARCH = x86_64
|
|
|
|
# External tools and flags
|
|
HAREC = harec
|