summaryrefslogtreecommitdiffstats
path: root/print/libspectre/Makefile
blob: 469ae6b5108b26e64701ddefae84573552872822 (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
# New ports collection makefile for:    libspectre
# Date created:     2008-03-12
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#    $MCom$

PORTNAME=   libspectre
PORTVERSION=    0.2.3
CATEGORIES= print
MASTER_SITES=   http://libspectre.freedesktop.org/releases/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    A small library for rendering Postscript documents

LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo

USE_AUTOTOOLS=  libtool:22
USE_LDCONFIG=   yes
USE_GNOME=  gnomehack gnomeprefix ltverhack
USE_GHOSTSCRIPT=yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"

.if defined(WITH_GHOSTSCRIPT_GNU)
IGNORE= Port will not work with ghostscript-gnu, please do not define WITH_GHOSTSCRIPT_GNU
.endif

pre-configure:
    @if [ -n "`${PKG_INFO} -xI '^ghostscript-gnu-[0-9]*'`" ]; then \
        ${ECHO_CMD} "${PKGNAME}: ghostscript-gnu installed, please deinstall ghostscript-gnu"; \
        ${ECHO_CMD} "and use ghostscript-gpl. Make sure you don't have WITH_GHOSTSCRIPT_GNU"; \
        ${ECHO_CMD} "or GHOSTSCRIPT_PORT defined."; \
        ${FALSE}; \
    fi

.include <bsd.port.mk>