openbsd-ports/x11/xscreensaver/Makefile

63 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.29 2005/06/03 05:38:32 marcm Exp $
COMMENT= "screen saver and locker for the X Window System"
VERSION= 4.21
DISTNAME= xscreensaver-${VERSION}
CATEGORIES= x11
HOMEPAGE= http://www.jwz.org/xscreensaver/
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= GL GLU ICE SM X11 Xext Xinerama Xmu Xrandr Xrender \
Xt Xxf86misc Xxf86vm c jpeg m pthread util z \
Xft atk-1.0.0.0 fontconfig freetype Xpm \
gdk-x11-2.0.0.0 gdk_pixbuf-2.0.0.0 glib-2.0.0.0 \
gmodule-2.0.0.0 gobject-2.0.0.0 gtk-x11-2.0.0.0 \
pango-1.0.0.0 pangox-1.0.0.0 pangoxft-1.0.0.0
MASTER_SITES= http://www.jwz.org/xscreensaver/
2004-08-10 07:16:43 -04:00
MODULES= devel/gettext
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gdk_pixbuf_xlib-2.0.0.0::x11/gtk+2 \
glade-2.0.0.0::devel/libglade2 \
xml2.6::textproc/libxml
USE_X11= Yes
2002-06-25 22:36:03 -04:00
USE_GMAKE= Yes
NO_REGRESS= Yes
CONFIGURE_STYLE= gnu
2002-01-26 18:59:49 -05:00
CONFIGURE_ARGS+= --with-hackdir="${PREFIX}/libexec/xscreensaver"
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
# License issues with graphics/gle necessitate this
FLAVORS= no_gle
FLAVOR?= no_gle
.if !${FLAVOR:L:Mno_gle}
LIB_DEPENDS+= gle.3::graphics/gle
CONFIGURE_ARGS+= --with-gle
.else
CONFIGURE_ARGS+= --without-gle
.endif
post-install:
# rename deco to xdeco, so it doesn't conflict with misc/deco
@mv ${PREFIX}/man/man1/deco.1 ${PREFIX}/man/man1/xdeco.1
@mv ${PREFIX}/libexec/xscreensaver/deco \
${PREFIX}/libexec/xscreensaver/xdeco
@mv ${PREFIX}/share/xscreensaver/config/deco.xml \
${PREFIX}/share/xscreensaver/config/xdeco.xml
.include <bsd.port.mk>