aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2008-08-25 01:50:57 +0800
committerjmz <jmz@FreeBSD.org>2008-08-25 01:50:57 +0800
commitba88d3e425e8b9dc357f72f8afe4ca20c73add68 (patch)
tree4967a5170b70bc9bdad794aecee6717672fbaed5 /math
parent0073e48938e4030cb4dc50230412d638a063e3f3 (diff)
downloadfreebsd-ports-gnome-ba88d3e425e8b9dc357f72f8afe4ca20c73add68.tar.gz
freebsd-ports-gnome-ba88d3e425e8b9dc357f72f8afe4ca20c73add68.tar.zst
freebsd-ports-gnome-ba88d3e425e8b9dc357f72f8afe4ca20c73add68.zip
Respect CC, CFLAGS, etc.
Plist fixes. PR: ports/126302 Submitted by: bf <bf2006a@yahoo.com>
Diffstat (limited to 'math')
-rw-r--r--math/calc/Makefile8
-rw-r--r--math/calc/files/patch-Makefile104
-rw-r--r--math/calc/pkg-plist16
3 files changed, 118 insertions, 10 deletions
diff --git a/math/calc/Makefile b/math/calc/Makefile
index dad698968dc7..f7cc4f6ef067 100644
--- a/math/calc/Makefile
+++ b/math/calc/Makefile
@@ -19,4 +19,12 @@ USE_LDCONFIG= yes
MAN1= calc.1
+CALCPAGER?= more
+MAKE_ENV+= CALCPAGER="${CALCPAGER}" CAT="${CAT}" CHMOD="${CHMOD}" CP="${CP}" \
+ GMAKE="${GMAKE}" LN="${LN}" MKDIR="${MKDIR}" MV="${MV}" RM="${RM}" \
+ SED="${SED}" TOUCH="${TOUCH}" TRUE="${TRUE}"
+
+regression-test: build
+ ( cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} check )
+
.include <bsd.port.mk>
diff --git a/math/calc/files/patch-Makefile b/math/calc/files/patch-Makefile
index 5539d1a453c3..7c757d908244 100644
--- a/math/calc/files/patch-Makefile
+++ b/math/calc/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig 2008-05-10 08:04:43.000000000 -0700
-+++ Makefile 2008-05-10 08:05:39.000000000 -0700
+--- Makefile.orig 2008-05-10 07:58:05.000000000 -0400
++++ Makefile 2008-08-06 08:53:08.992116860 -0400
@@ -585,7 +585,7 @@
#INCDIR= /usr/local/include
@@ -37,3 +37,103 @@
#MANDIR= /dev/env/DJDIR/man/man1
#MANDIR= /usr/man/u_man/man1
#MANDIR= /usr/contrib/man/man1
+@@ -857,7 +857,7 @@
+ #CALCPAGER= more
+ #CALCPAGER= pg
+ #CALCPAGER= cat
+-CALCPAGER= less
++#CALCPAGER= less
+ #CALCPAGER= less.exe -ci
+
+ # Debug/Optimize options for ${CC} and ${LCC}
+@@ -966,8 +966,8 @@
+ # MKDIR_ARG= -p # use mkdir -p when creating paths
+ # MKDIR_ARG= # use if system does not understand mkdir -p
+ #
+-MKDIR_ARG= -p
+-#MKDIR_ARG=
++#MKDIR_ARG= -p
++MKDIR_ARG=
+
+ # Some out of date operating systems require / want an executable to
+ # end with a certain file extension. Some compile systems such as
+@@ -999,35 +999,36 @@
+
+ # standard utilities used during make
+ #
+-SHELL= /bin/sh
++#SHELL= /bin/sh
+ LANG= C
+-MAKE= make
++#MAKE= make
+ AWK= awk
+-SED= sed
++#SED= sed
+ DIFF= diff
+ GREP= egrep
+ SORT= sort
+ TEE= tee
+ CTAGS= ctags
+-CHMOD= chmod
++#CHMOD= chmod
+ FMT= fmt
+ XARGS= xargs
+ CMP= cmp
+-MKDIR= mkdir
++#MKDIR= mkdir
+ SPLINT= splint
+ SPLINT_OPTS=
+-RM= rm
+-TOUCH= touch
++#RM= rm
++#TOUCH= touch
+ RMDIR= rmdir
+-CP= cp
+-MV= mv
++#CP= cp
++#MV= mv
+ CO= co
+ AR= ar
+-TRUE= true
+-CAT= cat
++#TRUE= true
++#CAT= cat
+ COL= col
+-LN= ln
+-LDCONFIG= ldconfig
++#LN= ln
++#LDCONFIG= ldconfig
++LDCONFIG=
+ # assume the X11 makedepend tool for the depend rule
+ MAKEDEPEND= makedepend
+ STRIP= strip
+@@ -1235,13 +1236,15 @@
+ #
+ CCWARN= -Wall -W -Wno-comment
+ CCWERR=
+-CCOPT= ${DEBUG}
++#CCOPT= ${DEBUG}
++CCOPT=
+ CCMISC=
+ #
+-LCC= gcc
+-CC= ${PURIFY} ${LCC} ${CCWERR}
++LCC= ${CC}
++#CC= ${PURIFY} ${LCC} ${CCWERR}
+ #
+-MAKE= gmake
++#MAKE= gmake
++MAKE= ${GMAKE}
+ #
+ endif
+
+@@ -1469,7 +1472,8 @@
+ else
+ ICFLAGS= ${COMMON_CFLAGS} ${CC_SHARE}
+ endif
+-CFLAGS= ${ICFLAGS} ${CCOPT}
++#CFLAGS= ${ICFLAGS} ${CCOPT}
++CFLAGS+= ${ICFLAGS} ${CCOPT}
+
+ # Required flags to link files for calc
+ #
diff --git a/math/calc/pkg-plist b/math/calc/pkg-plist
index 544525ceb9f6..22d04a823b3e 100644
--- a/math/calc/pkg-plist
+++ b/math/calc/pkg-plist
@@ -483,12 +483,12 @@ lib/libcustcalc.so.2.12.3.3
%%DATADIR%%/unitfrac.cal
%%DATADIR%%/varargs.cal
%%DATADIR%%/xx_print.cal
-@dirrmtry share/man/man1
-@dirrmtry share/man
-@dirrmtry %%DATADIR%%/help
-@dirrmtry %%DATADIR%%/custom
-@dirrmtry %%DATADIR%%/custhelp
-@dirrmtry %%DATADIR%%
+@dirrmtry man/man1
+@dirrmtry man
+@dirrm %%DATADIR%%/help
+@dirrm %%DATADIR%%/custom
+@dirrm %%DATADIR%%/custhelp
+@dirrm %%DATADIR%%
@dirrmtry include/calc/custom
-@dirrmtry include/calc
-@dirrmtry bin/cscript
+@dirrm include/calc
+@dirrm bin/cscript