2001-04-09 16:58:35 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: rascal
|
|
|
|
# Date created: Apr 9, 2001
|
|
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rascal
|
2002-12-03 07:15:21 +00:00
|
|
|
PORTVERSION= 0.3.2
|
2003-10-28 09:01:44 +00:00
|
|
|
PORTREVISION= 1
|
2001-04-09 16:58:35 +00:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2001-05-24 19:01:28 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-10-28 09:01:44 +00:00
|
|
|
COMMENT= The Advanced Scientific CALculator
|
2001-05-24 19:01:28 +00:00
|
|
|
|
2003-10-28 09:01:44 +00:00
|
|
|
WRKSRC= ${WRKDIR}/Rascal-${PORTVERSION}
|
2003-08-07 09:15:53 +00:00
|
|
|
|
2003-10-28 09:01:44 +00:00
|
|
|
USE_GETOPT_LONG= yes
|
2001-04-09 16:58:35 +00:00
|
|
|
USE_BISON= yes
|
2003-10-28 09:01:44 +00:00
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_REINPLACE= yes
|
2001-04-09 16:58:35 +00:00
|
|
|
USE_GMAKE= yes
|
2003-10-28 09:01:44 +00:00
|
|
|
MAKE_ENV= CC="${CXX}" CFLAGS="${CXXFLAGS}" \
|
|
|
|
CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
ALL_TARGET= ${PROGRAMS}
|
2001-04-09 16:58:35 +00:00
|
|
|
|
2001-06-27 18:26:12 +00:00
|
|
|
MAN1= rascal.1
|
|
|
|
|
2003-10-28 09:01:44 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500018
|
|
|
|
BROKEN= "Requires readline 4.2 or newer"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${HAVE_GNOME:Mgnomelibs}!=""
|
|
|
|
PKGNAMESUFFIX= -gnome
|
|
|
|
USE_GNOME+= gnomelibs
|
|
|
|
PROGRAMS= rascal grascal
|
|
|
|
.else
|
|
|
|
PROGRAMS= rascal
|
|
|
|
.endif
|
|
|
|
|
2001-05-24 19:01:28 +00:00
|
|
|
post-patch:
|
2003-10-28 09:01:44 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^CC=|CC?=|g ; \
|
|
|
|
s|^CFLAGS=-|CFLAGS+=$${CPPFLAGS} -|g ; \
|
|
|
|
s|-O0 -fno-rtti -g||g ; \
|
|
|
|
s|^LIBS=-|LIBS+=$${LDFLAGS} -|g ; \
|
|
|
|
s|doc/|share/doc/|g ; \
|
|
|
|
s|g++|$${CC}|g ; \
|
|
|
|
s|-Os||g ; \
|
|
|
|
s|gnome-config|$${GNOME_CONFIG}|g' ${WRKSRC}/Makefile
|
|
|
|
.for file in hoc.y rascal.1 grascal.cpp
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${file}
|
2002-12-03 07:15:21 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2003-10-28 09:01:44 +00:00
|
|
|
.for file in ${PROGRAMS}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
|
|
|
|
.endfor
|
2002-12-03 07:15:21 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rascal.rc ${PREFIX}/etc
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/rascal.1 ${MANPREFIX}/man/man1
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
.for file in rascal.ps rascal.pdf CHANGES TEST TOOLBOXTEST
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/rascal_html/* ${DOCSDIR}/html
|
|
|
|
.endif
|
2001-04-09 16:58:35 +00:00
|
|
|
|
2003-10-28 09:01:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|