aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-09-05 09:38:45 +0800
committersteve <steve@FreeBSD.org>2000-09-05 09:38:45 +0800
commitd420b8d25e6ed56cf7876d05d25c36e1e153c22f (patch)
treebc9db78438a7c0181374ba805dafdc4c28017629 /math
parentfdacd44fc79edaf01b562907ae7cc9a5f1444434 (diff)
downloadfreebsd-ports-gnome-d420b8d25e6ed56cf7876d05d25c36e1e153c22f.tar.gz
freebsd-ports-gnome-d420b8d25e6ed56cf7876d05d25c36e1e153c22f.tar.zst
freebsd-ports-gnome-d420b8d25e6ed56cf7876d05d25c36e1e153c22f.zip
Provide a cleaner looking do-build target.
PR: 20902 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'math')
-rw-r--r--math/physcalc/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/math/physcalc/Makefile b/math/physcalc/Makefile
index 72f07313d466..9df14485bb94 100644
--- a/math/physcalc/Makefile
+++ b/math/physcalc/Makefile
@@ -10,27 +10,24 @@ PORTVERSION= 2.4
CATEGORIES= math
MASTER_SITES= ftp://ftp.lightlink.com/pub/vulcan/
DISTNAME= ${PORTNAME}
-EXTRACT_SUFX= .zip
MAINTAINER= ports@FreeBSD.org
-USE_ZIP= yes
+EXTRACT_BEFORE_ARGS= -aq
+EXTRACT_AFTER_ARGS= -x physcalc -d ${WRKDIR}
+
NO_WRKSUBDIR= yes
+USE_ZIP= yes
-pre-patch:
-.for FILE in compiler.h physcalc.h physconv.c physdecl.h physmain.c physmlib.c \
- physnode.c physoper.c physsolv.c
- @${MV} ${WRKSRC}/${FILE} ${WRKSRC}/${FILE}.sed
- ${SED} -e 's, ,,g' ${WRKSRC}/${FILE}.sed > ${WRKSRC}/${FILE} ; ${RM} ${WRKSRC}/${FILE}.sed
-.endfor
+DEFS= -DSHAREDIR="\"${PREFIX}/share/physcalc/\""
+SRCS= physconv.c physmain.c physmlib.c physnode.c physoper.c \
+ physsolv.c
pre-build:
${PERL} -pi -e "s@void main@int main@g" ${WRKSRC}/physmain.c
- ${RM} -f ${WRKSRC}/physcalc
do-build:
- (cd ${WRKSRC} && ${CC} ${CFLAGS} -DSHAREDIR="\"${PREFIX}/share/physcalc/\"" -lm \
- physmain.c physconv.c physmlib.c physnode.c physoper.c physsolv.c -o physcalc)
+ (cd ${WRKSRC} && ${CC} ${CFLAGS} ${DEFS} ${SRCS} -lm -o physcalc)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/physcalc ${PREFIX}/bin