Edit

IABSD.fr/ports/textproc/urlview/Makefile

Branch :

  • Show log

    Commit

  • Author : mestre
    Date : 2016-03-21 17:41:52
    Hash : fb9a514f
    Message : pledge(2) urlview: rpath: read config file tty: the interface it's based on curses so it needs to do operations on tty proc/exec: this is needed to actually launch the external program after selecting the link OK jca@ after his suggestions

  • textproc/urlview/Makefile
  • # $OpenBSD: Makefile,v 1.27 2016/03/21 17:41:52 mestre Exp $
    
    COMMENT=	curses-based URL ripper
    
    DISTNAME=	urlview-0.9
    REVISION=	7
    CATEGORIES=	textproc
    MASTER_SITES=	ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/contrib/ \
    		ftp://ftp.gbnet.net/pub/mutt-international/contrib/
    
    # GPLv2
    PERMIT_PACKAGE_CDROM=	Yes
    
    WANTLIB += c
    
    CONFIGURE_STYLE= gnu
    
    NO_TEST=	Yes
    
    # see patch-url_handler_sh
    RUN_DEPENDS=	devel/xdg-utils
    
    FLAVORS=	slang
    FLAVOR?=
    
    # uses pledge()
    .if ${FLAVOR:Mslang}
    WANTLIB+=	slang curses m
    LIB_DEPENDS=	devel/libslang
    CONFIGURE_ARGS=	--with-slang=${LOCALBASE}
    CONFIGURE_ENV=	LIBS=-lcurses
    .else
    WANTLIB+=	ncurses
    .endif
    
    pre-build:
    	${SUBST_CMD} ${WRKSRC}/{urlview.c,url_handler.sh}
    	@sed -i "s,/etc,${SYSCONFDIR},g" ${WRKSRC}/urlview.man
    
    post-install:
    	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/urlview
    	${INSTALL_DATA} ${WRKSRC}/sample.urlview ${WRKSRC}/url_handler.sh \
    	     ${PREFIX}/share/examples/urlview
    
    .include <bsd.port.mk>