diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2008-08-24 17:50:57 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2008-08-24 17:50:57 +0000 |
commit | 0de0eab019487f5b6c7231ee96ed88ffe3b44c78 (patch) | |
tree | 862a4cdb356a78e088ac79488de910438d6e9948 /math/calc | |
parent | - Remove the last commit as maintainer's request[B. (diff) |
Respect CC, CFLAGS, etc.
Plist fixes.
PR: ports/126302
Submitted by: bf <bf2006a@yahoo.com>
Notes
Notes:
svn path=/head/; revision=219091
Diffstat (limited to 'math/calc')
-rw-r--r-- | math/calc/Makefile | 8 | ||||
-rw-r--r-- | math/calc/files/patch-Makefile | 104 | ||||
-rw-r--r-- | math/calc/pkg-plist | 16 |
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 |