diff options
author | krion <krion@FreeBSD.org> | 2003-10-28 17:01:44 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2003-10-28 17:01:44 +0800 |
commit | b0c07be4fb4d342b4dc322a383e94bee96a964c5 (patch) | |
tree | 5c9fc0659d1963bd935f3a7196981fbea88b9b7f /math/rascal/Makefile | |
parent | 3730dbdee31af8f11ab048c69e7d0e066674a8e5 (diff) | |
download | freebsd-ports-gnome-b0c07be4fb4d342b4dc322a383e94bee96a964c5.tar.gz freebsd-ports-gnome-b0c07be4fb4d342b4dc322a383e94bee96a964c5.tar.zst freebsd-ports-gnome-b0c07be4fb4d342b4dc322a383e94bee96a964c5.zip |
- Fix build on -current
- Utilize NOPORTDOCS
PR: 58223
Submitted by: Ports Fury
Diffstat (limited to 'math/rascal/Makefile')
-rw-r--r-- | math/rascal/Makefile | 54 |
1 files changed, 37 insertions, 17 deletions
diff --git a/math/rascal/Makefile b/math/rascal/Makefile index c6991f4aec80..4f125616e6b9 100644 --- a/math/rascal/Makefile +++ b/math/rascal/Makefile @@ -8,38 +8,58 @@ PORTNAME= rascal PORTVERSION= 0.3.2 -PORTREVISION= 1 +PORTREVISION= 1 CATEGORIES= math MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org -COMMENT= Rascal, the Advanced Scientific CALculator +COMMENT= The Advanced Scientific CALculator -BROKEN= Does not compile +WRKSRC= ${WRKDIR}/Rascal-${PORTVERSION} -USE_GETOPT_LONG=yes -USE_REINPLACE= yes +USE_GETOPT_LONG= yes USE_BISON= yes -#USE_GNOME= yes -WRKSRC= ${WRKDIR}/Rascal-${PORTVERSION} +WANT_GNOME= yes +USE_REINPLACE= yes USE_GMAKE= yes -#ALL_TARGET= rascal grascal +MAKE_ENV= CC="${CXX}" CFLAGS="${CXXFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" +ALL_TARGET= ${PROGRAMS} MAN1= rascal.1 +.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 + post-patch: - @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \ - s,g\+\+,${CXX},g ; \ - s,doc/,share/doc/,g ; \ - s,gnome-config,${GNOME_CONFIG},g ; \ - s,CC,CXX,g" ${WRKSRC}/Makefile -.for file in hoc.y rascal.1 - @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file} + @${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} .endfor do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/rascal ${PREFIX}/bin +.for file in ${PROGRAMS} + ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin +.endfor ${INSTALL_DATA} ${WRKSRC}/rascal.rc ${PREFIX}/etc ${INSTALL_MAN} ${WRKSRC}/rascal.1 ${MANPREFIX}/man/man1 .if !defined(NOPORTDOCS) @@ -50,4 +70,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/rascal_html/* ${DOCSDIR}/html .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |