1# $MirOS: src/gnu/usr.bin/lynx/Makefile.bsd-wrapper,v 1.47 2014/03/07 20:27:00 tg Exp $ 2# $OpenBSD: Makefile.bsd-wrapper,v 1.12 2003/05/01 18:59:36 avsm Exp $ 3 4MAN= lynx.1 5CLEANFILES= lynx.1 6FSFMAKEFILE= makefile 7FSFISLIB= No 8 9.include <bsd.own.mk> 10 11# MirOS patchlevel 12CPPFLAGS+= -DLYNX_VERSION=\"2.8.8dev.16-MirOS-0AB5.1\" 13 14CFARGS+= --prefix=/usr \ 15 --sysconfdir=/etc \ 16 --enable-echo \ 17 --enable-vertrace \ 18 --enable-warnings \ 19 --disable-nls \ 20 --disable-full-paths \ 21 --with-ssl \ 22 --without-gnutls \ 23 --without-socks \ 24 --without-socks5 \ 25 --without-pkg-config \ 26 --enable-ipv6 \ 27 --with-screen=ncursesw \ 28 --enable-widec \ 29 --enable-color-style \ 30 --disable-htmlized-cfg \ 31 --enable-locale-charset \ 32 --disable-sessions \ 33 --disable-session-cache \ 34 --enable-addrlist-page \ 35 --enable-cjk \ 36 --enable-japanese-utf8 \ 37 --enable-default-colors \ 38 --enable-kbd-layout \ 39 --enable-nested-tables \ 40 --enable-ascii-ctypes \ 41 --disable-idna \ 42 --enable-justify-elts \ 43 --enable-progressbar \ 44 --disable-scrollbar \ 45 --enable-charset-choice \ 46 --enable-externs \ 47 --enable-internal-links \ 48 --enable-nsl-fork \ 49 --enable-underlines \ 50 --without-bzlib \ 51 --with-zlib \ 52 --without-x \ 53 --disable-rpath-hack 54 55.if ${CROSS_MODE:L} == "yes" 56CFARGS+= --with-build-cc=${HOSTCC:Q} \ 57 --with-build-cflags=${HOSTCFLAGS:Q} 58.endif 59 60.ifdef DEBUG 61CPPFLAGS+= -DLYNX_DONT_CATCH_SIGBUS 62CPPFLAGS+= -DLYNX_DONT_CATCH_SIGSEGV 63CPPFLAGS+= -DLYNX_DONT_CATCH_SIGILL 64.endif 65 66# do not hardcode paths; do not scan for ports stuff 67# bzip2 is special and must always be disabled, otherwise 68# it tries to handle it internally as if linking with the 69# bzlib even if bzip2 isn’t there; setting the bzip2 path 70# in lynx.cfg doesn’t have this issue 71CFVARS+= ac_cv_path_TELNET=telnet \ 72 ac_cv_path_TN3270=tn3270 \ 73 ac_cv_path_RLOGIN=rlogin \ 74 ac_cv_path_MV=mv \ 75 ac_cv_path_GZIP=gzip \ 76 ac_cv_path_UNCOMPRESS=gunzip \ 77 ac_cv_path_UNZIP=unzip \ 78 ac_cv_path_BZIP2= \ 79 ac_cv_path_TAR=tar \ 80 ac_cv_path_COMPRESS=compress \ 81 ac_cv_path_RM=rm \ 82 ac_cv_path_UUDECODE=uudecode \ 83 ac_cv_path_ZCAT=zcat \ 84 ac_cv_path_ZIP=zip \ 85 ac_cv_path_PKG_CONFIG=none 86CFVARS+= YACC=yacc 87 88HTMLDIR= /usr/share/doc/html 89HTMLFILES= Lynx_users_guide.html about_lynx.html help_files.txt \ 90 lynx-dev.html lynx_help_main.html lynx_url_support.html \ 91 keystrokes/alt_edit_help.html \ 92 keystrokes/bashlike_edit_help.html \ 93 keystrokes/bookmark_help.html keystrokes/cookie_help.html \ 94 keystrokes/dired_help.html keystrokes/edit_help.html \ 95 keystrokes/environments.html keystrokes/follow_help.html \ 96 keystrokes/gopher_types_help.html \ 97 keystrokes/history_help.html keystrokes/keystroke_help.html \ 98 keystrokes/movement_help.html keystrokes/option_help.html \ 99 keystrokes/other_help.html keystrokes/print_help.html \ 100 keystrokes/scrolling_help.html keystrokes/test_display.html \ 101 keystrokes/visited_help.html keystrokes/xterm_help.html 102HTMLSAMPLES= blue-background.lss bright-blue.lss cernrules.txt home.htm \ 103 installdirs.html jumps.htm jumpsUnix.html keepviewer \ 104 lynx-keymaps lynx_bookmarks.htm lynxdump mailcap mime.types \ 105 mailto-form.pl midnight.lss mild-colors.lss opaque.lss 106HTMLTESTS= ALT88592.html ISO_LATIN1_test.html README.txt \ 107 TestComment.html bad-html.html c1.html cp-1252.html \ 108 cp-1252a.html iso-8859-1.html iso-8859-1a.html \ 109 iso-8859-2.html iso-8859-2a.html koi8-r.html quickbrown.html \ 110 raw8bit.html sgml.html spaces.html special_urls.html \ 111 tabtest.html tags.html test-styles.html unicode.html \ 112 utf-8-demo.html 113 114lynx.1: ${.CURDIR}/lynx.man 115 -cp ${.ALLSRC} $@ 116 117do-install: 118 ${INSTALL_PROGRAM} lynx ${DESTDIR}/usr/bin/lynx 119 ${INSTALL_SCRIPT} ${.CURDIR}/samples/oldlynx ${DESTDIR}/usr/bin/ 120 cd ${.CURDIR} && ${INSTALL_DOC} AUTHORS CHANGES README \ 121 ${DESTDIR}${HTMLDIR}/lynx_help/ 122.for _i in ${HTMLFILES} 123 ${INSTALL_DOC} ${.CURDIR}/lynx_help/${_i} \ 124 ${DESTDIR}${HTMLDIR}/lynx_help/${_i} 125.endfor 126.for _i in ${HTMLSAMPLES} 127 ${INSTALL_DOC} ${.CURDIR}/samples/${_i} \ 128 ${DESTDIR}${HTMLDIR}/lynx_help/samples/${_i} 129.endfor 130.for _i in ${HTMLTESTS} 131 ${INSTALL_DOC} ${.CURDIR}/test/${_i} \ 132 ${DESTDIR}${HTMLDIR}/lynx_help/test/${_i} 133.endfor 134 135distribution: 136 cd ${.CURDIR} && ${INSTALL_DATA} -g ${CONFGRP} \ 137 lynx.cfg samples/lynx.lss ${DESTDIR}/etc/ 138 139.include <bsd.cfwrap.mk> 140