openbsd-ports/www/w3m/Makefile

66 lines
1.6 KiB
Makefile
Raw Normal View History

2011-09-16 08:00:05 -04:00
# $OpenBSD: Makefile,v 1.79 2011/09/16 12:00:09 espie Exp $
1999-10-26 10:20:07 -04:00
COMMENT= pager/text-based web browser
DISTNAME= w3m-0.5.3
2011-09-16 08:00:05 -04:00
REVISION= 0
CATEGORIES= www
HOMEPAGE= http://w3m.sourceforge.net/
1999-10-26 10:20:07 -04:00
2003-10-18 15:44:41 -04:00
# BSD-like
2000-02-15 13:59:02 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
1999-10-26 10:20:07 -04:00
2010-11-22 05:16:08 -05:00
WANTLIB += c crypto curses gc>=3 m pthread ssl z
2010-11-11 07:35:09 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=w3m/}
2004-08-10 04:46:49 -04:00
MODULES= devel/gettext
2010-11-22 03:36:47 -05:00
LIB_DEPENDS= devel/boehm-gc
FLAVORS= image japanese
FLAVOR?=
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-xface \
--with-browser=/usr/bin/lynx \
--with-termlib=curses \
--with-gc=${LOCALBASE}
2001-12-20 17:36:10 -05:00
NO_REGRESS= Yes
USE_GROFF= Yes
.if ${FLAVOR:L:Mimage}
2010-11-22 03:36:47 -05:00
LIB_DEPENDS+= x11/gtk+2
CONFIGURE_ARGS+=--with-imagelib=gtk2
2010-11-11 07:35:09 -05:00
WANTLIB += X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama Xrandr
WANTLIB += Xrender atk-1.0 cairo expat fontconfig freetype glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 png Xcomposite Xdamage gio-2.0 pixman-1
WANTLIB += pthread-stubs xcb gdk_pixbuf-2.0 gdk_pixbuf_xlib-2.0
2010-11-22 03:36:47 -05:00
WANTLIB += gdk-x11-2.0>=1000 gtk-x11-2.0>=1000
WANTLIB += GL Xxf86vm drm gthread-2.0 xcb-render xcb-shm
.else
CONFIGURE_ARGS+=--enable-image=no
.endif
.if ${FLAVOR:L:Mjapanese}
2002-02-04 10:05:32 -05:00
FULLPKGNAME= ja-${PKGNAME}${FLAVOR_EXT:S/-japanese//}
CATEGORIES+= japanese
CONFIGURE_ARGS+=--enable-japanese=E
DOCSRC= ${WRKSRC}/doc-jp
.else
CONFIGURE_ARGS+=--enable-m17n=ISO-8859-1
DOCSRC= ${WRKSRC}/doc
2002-02-04 10:05:32 -05:00
.endif
post-install:
2000-02-15 13:59:02 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/w3m
cd ${DOCSRC}; \
find . -type f \! \( -name w3m.1 -or -path "*/CVS/*" \) -print0 | \
xargs -0r -J % ${INSTALL_DATA} % ${PREFIX}/share/doc/w3m
1999-10-26 10:20:07 -04:00
.include <bsd.port.mk>