blob: f9534641382f36c9b393712a28d4e72342bc611e (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
diff --git a/common.mk b/common.mk
index 2443a40..0a342ee 100644
--- a/common.mk
+++ b/common.mk
@@ -8,17 +8,19 @@ override TOPDIR := $(dir $(call getCurrentMakefileName))
override PACKAGE := realpath
-PATH := /usr/bin:/usr/sbin:/bin:/sbin:$(PATH)
+#PATH := /usr/bin:/usr/sbin:/bin:/sbin:$(PATH)
+
+SHELL := @GENTOO_PORTAGE_EPREFIX@/bin/bash
# build abstraction
-install_file := install -p -o root -g root -m 644
-install_script := install -p -o root -g root -m 755
-install_dir := install -d -o root -g root -m 755
+install_file := install -p -m 644
+install_script := install -p -m 755
+install_dir := install -d -m 755
install_link := ln -sf
compress := gzip -9f
-prefix := /usr
-etcdir := /etc/$(PACKAGE)
+prefix := @GENTOO_PORTAGE_EPREFIX@/usr
+etcdir := @GENTOO_PORTAGE_EPREFIX@/etc/$(PACKAGE)
bindir := $(prefix)/bin
sbindir := $(prefix)/sbin
mandir := $(prefix)/share/man
@@ -33,7 +35,7 @@ webdocrootdir := /var/www
webcgidir := $(prefix)/lib/cgi-bin
applicationsdir := $(prefix)/share/applications
-PERL := /usr/bin/perl
+PERL := @GENTOO_PORTAGE_EPREFIX@/usr/bin/perl
CC ?= gcc
CFLAGS += -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
LDFLAGS +=
|