2013-07-05 15:29:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.104 2013/07/05 13:29:43 ryoon Exp $
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2013-05-21 16:38:40 +02:00
|
|
|
DISTNAME= WindowMaker-0.95.4
|
2004-11-05 12:51:35 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/WindowMaker/windowmaker/}
|
2013-07-05 15:29:28 +02:00
|
|
|
PKGREVISION= 5
|
2004-11-05 12:51:35 +01:00
|
|
|
CATEGORIES= x11 wm windowmaker
|
2013-05-21 16:38:40 +02:00
|
|
|
MASTER_SITES= http://windowmaker.info/pub/source/release/
|
|
|
|
EXTRACT_SUFX= .tar.gz
|
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
|
|
|
|
2013-05-30 17:18:28 +02:00
|
|
|
USE_TOOLS+= msgfmt pkg-config xgettext
|
2005-07-08 11:47:02 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-usermenu
|
2009-05-19 12:52:33 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-xinerama
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
|
|
|
|
CONFIGURE_ARGS+= --with-gnustepdir=${PREFIX}/share/GNUstep
|
|
|
|
CONFIGURE_ARGS+= --with-nlsdir=${PREFIX}/${PKGLOCALEDIR}/locale
|
2013-05-21 16:38:40 +02:00
|
|
|
CONFIGURE_ENV+= LINGUAS="bg ca cs cz da de el es et fi fr gl he hr hu it ja ko nl ms no pl pt ro ru se sk sl sv tr zh_CN zh_TW"
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= CPP_PATH=${CPP:Q}
|
2011-03-27 18:50:49 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2006-03-11 00:04:46 +01:00
|
|
|
REPLACE_PERL+= util/wkdemenu.pl
|
2000-12-12 03:03:46 +01:00
|
|
|
|
2009-05-19 12:52:33 +02:00
|
|
|
INSTALLATION_DIRS= share/WindowMaker/SoundSets
|
|
|
|
INSTALLATION_DIRS+= share/WindowMaker/Sounds
|
|
|
|
INSTALLATION_DIRS+= share/doc/WindowMaker
|
|
|
|
|
2006-06-29 18:23:08 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2011-05-15 12:28:51 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MSunOS-5.11-*)
|
|
|
|
CONFIGURE_ENV+= ac_cv_lib_Xext_XineramaGetInfo=no
|
|
|
|
.endif
|
|
|
|
|
2007-06-21 02:58:04 +02:00
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
2006-06-29 18:23:08 +02:00
|
|
|
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
|
2009-05-19 12:52:33 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
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:
|
|
|
|
#
|
2004-11-05 12:51:35 +01:00
|
|
|
# vdesktop enable support for virtual desktop.
|
|
|
|
|
2013-05-21 16:38:40 +02:00
|
|
|
WINDOWMAKER_OPTIONS?= 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}
|
2009-05-19 12:52:33 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-${option}
|
2000-12-12 03:03:46 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-extract:
|
2009-05-19 12:52:33 +02:00
|
|
|
${RM} -f ${WRKSRC}/WindowMaker/Defaults/WMState \
|
|
|
|
${WRKSRC}/WindowMaker/Defaults/WMWindowAttributes \
|
|
|
|
${WRKSRC}/WindowMaker/Defaults/WindowMaker \
|
|
|
|
${WRKSRC}/po/zh_TW.Big5.po
|
2006-03-11 00:04:46 +01:00
|
|
|
set -e; \
|
2009-05-19 12:52:33 +02:00
|
|
|
for manfile in ${WRKSRC}/doc/*.1x ${WRKSRC}/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; \
|
2009-05-19 12:52:33 +02:00
|
|
|
cd ${WRKSRC} && \
|
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:
|
2009-05-19 12:52:33 +02:00
|
|
|
${TOUCH} ${DESTDIR}${PREFIX}/share/WindowMaker/SoundSets/.directory
|
|
|
|
${TOUCH} ${DESTDIR}${PREFIX}/share/WindowMaker/Sounds/.directory
|
|
|
|
cd ${WRKSRC} && \
|
2006-03-11 00:04:46 +01:00
|
|
|
${INSTALL_DATA} \
|
2004-11-05 12:51:35 +01:00
|
|
|
README README.definable-cursor FAQ FAQ.I18N \
|
2009-05-19 12:52:33 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/WindowMaker
|
2007-02-03 03:59:22 +01:00
|
|
|
|
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"
|
2011-03-09 17:40:44 +01:00
|
|
|
.include "../../mk/giflib.buildlink3.mk"
|
2010-12-23 12:44:24 +01:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2004-02-25 20:02:39 +01:00
|
|
|
.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"
|
2013-05-21 16:38:40 +02:00
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2009-05-19 12:52:33 +02:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
2007-02-03 03:59:22 +01:00
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2000-12-12 03:03:46 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|