pkgsrc/wm/ctwm/Makefile
dsainty 1f40f3a084 Mechanically replace references to graphics/jpeg with the suitable
alternative from mk/jpeg.buildlink3.mk

This allows selection of an alternative jpeg library (namely the x86 MMX,
SSE, SSE2 accelerated libjpeg-turbo) via JPEG_DEFAULT=libjpeg-turbo, and
follows the current standard model for alternatives (fam, motif, fuse etc).

The mechanical edits were applied via the following script:

#!/bin/sh
for d in */*; do
  [ -d "$d" ] || continue
  for i in "$d/"Makefile* "$d/"*.mk; do
    case "$i" in *.orig|*"*"*) continue;; esac
    out="$d/x"
    sed -e 's;graphics/jpeg/buildlink3\.mk;mk/jpeg.buildlink3.mk;g' \
        -e 's;BUILDLINK_PREFIX\.jpeg;JPEGBASE;g' \
        < "$i" > "$out"
    if cmp -s "$i" "$out"; then
      rm -f "$out"
    else
      echo "Edited $i"
      mv -f "$i" "$i.orig" && mv "$out" "$i"
    fi
  done
done
2010-12-23 11:44:24 +00:00

50 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.28 2010/12/23 11:44:57 dsainty Exp $
#
DISTNAME= ctwm-3.8a
PKGREVISION= 5
CATEGORIES= x11 wm
MASTER_SITES= http://ctwm.free.lp.se/dist/
MAINTAINER= rhialto@falu.nl
HOMEPAGE= http://ctwm.free.lp.se/
COMMENT= Window manager with support for multiple virtual screens and Gnome 1.x
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
USE_IMAKE= YES
.include "../../mk/bsd.prefs.mk"
# We need an m4 that understands the -s option.
USE_TOOLS+= gm4:run
OPSYSVARS+= EXTRA_DEFINES
EXTRA_DEFINES+= -DPATH_TO_M4=\"${TOOLS_PATH.gm4:Q}\"
# The __EXTENSIONS__ is needed for sigjmp_buf.
EXTRA_DEFINES.SunOS+= -D__EXTENSIONS__
MAKE_ENV+= EXTRA_DEFINES=${EXTRA_DEFINES:Q}
pre-configure:
( ${ECHO} 'USER_JPEGLIBDIR = -L${JPEGBASE}/lib ${COMPILER_RPATH_FLAG}${JPEGBASE}/lib'; \
${ECHO} 'USER_JPEGINCDIR = -I${JPEGBASE}/include'; \
${CAT} ${WRKSRC}/Imakefile.local-template; \
) >${WRKSRC}/Imakefile.local
EXAMPLEDIR=${PREFIX}/share/examples/ctwm
pre-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EXAMPLEDIR}
.for f in example.ctwmrc levitte.ctwmrc peterc.ctwmrc system.ctwmrc system.ctwmrc.gnome
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EXAMPLEDIR}
.endfor
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/xsessions
${INSTALL_DATA} ${FILESDIR}/ctwm.desktop \
${DESTDIR}${PREFIX}/share/xsessions/ctwm.desktop
.include "../../mk/jpeg.buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"