openbsd-ports/textproc/urlview/Makefile

44 lines
981 B
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.21 2013/03/11 11:42:47 espie Exp $
COMMENT= curses-based URL ripper
DISTNAME= urlview-0.9
2011-11-03 16:13:20 -04:00
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
2011-11-03 16:13:20 -04:00
WANTLIB= c
CONFIGURE_STYLE= gnu
2010-10-19 03:54:21 -04:00
USE_GROFF = Yes
2013-03-11 07:35:43 -04:00
NO_TEST= Yes
2001-11-10 10:44:57 -05:00
FLAVORS= slang
FLAVOR?=
.if ${FLAVOR:Mslang}
2011-05-04 10:00:13 -04:00
WANTLIB+= slang curses m
2010-11-20 14:56:47 -05:00
LIB_DEPENDS= devel/libslang
CONFIGURE_ARGS= --with-slang=${LOCALBASE}
CONFIGURE_ENV= LIBS=-lcurses
2011-11-03 16:13:20 -04:00
.else
WANTLIB+= ncurses
.endif
2003-09-23 11:49:49 -04:00
pre-build:
${SUBST_CMD} ${WRKSRC}/urlview.c
@perl -pi -e "s,/etc,${SYSCONFDIR},g" ${WRKSRC}/urlview.man
2003-09-23 11:49:49 -04:00
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>