1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/math/sc/Makefile
Johan van Selst 13a75b7eaa - Correct man page installation
- Bump PORTREVISION to be safe
2013-12-30 08:05:33 +00:00

31 lines
851 B
Makefile

# Created by: Heinz Tschabitscher
# $FreeBSD$
PORTNAME= sc
PORTVERSION= 7.16
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/financial/spreadsheet
MAINTAINER= johans@FreeBSD.org
COMMENT= Curses-based spreadsheet program
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e '/^prefix=/s,=.*,=$${PREFIX},' \
-e '/^CC=/s,=.*,=${CC},' \
-e '/^CFLAGS=/s,=.*,=-DSYSV3 ${CFLAGS} -O0,' \
-e '/^LIBDIR=/s,=.*,=$${DESTDIR}${DATADIR},' \
-e '/^MANDIR=/s,=,=$${DESTDIR},' \
-e '/^EXDIR=/s,=.*,=$${DESTDIR}${PREFIX}/bin,' \
-e '/^YACC=/s,=.*,=${YACC},' \
-e '/usr.bin.crypt/s,^# *,,' \
-e '/mkdir.*plugins/d' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's/^void/int/' ${WRKSRC}/crypt.c
@${REINPLACE_CMD} -e '/flag.val/s/.*/#undef is_cleared/' ${WRKSRC}/sc.h
.include <bsd.port.post.mk>