pkgsrc/wm/fvwm1/Makefile
joerg d26cf36e57 - fine grained X11 dependencies for packages which have either USE_IMAKE
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or
  via buildlink3.mks
- introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm
  in the !modular case
- fix some cases where the check for libX11 couldn't work at all by using
  C++ for compilation without including the proper headers

Verified using a full X11_TYPE=xorg bulk build without additional
breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
2006-12-27 13:37:35 +00:00

54 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.14 2006/12/27 13:37:41 joerg Exp $
DISTNAME= fvwm-1.24r
PKGNAME= ${DISTNAME:S/fvwm/fvwm1/}
PKGREVISION= 1
CATEGORIES= x11 wm
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= cjs@NetBSD.org
HOMEPAGE= http://www.fvwm.org/
COMMENT= Virtual window manager for X
DEPENDS+= xpmroot-2.*:../../x11/xpmroot
CONFLICTS= fvwm2-* fvwm>=1
NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
USE_IMAKE= YES
post-extract:
cd ${WRKSRC}/modules; \
for FILE in Fvwm*/Imakefile; do \
${MV} $${FILE} $${FILE}.orig; \
${SED} -e 's/ComplexProgramTarget/ComplexProgramTargetNoMan/' \
-e 's@#ifdef AlphaArchitecture@#if defined(AlphaArchitecture) \&\& !defined(NetBSDArchitecture)@' \
<$${FILE}.orig >$${FILE}; \
done
${MV} ${WRKSRC}/modules/GoodStuff/Imakefile ${WRKSRC}/modules/GoodStuff/Imakefile.orig
${SED} -e 's@#ifdef AlphaArchitecture@#if defined(AlphaArchitecture) \&\& !defined(NetBSDArchitecture)@' \
<${WRKSRC}/modules/GoodStuff/Imakefile.orig >${WRKSRC}/modules/GoodStuff/Imakefile
post-patch:
cd ${WRKSRC}; \
${MV} configure.h configure.h.old; \
${SED} -e 's#$${PREFIX}#${PREFIX}#g' \
-e 's#$${X11BASE}#${X11BASE}#g' configure.h.old >configure.h
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/fvwm/pixmaps
@${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/fvwm/bitmaps
${INSTALL_DATA} ${WRKSRC}/fvwm_icons/*.xpm \
${PREFIX}/lib/X11/fvwm/pixmaps
${INSTALL_DATA} ${WRKSRC}/fvwm_icons/*.xbm \
${WRKSRC}/fvwm_icons/*.bitmap ${WRKSRC}/fvwm_icons/*.icon \
${PREFIX}/lib/X11/fvwm/bitmaps
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/xbitmaps/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"