2007-02-03 03:59:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.74 2007/02/03 02:59:22 joerg Exp $
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2005-07-08 11:47:02 +02:00
|
|
|
DISTNAME= WindowMaker-0.92.0
|
2004-11-05 12:51:35 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/WindowMaker/windowmaker/}
|
2006-04-17 15:45:57 +02:00
|
|
|
PKGREVISION= 7
|
2004-11-05 12:51:35 +01:00
|
|
|
CATEGORIES= x11 wm windowmaker
|
2006-05-30 21:49:24 +02:00
|
|
|
MASTER_SITES= ftp://ftp.windowmaker.info/pub/source/release/ \
|
|
|
|
ftp://ftp.ics.es.osaka-u.ac.jp/mirrors/WindowMaker/source/release/ \
|
|
|
|
http://windowmaker.info/pub/source/release/
|
2004-11-05 12:51:35 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-05-30 21:49:24 +02:00
|
|
|
HOMEPAGE= http://www.windowmaker.info/
|
2004-11-05 12:51:35 +01:00
|
|
|
COMMENT= GNUStep-compliant NEXTSTEP(tm) window manager clone
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2006-02-22 17:12:55 +01:00
|
|
|
BROKEN_GETTEXT_DETECTION= yes
|
2001-08-30 00:41:00 +02:00
|
|
|
|
2006-04-13 20:23:29 +02:00
|
|
|
USE_TOOLS+= msgfmt
|
2005-07-08 11:47:02 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-usermenu
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
|
2006-03-11 00:04:46 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gnustepdir=${PREFIX:Q}/share/GNUstep
|
|
|
|
CONFIGURE_ARGS+= --with-nlsdir=${PREFIX:Q}/${PKGLOCALEDIR:Q}/locale
|
2000-12-12 03:03:46 +01:00
|
|
|
CONFIGURE_ENV+= LINGUAS=yes
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= CPP_PATH=${CPP:Q}
|
2006-03-11 00:04:46 +01:00
|
|
|
REPLACE_PERL+= util/wkdemenu.pl
|
2000-12-12 03:03:46 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
|
2006-06-29 18:23:08 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} != "i386" || !empty(CC_VERSION:Mgcc-4.1.*)
|
|
|
|
CONFIGURE_ENV+= ac_cv_c_inline_asm=no
|
|
|
|
.endif
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2003-09-17 21:39:58 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 3.0
|
2003-09-17 21:39:58 +02:00
|
|
|
.endif
|
|
|
|
|
2003-01-08 20:56:34 +01:00
|
|
|
PKG_SYSCONFSUBDIR= WindowMaker
|
|
|
|
EGDIR= ${PREFIX}/share/examples/WindowMaker
|
|
|
|
CONF_FILES=
|
|
|
|
.for f in WMGLOBAL WMRootMenu WMState WMWindowAttributes WindowMaker
|
2006-03-11 00:04:46 +01:00
|
|
|
CONF_FILES+= ${EGDIR:Q}/${f:Q} ${PKG_SYSCONFDIR:Q}/${f:Q}
|
2003-01-08 20:56:34 +01:00
|
|
|
.endfor
|
|
|
|
|
2000-12-12 03:03:46 +01:00
|
|
|
# WINDOWMAKER_OPTIONS is a space-separated list of compile-time options
|
|
|
|
# to support. Currently supported options:
|
|
|
|
#
|
|
|
|
# kde enable support for kde/kwm window manager hints
|
|
|
|
# gnome enable support for GNOME window manager hints
|
|
|
|
# openlook enable support for OPEN LOOK(tm) window manager hints
|
2004-11-05 12:51:35 +01:00
|
|
|
# vdesktop enable support for virtual desktop.
|
|
|
|
|
|
|
|
WINDOWMAKER_OPTIONS?= gnome kde openlook vdesktop
|
2000-12-12 03:03:46 +01:00
|
|
|
|
|
|
|
BUILD_DEFS+= WINDOWMAKER_OPTIONS
|
|
|
|
|
2006-03-11 00:04:46 +01:00
|
|
|
.for option in ${WINDOWMAKER_OPTIONS}
|
|
|
|
CONFIGURE_ARGS+= --enable-${option:Q}
|
2000-12-12 03:03:46 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-extract:
|
2006-03-11 00:04:46 +01:00
|
|
|
${RM} -f ${WRKSRC:Q}/WindowMaker/Defaults/WMState \
|
|
|
|
${WRKSRC:Q}/WindowMaker/Defaults/WMWindowAttributes \
|
|
|
|
${WRKSRC:Q}/WindowMaker/Defaults/WindowMaker \
|
|
|
|
${WRKSRC:Q}/po/zh_TW.Big5.po
|
|
|
|
set -e; \
|
|
|
|
for manfile in ${WRKSRC:Q}/doc/*.1x ${WRKSRC:Q}/doc/*/*.1x; \
|
2000-12-12 03:03:46 +01:00
|
|
|
do \
|
2006-03-11 00:04:46 +01:00
|
|
|
${MV} "$$manfile" `${ECHO} "$$manfile" | ${SED} "s/1x$$/1/"`; \
|
2000-12-12 03:03:46 +01:00
|
|
|
done;
|
2006-03-11 00:04:46 +01:00
|
|
|
set -e; \
|
|
|
|
cd ${WRKSRC:Q} && \
|
2001-02-28 17:44:39 +01:00
|
|
|
for f in WINGs/wapplication.c WindowMaker/Defaults/WindowMaker.in \
|
|
|
|
WPrefs.app/Paths.c WindowMaker/menu* WindowMaker/plmenu*; do \
|
2005-09-27 15:48:07 +02:00
|
|
|
${SED} -e "s|/usr/local|${PREFIX}|g" \
|
|
|
|
-e "s|${PREFIX}/GNUstep|${PREFIX}/share/GNUstep|g" \
|
2006-03-11 00:04:46 +01:00
|
|
|
"$$f" > "$$f".new && \
|
|
|
|
${MV} "$$f".new "$$f"; \
|
2001-02-28 17:44:39 +01:00
|
|
|
done
|
2000-12-12 03:03:46 +01:00
|
|
|
|
|
|
|
post-install:
|
2006-03-11 00:04:46 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/WindowMaker/SoundSets
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/WindowMaker/Sounds
|
|
|
|
${TOUCH} ${PREFIX:Q}/share/WindowMaker/SoundSets/.directory
|
|
|
|
${TOUCH} ${PREFIX:Q}/share/WindowMaker/Sounds/.directory
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/doc/WindowMaker
|
|
|
|
cd ${WRKSRC:Q} && \
|
|
|
|
${INSTALL_DATA} \
|
2004-11-05 12:51:35 +01:00
|
|
|
README README.definable-cursor FAQ FAQ.I18N \
|
2006-03-11 00:04:46 +01:00
|
|
|
${PREFIX:Q}/share/doc/WindowMaker
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2007-02-03 03:59:22 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
|
2005-04-17 00:55:22 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2004-02-25 20:02:39 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../graphics/libungif/buildlink3.mk"
|
|
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
2007-02-03 03:59:22 +01:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
2007-02-01 23:30:48 +01:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXft/buildlink3.mk"
|
2007-02-03 03:59:22 +01:00
|
|
|
.include "../../x11/libXinerama/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2007-02-03 03:59:22 +01:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2007-02-01 23:30:48 +01:00
|
|
|
.include "../../x11/xextproto/buildlink3.mk"
|
2000-12-12 03:03:46 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|