1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/print/pslib/Makefile
Marcus von Appen d9e864b2dd - Enable stagedir support
- Add LICENSE
- Convert to new LIB_DEPENDS format
- Convert USE_GMAKE=yes -> USES=gmake
- Rename MAN option to MANPAGES
- Bump PORTREVISION to properly deal with some of the OPTION settings
2014-01-18 14:27:31 +00:00

64 lines
1.5 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= pslib
PORTVERSION= 0.4.5
PORTREVISION= 2
CATEGORIES= print
MASTER_SITES= SF
MAINTAINER= mva@FreeBSD.org
COMMENT= A C-library for generating multi page PostScript documents
LICENSE= GPLv2
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
libpng15.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff
USES= pathfix pkgconfig gettext gmake
USE_GNOME= intlhack
USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
USE_LDCONFIG= yes
OPTIONS_DEFINE= EXAMPLES MANPAGES NLS
OPTIONS_DEFAULT= MANPAGES NLS
.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}
.endif
.if ${PORT_OPTIONS:MMANPAGES}
BUILD_DEPENDS+= ${LOCALBASE}/bin/docbook-to-man:${PORTSDIR}/textproc/docbook-to-man \
${LOCALBASE}/bin/docbook2man:${PORTSDIR}/textproc/docbook-utils
.else
# Avoid building the manpages.
CONFIGURE_ENV+= ac_cv_prog_DOC_TO_MAN=""
.endif
.if ${PORT_OPTIONS:MNLS}
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:
${MKDIR} -m 0755 ${STAGEDIR}${EXAMPLESDIR}
@${RM} -f ${EX_WRKSRC}/Makefile.unix ${EX_WRKSRC}/ChangeLog \
${EX_WRKSRC}/CMakeLists.txt
cd ${EX_WRKSRC} && ${PAX} -rw * ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>