aboutsummaryrefslogtreecommitdiffstats
path: root/print/pdflib3/Makefile
blob: 84cb4d4851c2d26529617f694326626eb1486444 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    pdflib
# Date created:     Mon Jan 18 17:03:33 CET 1999
# Whom:         Dirk Froemberg <dirk@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   pdflib
PORTVERSION=    3.03
CATEGORIES= print
MASTER_SITES=   http://www.pdflib.com/pdflib/download/

MAINTAINER= billf@FreeBSD.org
COMMENT=    A C library for dynamically generating PDF

BROKEN=     "Distfile has disappeared"

RUN_DEPENDS=    ${LOCALBASE}/lib/afm/Courier:${PORTSDIR}/print/afm
LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        png.5:${PORTSDIR}/graphics/png

RESTRICTED= "many odd restrictions on usage and distribution"
INSTALLS_SHLIB= yes
USE_LIBTOOL=    yes
CONFIGURE_ARGS= --with-perl5=${PERL} \
        --with-jpeg=${PREFIX} \
        --with-pnglib=${PREFIX} \
        --enable-shared-pdflib \
        --enable-cxx \
        --with-zlib=/usr

do-install:
    ${INSTALL_DATA} ${WRKSRC}/pdflib/.libs/libpdf.so.3 ${PREFIX}/lib
    ${LN} -s libpdf.so.3 ${PREFIX}/lib/libpdf.so
    ${INSTALL_DATA} ${WRKSRC}/pdflib/pdflib.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/pdflib
    ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/pdflib
.endif

.include <bsd.port.mk>