diff options
Diffstat (limited to 'lang/newlisp/Makefile')
-rw-r--r-- | lang/newlisp/Makefile | 87 |
1 files changed, 51 insertions, 36 deletions
diff --git a/lang/newlisp/Makefile b/lang/newlisp/Makefile index 6e30319584e5..172ae2c0aebd 100644 --- a/lang/newlisp/Makefile +++ b/lang/newlisp/Makefile @@ -7,7 +7,7 @@ # PORTNAME= newlisp -PORTVERSION= 9.1.1 +PORTVERSION= 9.2.0 PORTREVISION= 0 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -19,24 +19,24 @@ COMMENT= LISP like scripting language HAS_CONFIGURE= yes ALL_TARGET= default +STRIP= #empty -TK_VER= 8.5 -MAN1= newlisp.1 +MAN1= newlisp.1 newlispdoc.1 REINPLACE_ARGS= -i "" MODULES= cgi ftp infix odbc pop3 postscript smtp stat unix \ xmlrpc-client zlib -PORTDOCS= CHANGES CodePatterns.html MemoryManagement.html \ - keywords.txt manual_frame.html newLISPdoc.html \ - newlisp_index.html newlisp_manual.html +DOCS= CHANGES CodePatterns.html newLISP-9.2-Release.html \ + manual_frame.html newLISPdoc.html \ + newlisp_index.html newlisp_manual.html \ -OPTIONS= TK "Build with TK support" off \ - GMP "Enable GMP math library support" off \ +OPTIONS= GMP "Enable GMP math library support" off \ MYSQL4 "Build with mysql4 support" off \ MYSQL5 "Build with mysql5 support" off \ - SQLITE "Build with sqlite support" off + SQLITE "Build with sqlite support" off \ + GUISERV "Install GUI server (in JAVA)" off .include <bsd.port.pre.mk> @@ -44,14 +44,6 @@ OPTIONS= TK "Build with TK support" off \ IGNORE= you should select only one MySQL version .endif -.if defined(WITH_TK) -RUN_DEPENDS+= wish${TK_VER}:${PORTSDIR}/x11-toolkits/tk${TK_VER:S,.,,g} -MAN1+= newlisp-tk.1 -PLIST_SUB+= TK="" -.else -PLIST_SUB+= TK="@comment " -.endif - .if defined(WITH_GMP) LIB_DEPENDS+= gmp.7:${PORTSDIR}/math/libgmp4 MODULES+= gmp @@ -86,6 +78,12 @@ PLIST_SUB+= SQLITE="" PLIST_SUB+= SQLITE="@comment " .endif +.if defined(WITH_GUISERV) +PLIST_SUB+= GUISERV="" +.else +PLIST_SUB+= GUISERV="@comment " +.endif + post-patch: @${REINPLACE_CMD} -E -e "s,install -m 644, \$${BSD_INSTALL_DATA},g" \ -e "s,install -m 755, \$${BSD_INSTALL_SCRIPT},g" \ @@ -94,17 +92,16 @@ post-patch: ${WRKSRC}/Makefile @${REINPLACE_CMD} -E \ - -e "s,/usr/bin/newlisp,${PREFIX}/bin/newlisp,g" \ - -e "s,/usr/share/newlisp,${DATADIR},g" \ - -e "s,/usr/lib/newlisp.so,${PREFIX}/lib/newlisp.so,g" \ - -e "s,exec wish,exec wish${TK_VER}," \ + -e "s,/usr/(local/)?bin/newlisp,${PREFIX}/bin/newlisp,g" \ + -e "s,/usr/(local/)?share/newlisp,${DATADIR},g" \ + -e "s,/usr/(local/)?lib/newlisp.so,${PREFIX}/lib/newlisp.so,g"\ -e "s,/usr/bin,${PREFIX}/bin,g" \ + -e "s,/usr/local/bin/vi,/usr/bin/vi,g" \ ${WRKSRC}/examples/* \ ${WRKSRC}/doc/* \ + ${WRKSRC}/guiserver/*.lsp \ ${WRKSRC}/modules/* \ - ${WRKSRC}/init.lsp.example \ - ${WRKSRC}/newlisp.c \ - ${WRKSRC}/newlisp-tk/newlisp-tk.tcl + ${WRKSRC}/newlisp.c @${REINPLACE_CMD} -E -e \ "s,/usr/lib/(libmysqlclient.so.)14,${LOCALBASE}/lib/mysql/\1${MYSQL${MYSQL_VER}_LIBVER}," \ @@ -121,19 +118,31 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/newlisp ${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/util/newlispdoc ${PREFIX}/bin/ - ${MKDIR} ${DATADIR}/ - ${INSTALL_DATA} ${MODULES:S,^,${WRKSRC}/modules/,:S,$,.lsp,} ${DATADIR}/ + ${MKDIR} ${DATADIR}/util/ + ${INSTALL_DATA} ${WRKSRC}/util/syntax.cgi \ + ${WRKSRC}/util/newlisp.vim \ + ${WRKSRC}/util/link.lsp \ + ${WRKSRC}/util/httpd-conf.lsp \ + ${DATADIR}/util/ - ${INSTALL_MAN} ${WRKSRC}/doc/newlisp.1 ${PREFIX}/man/man1/ + ${MKDIR} ${DATADIR}/modules/ + ${INSTALL_DATA} ${MODULES:S,^,${WRKSRC}/modules/,:S,$,.lsp,} \ + ${DATADIR}/modules/ -.if defined(WITH_TK) - ${INSTALL_SCRIPT} ${WRKSRC}/newlisp-tk/newlisp-tk.tcl \ - ${PREFIX}/bin/newlisp-tk - ${MKDIR} ${DATADIR}/newlisp-tk/ - @(cd ${WRKSRC}/newlisp-tk && \ - ${COPYTREE_SHARE} \* ${DATADIR}/newlisp-tk/) - ${INSTALL_MAN} ${WRKSRC}/doc/newlisp-tk.1 ${PREFIX}/man/man1/ + ${INSTALL_MAN} ${WRKSRC}/doc/newlisp.1 ${PREFIX}/man/man1/ + ${INSTALL_MAN} ${WRKSRC}/doc/newlispdoc.1 ${PREFIX}/man/man1/ + +.if defined(WITH_GUISERV) + ${MKDIR} ${DATADIR}/guiserver + @(cd ${WRKSRC}/guiserver/ && ${COPYTREE_SHARE} \*.lsp \ + ${DATADIR}/guiserver/ \ + "! -name guiserver.lsp ! -name newlisp-edit.lsp") + ${INSTALL_DATA} ${WRKSRC}/guiserver/guiserver.jar ${DATADIR}/ + ${INSTALL_DATA} ${WRKSRC}/guiserver/guiserver.lsp ${DATADIR}/ + ${INSTALL_PROGRAM} ${WRKSRC}/guiserver/newlisp-edit.lsp \ + ${PREFIX}/bin/newlisp-edit .endif .if !defined(NOPORTDOCS) @@ -141,9 +150,15 @@ do-install: ${MKDIR} ${EXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}/ - ${INSTALL_DATA} ${WRKSRC}/init.lsp.example ${EXAMPLESDIR}/ - ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/ + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/ + +. if defined(WITH_GUISERV) + ${MKDIR} ${DOCSDIR}/guiserver + ${INSTALL_DATA} ${WRKSRC}/guiserver/index.html \ + ${WRKSRC}/guiserver/guiserver.lsp.html \ + ${DOCSDIR}/guiserver/ +. endif .endif .include <bsd.port.post.mk> |