Merge from vendor branch TNF:
[pkgsrc.git] / sysutils / xosview / Makefile
1 # $NetBSD: Makefile,v 1.28 2000/06/27 08:17:46 tron Exp $
2 #
3
4 DISTNAME=       xosview-1.7.0.b
5 CATEGORIES=     sysutils
6 MASTER_SITES=   http://www.ece.utexas.edu/~bgrayson/xosview/ \
7                 http://lore.ece.utexas.edu/~bgrayson/xosview/
8
9 MAINTAINER=     bgrayson@netbsd.org
10 HOMEPAGE=       http://lore.ece.utexas.edu/~bgrayson/xosview.html
11
12 HAS_CONFIGURE=  yes
13 CONFIGURE_ARGS+= --prefix=${PREFIX}
14 USE_X11BASE=    yes
15
16 .include "../../mk/bsd.prefs.mk"
17
18 .if ${OPSYS} == "NetBSD"
19 BUILD_DEFS=     UVM
20 .elif ${OPSYS} == "SunOS"
21 DEPENDS+=       xpm-*:../../graphics/xpm
22 BUILD_DEPENDS+= ${LOCALBASE}/egcs/bin/g++:../../lang/egcs
23 CONFIGURE_ENV+= CXX=${LOCALBASE}/egcs/bin/g++
24 CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include"
25 CONFIGURE_ENV+= LIBS="${LIBS} -lsocket -lnsl"
26 USE_GMAKE=      yes
27 .endif
28
29 .include "../../mk/bsd.pkg.mk"