60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.80 2011/09/16 11:41:42 espie Exp $
|
|
|
|
COMMENT-main= PDF viewer for X11
|
|
COMMENT-utils= PDF conversion tools
|
|
|
|
DISTNAME= xpdf-3.02
|
|
PKGNAME-main= xpdf-3.02.5
|
|
REVISION-main= 3
|
|
PKGNAME-utils= xpdf-utils-3.02.5
|
|
REVISION-utils = 0
|
|
CATEGORIES= textproc x11
|
|
|
|
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
|
|
ftp://gd.tuwien.ac.at/publishing/xpdf/ \
|
|
ftp://tug.org/xpdf/
|
|
PATCHFILES= xpdf-3.02pl1.patch xpdf-3.02pl2.patch \
|
|
xpdf-3.02pl3.patch xpdf-3.02pl4.patch \
|
|
xpdf-3.02pl5.patch
|
|
PATCH_DIST_STRIP=-p1
|
|
|
|
HOMEPAGE= http://www.foolabs.com/xpdf/
|
|
|
|
MULTI_PACKAGES= -main -utils
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
LIB_DEPENDS+= x11/openmotif
|
|
USE_GMAKE= Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS+= --enable-multithreaded \
|
|
--without-Sgm-library \
|
|
--without-libpaper-library
|
|
|
|
CONFIGURE_ENV= CPPFLAGS='-I${X11BASE}/include/freetype2 -I${X11BASE}/include -I${LOCALBASE}/include -DLOCALBASE="\"${LOCALBASE}\""' \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -lm -lz"
|
|
MAKE_ENV+=MOTIFLIB='-L${LOCALBASE}/lib -lXm'
|
|
|
|
LIB_DEPENDS-utils=
|
|
LIB_DEPENDS-main= devel/t1lib ${LIB_DEPENDS}
|
|
RUN_DEPENDS-utils= print/ghostscript/gnu-fonts
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS-utils} \
|
|
${FULLPKGNAME-utils}:textproc/xpdf,-utils
|
|
|
|
WANTLIB-utils= c m pthread stdc++ z
|
|
WANTLIB-main= ${WANTLIB} ${WANTLIB-utils} ICE SM X11 Xext Xpm Xt \
|
|
freetype t1>=3 Xm
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xpdf
|
|
${INSTALL_DATA} ${WRKSRC}/doc/sample-xpdfrc \
|
|
${PREFIX}/share/examples/xpdf/xpdfrc
|
|
|
|
.include <bsd.port.mk>
|