pkgsrc/devel/doxygen/Makefile
dsainty ada744dc0a 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

81 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.80 2010/12/23 11:44:26 dsainty Exp $
DISTNAME= doxygen-1.6.3.src
PKGNAME= ${DISTNAME:S/.src//}
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ftp://ftp.stack.nl/pub/users/dimitri/ \
http://ftp.stack.nl/pub/users/dimitri/
MAINTAINER= recht@NetBSD.org
HOMEPAGE= http://www.doxygen.org/
COMMENT= Documentation system for C++, Java, IDL and C
LICENSE= gnu-gpl-v2
DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
DEPENDS+= texlive-pdftools-[0-9]*:../../print/texlive-pdftools
PKG_DESTDIR_SUPPORT= user-destdir
TEX_ACCEPTED= teTeX3
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
UNLIMIT_RESOURCES+= datasize
USE_TOOLS+= gmake gs:run perl:run bison flex
USE_LANGUAGES= c c++
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --make ${GMAKE}
CONFIGURE_ARGS+= --perl ${PERL5}
CONFIGURE_ARGS+= --install ${INSTALL}
CONFIGURE_ARGS+= --dot ${PREFIX}/bin/dot
CONFIGURE_ARGS+= --prefix ${PREFIX}
CONFIGURE_ARGS+= --docdir ${PREFIX}/share/doc/doxygen
MAKE_ENV+= PKGSRC_CFLAGS=${CFLAGS:Q}
MAKE_FLAGS+= MAN1DIR=${PKGMANDIR}/man1
PLIST_VARS+= ci cs
SUBST_CLASSES+= path
SUBST_STAGE.path= pre-configure
SUBST_FILES.path= doc/Makefile.in
SUBST_SED.path= -e "s|@EPSTOPDF@|${LOCALBASE}/bin/epstopdf|g" \
-e "s|@PYTHONBIN@|${PYTHONBIN}|g"
SUBST_CLASSES+= perlbin
SUBST_STAGE.perlbin= pre-configure
SUBST_MESSAGE.perlbin= Fixing hardcoded path to the Perl interpreter
SUBST_FILES.perlbin= examples/tag.cfg
SUBST_SED.perlbin= -e 's,^PERL_PATH.*,PERL_PATH = ${PERL5},'
SUBST_CLASSES+= epstopdf
SUBST_STAGE.epstopdf= pre-configure
SUBST_MESSAGE.epstopdf= Fixing path to epstopdf
SUBST_FILES.epstopdf= src/diagram.cpp src/docparser.cpp src/dot.cpp \
src/msc.cpp
SUBST_SED.epstopdf= -e 's,"epstopdf","${LOCALBASE}/bin/epstopdf",g'
PRIVILEGED_STAGES+= clean
INSTALL_TARGET= install install_docs
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
PLIST.ci= yes # case-insensitive
.else
PLIST.cs= yes # case-sensitive
.endif
.if ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+= -platform freebsd-g++
.endif
post-patch:
touch ${WRKSRC}/src/doxytag.l
BUILDLINK_API_DEPENDS.graphviz+= graphviz>=2.12nb1
.include "../../converters/libiconv/buildlink3.mk"
.include "../../graphics/graphviz/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/tex.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"