2012-02-20 13:25:47 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.80 2012/02/20 18:25:47 sthen Exp $
|
1999-10-26 10:20:07 -04:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= pager/text-based web browser
|
2001-03-30 12:19:08 -05:00
|
|
|
|
2011-03-12 18:20:16 -05:00
|
|
|
DISTNAME= w3m-0.5.3
|
2012-02-20 13:25:47 -05:00
|
|
|
REVISION= 1
|
2001-03-24 07:56:14 -05:00
|
|
|
CATEGORIES= www
|
2001-11-16 16:35:44 -05:00
|
|
|
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
|
|
|
|
2002-08-28 08:38:15 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=w3m/}
|
2001-03-24 07:56:14 -05:00
|
|
|
|
2004-08-10 04:46:49 -04:00
|
|
|
MODULES= devel/gettext
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS= devel/boehm-gc
|
2002-08-28 08:38:15 -04:00
|
|
|
|
2004-06-26 00:57:35 -04:00
|
|
|
FLAVORS= image japanese
|
2001-11-16 16:35:44 -05:00
|
|
|
FLAVOR?=
|
2001-07-31 11:27:08 -04:00
|
|
|
|
2004-06-26 00:57:35 -04:00
|
|
|
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
|
|
|
|
2001-11-16 21:36:40 -05:00
|
|
|
NO_REGRESS= Yes
|
2011-03-12 18:20:16 -05:00
|
|
|
USE_GROFF= Yes
|
2000-08-24 22:24:10 -04:00
|
|
|
|
2002-01-20 17:17:51 -05:00
|
|
|
.if ${FLAVOR:L:Mimage}
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= x11/gtk+2
|
2007-07-18 13:29:46 -04:00
|
|
|
CONFIGURE_ARGS+=--with-imagelib=gtk2
|
2012-02-20 13:25:47 -05:00
|
|
|
WANTLIB += GL X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
|
|
|
|
WANTLIB += Xrandr Xrender atk-1.0 cairo expat fontconfig freetype
|
|
|
|
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gdk_pixbuf_xlib-2.0 gio-2.0
|
|
|
|
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0
|
|
|
|
WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png
|
|
|
|
WANTLIB += pthread-stubs xcb xcb-render xcb-shm
|
2004-06-26 00:57:35 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-image=no
|
2002-01-20 17:17:51 -05:00
|
|
|
.endif
|
|
|
|
|
2001-11-16 16:35:44 -05:00
|
|
|
.if ${FLAVOR:L:Mjapanese}
|
2002-02-04 10:05:32 -05:00
|
|
|
FULLPKGNAME= ja-${PKGNAME}${FLAVOR_EXT:S/-japanese//}
|
2001-07-31 11:27:08 -04:00
|
|
|
CATEGORIES+= japanese
|
2004-06-26 00:57:35 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-japanese=E
|
2001-07-31 11:27:08 -04:00
|
|
|
DOCSRC= ${WRKSRC}/doc-jp
|
2000-07-14 13:50:13 -04:00
|
|
|
.else
|
2004-06-26 00:57:35 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-m17n=ISO-8859-1
|
2001-07-31 11:27:08 -04:00
|
|
|
DOCSRC= ${WRKSRC}/doc
|
2002-02-04 10:05:32 -05:00
|
|
|
.endif
|
2001-03-24 07:56:14 -05:00
|
|
|
|
2000-07-09 20:17:55 -04:00
|
|
|
post-install:
|
2000-02-15 13:59:02 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/w3m
|
2011-03-12 18:20:16 -05:00
|
|
|
cd ${DOCSRC}; \
|
|
|
|
find . -type f \! \( -name w3m.1 -or -path "*/CVS/*" \) -print0 | \
|
|
|
|
xargs -0r -J % ${INSTALL_DATA} % ${PREFIX}/share/doc/w3m
|
2001-11-16 16:35:44 -05:00
|
|
|
|
1999-10-26 10:20:07 -04:00
|
|
|
.include <bsd.port.mk>
|