2014-06-24 08:28:02 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2014/06/24 06:28:02 dholland Exp $
|
2003-05-15 13:19:39 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= golem-0.0.5
|
2014-06-24 08:28:02 +02:00
|
|
|
PKGREVISION= 6
|
2003-05-15 13:19:39 +02:00
|
|
|
CATEGORIES= wm
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=golem/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-05-15 13:19:39 +02:00
|
|
|
HOMEPAGE= http://golem.sourceforge.net/
|
|
|
|
COMMENT= Fast and lightweight yet customizable window manager
|
|
|
|
|
2007-11-17 13:04:11 +01:00
|
|
|
USE_TOOLS+= gmake yacc lex
|
2003-05-15 13:19:39 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
|
2005-10-24 01:16:52 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-i18n
|
2003-05-15 13:19:39 +02:00
|
|
|
|
2007-06-15 19:43:40 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${X11_TYPE} != "native" || exists(${X11BASE}/include/X11/extensions/Xinerama.h)
|
2003-05-15 13:19:39 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-xinerama
|
2007-06-15 19:43:40 +02:00
|
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
2003-05-15 13:19:39 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-02 20:10:33 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.golem
|
|
|
|
PKG_SUPPORTED_OPTIONS= esound
|
2003-05-15 13:19:39 +02:00
|
|
|
|
2005-06-02 20:10:33 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST_VARS+= esound
|
2005-06-02 20:10:33 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mesound)
|
2003-05-15 13:19:39 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-sound
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.esound= yes
|
2004-03-10 15:12:50 +01:00
|
|
|
.include "../../audio/esound/buildlink3.mk"
|
2003-05-15 13:19:39 +02:00
|
|
|
.endif
|
|
|
|
|
2005-02-17 04:00:33 +01:00
|
|
|
CFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
|
2003-05-15 13:19:39 +02:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/golem
|
|
|
|
CONF_FILES= ${EGDIR}/golemrc.default ${PKG_SYSCONFDIR}/golemrc
|
|
|
|
|
2006-01-06 17:21:53 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= sample.golem/golemrc
|
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2003-05-15 13:19:39 +02:00
|
|
|
|
2009-11-26 18:16:47 +01:00
|
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
|
|
|
|
mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
|
|
|
|
|
2003-05-15 13:19:39 +02:00
|
|
|
post-install:
|
2009-11-26 18:16:47 +01:00
|
|
|
${RM} -f ${DESTDIR}${PREFIX}/share/golem/golemrc*
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.golem/golemrc ${DESTDIR}${EGDIR}/golemrc.default
|
2003-05-15 13:19:39 +02:00
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2003-05-15 13:19:39 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|