aboutsummaryrefslogtreecommitdiffstats
path: root/print/pslib/Makefile
blob: de53e24fb331c19b224b3eb7947f63c7ba356c07 (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
42
43
44
45
46
47
# ex:ts=8
# Ports collection makefile for:    pslib
# Date created:         Jul 13, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   pslib
PORTVERSION=    0.2.6
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A C-library for generating multi page PostScript documents

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        png.5:${PORTSDIR}/graphics/png

USE_GNOME=  gnomehack gnometarget intlhack pkgconfig
USE_REINPLACE=  yes
USE_LIBTOOL_VER=    15
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB=  GETTEXT=""
.else
PLIST_SUB=  GETTEXT="@comment "
.endif

.include <bsd.port.pre.mk>

.if (${OSVERSION} < 500000)
BROKEN= Doesn't build on < 5.x
.endif

post-configure:
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} -E 's|(SUBDIRS = data include src) po|\1|' \
        ${WRKSRC}/Makefile
.endif

.include <bsd.port.post.mk>