c6aea69ca8
- Add WITHOUT_NLS knob - Mark as BROKEN on 4.x, doesn't build PR: ports/84222 [1] Submitted by: Marcus von Appen <mva@sysfault.org> [1]
48 lines
984 B
Makefile
48 lines
984 B
Makefile
# 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>
|