2004-03-17 20:36:59 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.73 2004/03/17 19:36:59 wiz Exp $
|
2000-06-03 21:07:29 +02:00
|
|
|
#
|
|
|
|
|
2003-12-13 20:22:12 +01:00
|
|
|
DISTNAME= xscreensaver-4.14
|
2000-08-01 12:46:33 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ${HOMEPAGE} \
|
|
|
|
ftp://ftp.fu-berlin.de/unix/X11/graphics/xscreensaver/
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2003-09-08 14:15:41 +02:00
|
|
|
MAINTAINER= wiz@NetBSD.org
|
2000-08-01 12:46:33 +02:00
|
|
|
HOMEPAGE= http://www.jwz.org/xscreensaver/
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2003-12-28 13:47:09 +01:00
|
|
|
BUILD_USES_MSGFMT= yes
|
|
|
|
|
2003-01-10 09:00:02 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2003-02-11 12:24:09 +01:00
|
|
|
USE_X11BASE= yes
|
2004-01-27 19:56:23 +01:00
|
|
|
USE_PERL5= build
|
2000-06-03 21:07:29 +02:00
|
|
|
|
2000-08-01 12:46:33 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-02-09 22:12:56 +01:00
|
|
|
CONFIGURE_ARGS+= --with-hackdir=${PREFIX}/libexec/xscreensaver
|
2002-04-10 00:50:02 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gl
|
|
|
|
CONFIGURE_ARGS+= --with-gle
|
2002-08-25 23:50:52 +02:00
|
|
|
CONFIGURE_ARGS+= --with-jpeg=${BUILDLINK_PREFIX.jpeg}
|
2002-04-10 00:50:02 +02:00
|
|
|
CONFIGURE_ARGS+= --with-zippy=/usr/games/fortune
|
|
|
|
|
2000-08-01 12:46:33 +02:00
|
|
|
CONFIGURE_ARGS+= --without-motif
|
|
|
|
CONFIGURE_ARGS+= --without-shadow
|
2003-12-27 19:43:13 +01:00
|
|
|
CONFIGURE_ARGS+= --without-pam
|
2002-04-10 00:50:02 +02:00
|
|
|
|
2001-02-08 06:57:52 +01:00
|
|
|
CONFIGURE_ENV+= X_PRE_LIBS=-lXt
|
2002-04-10 00:50:02 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_x_app_defaults="${PREFIX}/lib/X11/app-defaults"
|
|
|
|
CONFIGURE_ENV+= PERL="${PERL5}" ac_cv_perl_version="${PERL_VERSION}"
|
2003-12-16 08:08:10 +01:00
|
|
|
CONFIGURE_ENV+= INTLTOOL_PERL="${PERL5}"
|
2003-12-18 14:49:17 +01:00
|
|
|
.if defined(PKGREVISION)
|
|
|
|
CONFIGURE_ENV+= X_CFLAGS="-DPKGREVISION=${PKGREVISION}"
|
|
|
|
.endif
|
2003-12-16 08:08:10 +01:00
|
|
|
CONFIGURE_ARGS+= ac_cv_path_INTLTOOL_PERL="${PERL5}"
|
2002-11-06 12:11:38 +01:00
|
|
|
MAKE_ENV+= KDEDIR=${PREFIX}
|
2000-08-01 12:46:33 +02:00
|
|
|
|
2003-12-13 20:22:12 +01:00
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../x11/xscreensaver/distinfo
|
|
|
|
FILESDIR= ${.CURDIR}/../../x11/xscreensaver/files
|
|
|
|
PATCHDIR= ${.CURDIR}/../../x11/xscreensaver/patches
|
2000-06-03 21:07:29 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-02-03 00:55:00 +01:00
|
|
|
.if ${OPSYS} == "FreeBSD"
|
|
|
|
PLIST_SUBST+= AVAILABLE="@comment "
|
2004-03-17 20:36:59 +01:00
|
|
|
CONFIGURE_ARGS+= --without-kerberos
|
2004-02-03 00:55:00 +01:00
|
|
|
.else
|
|
|
|
PLIST_SUBST+= AVAILABLE=
|
|
|
|
.endif
|
|
|
|
|
2002-04-10 00:50:02 +02:00
|
|
|
.ifndef (PERL_VERSION)
|
|
|
|
PERL_VERSION!= if [ -x ${PERL5} ]; then ${PERL5} -e 'print $$]'; else ${ECHO} "5.006"; fi
|
2004-02-06 20:04:24 +01:00
|
|
|
MAKEFLAGS+= PERL_VERSION=${PERL_VERSION}
|
2002-04-10 00:50:02 +02:00
|
|
|
.endif
|
|
|
|
|
2000-06-03 21:07:29 +02:00
|
|
|
.if (${OPSYS} == "NetBSD")
|
2002-08-29 11:51:08 +02:00
|
|
|
. if defined(KERBEROS)
|
2000-08-01 12:46:33 +02:00
|
|
|
CFLAGS+= -I/usr/include/kerberosIV
|
2002-08-29 11:51:08 +02:00
|
|
|
. else
|
2000-08-01 12:46:33 +02:00
|
|
|
CONFIGURE_ARGS+= --without-kerberos
|
2002-08-29 11:51:08 +02:00
|
|
|
. endif
|
2000-06-03 21:07:29 +02:00
|
|
|
.endif
|
|
|
|
|
2004-02-18 14:33:40 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
2003-12-19 19:21:03 +01:00
|
|
|
.if !empty(CC_VERSION:Mgcc*)
|
2003-11-14 15:58:15 +01:00
|
|
|
CFLAGS+= -fno-strict-aliasing
|
|
|
|
.endif
|
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2002-05-16 23:55:31 +02:00
|
|
|
.endif
|
|
|
|
|
2004-02-26 18:31:40 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../graphics/gle/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|