1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/print/pslib/Makefile
Marcus von Appen 2491065f90 - Unbreak after switch to new options framework
PR:		ports/177313 ports/177320
Submitted by:	William Grzybowski <william88@gmail.com>, Yasuhiro KIMURA <yasu@utahime.org>
2013-03-24 09:08:30 +00:00

73 lines
1.6 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= pslib
PORTVERSION= 0.4.5
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= SF
MAINTAINER= mva@FreeBSD.org
COMMENT= A C-library for generating multi page PostScript documents
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
USES= pathfix
USE_PKGCONFIG= build
USE_GNOME= intlhack
USE_GETTEXT= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
USE_LDCONFIG= yes
OPTIONS_DEFINE= EXAMPLES MAN NLS
OPTIONS_DEFAULT= MAN NLS
MAN_DESC= Manual pages
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
EX_NAME= pslib-examples-0.0.10
EX_WRKSRC= ${WRKDIR}/${EX_NAME}
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} ${EX_NAME}${EXTRACT_SUFX}
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif
.if ${PORT_OPTIONS:MMAN}
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
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ENV+= ac_cv_header_libintl_h=no
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|@USE_NLS@|no|g' ${WRKSRC}/po/Makefile.in.in
.endif
post-install:
.if ${PORT_OPTIONS:MNLS}
${MKDIR} -m 0755 ${EXAMPLESDIR}
@${RM} -f ${EX_WRKSRC}/Makefile.unix ${EX_WRKSRC}/ChangeLog \
${EX_WRKSRC}/CMakeLists.txt
cd ${EX_WRKSRC} && ${PAX} -rw * ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>