openbsd-ports/textproc/urlview/Makefile
2013-03-11 11:35:43 +00:00

44 lines
981 B
Makefile

# $OpenBSD: Makefile,v 1.21 2013/03/11 11:42:47 espie Exp $
COMMENT= curses-based URL ripper
DISTNAME= urlview-0.9
REVISION= 4
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/contrib/ \
ftp://ftp.mutt.org/mutt/contrib/ \
ftp://ftp.gbnet.net/pub/mutt-international/contrib/ \
ftp://ftp.gwdg.de/pub/unix/mail/mutt/international/contrib/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c
CONFIGURE_STYLE= gnu
USE_GROFF = Yes
NO_TEST= Yes
FLAVORS= slang
FLAVOR?=
.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
@perl -pi -e "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>