freebsd-ports/multimedia/nxtvepg/files/patch-Makefile
Dmitry Marakasov 9d77dbda8e - Update to 2.8.0
PR:		139835
Submitted by:	Sylvio Cesar <scjamorim@bsd.com.br>
2009-10-30 01:35:30 +00:00

47 lines
1.2 KiB
Text

--- Makefile.orig 2007-12-31 21:20:33.000000000 -0200
+++ Makefile 2009-10-21 22:24:56.000000000 -0200
@@ -45,12 +45,24 @@
include Makefile.bsd
else
+ifndef LOCALBASE
+ LOCALBASE=/usr/X11R6
+endif
+
+ifndef LOCALBASE
+ LOCALBASE=/usr/local
+endif
+
+ifndef PREFIX
+ PREFIX=$(LOCALBASE)
+endif
+
ROOT =
-prefix = /usr/local
+prefix = $(PREFIX)
exec_prefix = ${prefix}
bindir = $(ROOT)${exec_prefix}/bin
mandir = $(ROOT)${prefix}/man/man1
-resdir = $(ROOT)/etc/X11
+resdir = $(ROOT)$(LOCALBASE)/lib/X11
# if you have perl and/or flex set their path here, else just leave them alone
PERL = /usr/bin/perl
@@ -110,6 +122,8 @@
# -> uncomment 2 lines below to put the databases in the user's home
#USER_DBDIR = .nxtvdb
#DEFS += -DEPG_DB_ENV=\"HOME\" -DEPG_DB_DIR=\"$(USER_DBDIR)\"
+USER_DBDIR = .nxtvdb
+DEFS += -DEPG_DB_ENV=\"HOME\" -DEPG_DB_DIR=\"$(USER_DBDIR)\"
ifndef USER_DBDIR
SYS_DBDIR = /var/tmp/nxtvdb
DEFS += -DEPG_DB_DIR=\"$(SYS_DBDIR)\"
@@ -127,7 +141,7 @@
LDFLAGS += -lm
#LDFLAGS += -pg
-BUILD_DIR = build-$(shell uname -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/')
+BUILD_DIR ?= build-$(shell uname -m | sed -e 's/i.86/i386/' -e 's/ppc/powerpc/')
INCS += -I$(BUILD_DIR)
# end Linux specific part