summaryrefslogtreecommitdiff
path: root/wm/fvwm/Makefile
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2006-07-02 09:21:57 +0000
committermartti <martti@pkgsrc.org>2006-07-02 09:21:57 +0000
commitfae1abe270a92fb1a4684eb3d8e9abf2866f7baf (patch)
tree2415020e7d93e6890cf9156420a2c60f8011487c /wm/fvwm/Makefile
parentd4e8cf20ab0a76cc530b5c2ff818757a2ab68b2e (diff)
downloadpkgsrc-fae1abe270a92fb1a4684eb3d8e9abf2866f7baf.tar.gz
Moved fvwm2 to fvwm.
Diffstat (limited to 'wm/fvwm/Makefile')
-rw-r--r--wm/fvwm/Makefile79
1 files changed, 79 insertions, 0 deletions
diff --git a/wm/fvwm/Makefile b/wm/fvwm/Makefile
new file mode 100644
index 00000000000..74a9f693cb8
--- /dev/null
+++ b/wm/fvwm/Makefile
@@ -0,0 +1,79 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/07/02 09:21:57 martti Exp $
+
+DISTNAME= fvwm-${FVWM_VER}
+PKGREVISION= 2
+CATEGORIES= x11 wm
+MASTER_SITES= ftp://ftp.fvwm.org/pub/fvwm/version-2/ \
+ http://www.fvwm.org/generated/icon_download/ \
+ ftp://ftp.hpc.uh.edu/pub/fvwm/version-2/
+DISTFILES+= fvwm-${FVWM_VER}.tar.gz fvwm_icons.tgz
+
+MAINTAINER= martti@NetBSD.org
+HOMEPAGE= http://www.fvwm.org/
+COMMENT= Newer version of X11 Virtual window manager
+
+DEPENDS+= xpmroot-2.*:../../x11/xpmroot
+
+CONFLICTS= fvwm1-* fvwm>=1
+EXTRACT_ONLY= ${DISTNAME}.tar.gz
+FVWM_VER= 2.4.19
+
+USE_X11BASE= YES
+GNU_CONFIGURE= YES
+USE_GNU_READLINE= YES
+
+PLIST_SUBST+= FVWM_VER=${FVWM_VER:Q}
+
+EVAL_PREFIX+= XPMDIR=xpm
+CONFIGURE_ARGS+= --without-gnome
+CONFIGURE_ARGS+= --sysconfdir=${PREFIX:Q}/lib/X11/fvwm2
+CONFIGURE_ARGS+= --libexecdir=${PREFIX:Q}/lib/X11
+CONFIGURE_ARGS+= --with-xpm-includes=${XPMDIR:Q}/include
+CONFIGURE_ARGS+= --with-imagepath=${PREFIX:Q}/lib/X11/fvwm2/pixmaps:${X11BASE:Q}/include/X11/bitmaps:${X11BASE:Q}/include/X11/pixmaps
+
+# We don't want to have CPP from the buildlink directory
+CONFIGURE_ENV+= ac_cv_path_FVWM_CPP=${CPP:Q}
+
+post-extract:
+ ${MKDIR} ${WRKDIR:Q}/icons
+ cd ${WRKDIR:Q}/icons && ${TAR} -xzf ${DISTDIR:Q}/fvwm_icons.tgz
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX:Q}/lib/X11/fvwm2/pixmaps
+ ${INSTALL_DATA} \
+ ${WRKDIR:Q}/icons/fvwm_icons/*.xpm \
+ ${PREFIX:Q}/lib/X11/fvwm2/pixmaps
+ ${INSTALL_DATA_DIR} ${PREFIX:Q}/lib/X11/fvwm2
+ ${INSTALL_DATA} \
+ ${WRKSRC:Q}/sample.fvwmrc/decor_examples \
+ ${WRKSRC:Q}/sample.fvwmrc/system.fvwm2rc-sample-* \
+ ${PREFIX:Q}/lib/X11/fvwm2
+ ${INSTALL_DATA} \
+ ${WRKSRC:Q}/sample.fvwmrc/system.fvwm2rc \
+ ${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc.example
+ ${INSTALL_SCRIPT} \
+ ${WRKSRC:Q}/utils/fvwmrc_convert \
+ ${PREFIX:Q}/bin/fvwmrc_convert
+ if [ ! -f ${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc ]; then \
+ ${INSTALL_DATA} \
+ ${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc.example \
+ ${PREFIX:Q}/lib/X11/fvwm2/system.fvwm2rc ; \
+ fi
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(FVWM2_USE_GTK) && ${FVWM2_USE_GTK} == "YES"
+.include "../../x11/gtk/buildlink3.mk"
+PLIST_SUBST+= GTK=""
+.else
+PLIST_SUBST+= GTK="@comment "
+CONFIGURE_ARGS+= --without-gtk-prefix
+.endif
+
+.if defined(FVWM2_USE_RPLAY) && ${FVWM2_USE_RPLAY} == "YES"
+.include "../../audio/rplay/buildlink3.mk"
+.endif
+
+.include "../../devel/readline/buildlink3.mk"
+.include "../../graphics/xpm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"