2004-07-13 02:45:48 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: pslib
|
|
|
|
# Date created: Jul 13, 2004
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pslib
|
2006-06-12 01:43:27 +00:00
|
|
|
PORTVERSION= 0.2.7
|
2006-09-09 12:42:00 +00:00
|
|
|
PORTREVISION= 1
|
2004-07-13 02:45:48 +00:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2006-09-09 12:42:00 +00:00
|
|
|
MAINTAINER= mva@sysfault.org
|
2004-07-13 02:45:48 +00:00
|
|
|
COMMENT= A C-library for generating multi page PostScript documents
|
|
|
|
|
2004-11-05 14:18:26 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2006-06-12 01:43:27 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2004-07-13 02:45:48 +00:00
|
|
|
|
2004-11-05 14:18:26 +00:00
|
|
|
USE_GNOME= gnomehack gnometarget intlhack pkgconfig
|
2006-06-12 01:43:27 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-11-05 14:18:26 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2006-09-09 12:42:00 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man
|
2006-08-15 00:56:24 +00:00
|
|
|
USE_LDCONFIG= yes
|
2004-07-13 02:45:48 +00:00
|
|
|
|
2006-09-09 12:42:00 +00:00
|
|
|
OPTIONS= EXAMPLES "Install additional examples" On \
|
|
|
|
MAN "Install manual pages" On \
|
|
|
|
NLS "Native language support" On
|
|
|
|
|
2006-07-03 06:34:06 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-09-09 12:42:00 +00:00
|
|
|
.if !defined(WITHOUT_EXAMPLES)
|
|
|
|
EX_NAME= pslib-examples-0.0.8
|
|
|
|
EX_WRKSRC= ${WRKDIR}/${EX_NAME}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${EX_NAME}${EXTRACT_SUFX}
|
|
|
|
PLIST_SUB+= EXAMPLES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_MAN)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/docbook-to-man:${PORTSDIR}/textproc/docbook-to-man \
|
|
|
|
${LOCALBASE}/bin/docbook2man:${PORTSDIR}/textproc/docbook-utils
|
|
|
|
MAN3!= ${CAT} ${FILESDIR}/man3
|
|
|
|
.else
|
|
|
|
# Avoid building the manpages.
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_DOC_TO_MAN=""
|
|
|
|
.endif
|
|
|
|
|
2005-07-28 15:42:29 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
2005-08-01 12:50:02 +00:00
|
|
|
CONFIGURE_ENV+= ac_cv_header_libintl_h=no
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
2005-07-28 15:42:29 +00:00
|
|
|
.endif
|
|
|
|
|
2006-06-12 01:43:27 +00:00
|
|
|
post-patch:
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
@${REINPLACE_CMD} -e 's|@USE_NLS@|no|g' ${WRKSRC}/po/Makefile.in.in
|
|
|
|
.endif
|
|
|
|
|
2006-09-09 12:42:00 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(WITHOUT_EXAMPLES)
|
|
|
|
${MKDIR} -m 0755 ${EXAMPLESDIR}
|
|
|
|
@${RM} -f ${EX_WRKSRC}/Makefile ${EX_WRKSRC}/ChangeLog
|
|
|
|
cd ${EX_WRKSRC} && ${PAX} -rw * ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
2006-07-03 06:34:06 +00:00
|
|
|
.include <bsd.port.post.mk>
|