936648995e
ftp.foolabs.com is unresolvable and the sunsite mirros only have old versions available
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.90 2021/01/22 16:27:21 nros Exp $
|
|
|
|
DISTNAME= xpdf-3.04
|
|
CATEGORIES= print
|
|
MASTER_SITES= https://dl.xpdfreader.com/old/
|
|
PKGREVISION= 1
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.xpdfreader.com/
|
|
COMMENT= Display tool for PDF files (Motif version)
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
DEPENDS+= urw-fonts-[0-9]*:../../fonts/urw-fonts
|
|
DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
|
|
|
|
CONFLICTS= xpdf-crypto-[0-9]*
|
|
|
|
USE_LANGUAGES= c c++
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
|
|
CONFIGURE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
|
|
MAKE_ENV+= SED=${SED:Q} ECHO=${ECHO:Q}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
|
|
CONFIGURE_ARGS+= --enable-a4-paper
|
|
.endif
|
|
|
|
EGDIR= ${PREFIX}/share/examples/xpdf
|
|
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
|
|
|
|
SUBST_CLASSES+= paths
|
|
#SUBST_FILES.paths= doc/pdffonts.1 doc/pdfimages.1 doc/pdfinfo.1
|
|
#SUBST_FILES.paths+= doc/pdftoppm.1 doc/pdftops.1 doc/pdftotext.1
|
|
SUBST_FILES.paths+= doc/sample-xpdfrc doc/xpdf.1 doc/xpdfrc.5
|
|
SUBST_VARS.paths= PREFIX
|
|
SUBST_VARS.paths+= PKG_SYSCONFDIR
|
|
SUBST_STAGE.paths= pre-configure
|
|
|
|
OWN_DIRS= share/xpdf
|
|
|
|
BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.2.1
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../mk/motif.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-mipsel)
|
|
CXXFLAGS:= ${CXXFLAGS:N-O[0-9]*}
|
|
.endif
|