1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/graphics/giflib/Makefile
Antoine Brodin 728929b709 Switch ports depending on docbook* through a directory name to a package name,
as a directory name can't be attributed to a package
2015-01-23 22:50:49 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= giflib
PORTVERSION= 5.0.6
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= portmgr@FreeBSD.org
COMMENT= Tools and library routines for working with GIF images
CONFLICTS= libungif-[0-9]*
USES= tar:bzip2 libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCBOOK DOCS
OPTIONS_SUB= yes
DOCBOOK_DESC= Generate API documentation (requires DOCS)
INSTALL_TARGET= install-strip
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCBOOK} && ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= xmlto:${PORTSDIR}/textproc/xmlto \
docbook-xml>0:${PORTSDIR}/textproc/docbook-xml
.endif
post-patch:
.if ! ${PORT_OPTIONS:MDOCBOOK} || ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} \
-e 's|SUBDIRS = lib util doc pic|SUBDIRS = lib util pic|' \
${WRKSRC}/Makefile.in
.endif
post-install:
@${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${PREFIX}/man/man1/
.if ${PORT_OPTIONS:MDOCBOOK} && ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>