mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Provide a cleaner looking do-build target.
PR: 20902 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
This commit is contained in:
parent
18d3e9c571
commit
27c2b87c6f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32274
@ -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
|
||||
NO_WRKSUBDIR= yes
|
||||
EXTRACT_BEFORE_ARGS= -aq
|
||||
EXTRACT_AFTER_ARGS= -x physcalc -d ${WRKDIR}
|
||||
|
||||
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
|
||||
NO_WRKSUBDIR= yes
|
||||
USE_ZIP= yes
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user