1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/graphics/giflib/Makefile
2014-03-30 19:44:48 +00:00

60 lines
1.5 KiB
Makefile

# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$
PORTNAME= giflib
PORTVERSION= 4.2.3
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-4.x
PKGNAMESUFFIX= ${NOX11SUFFIX}${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Tools and library routines for working with GIF images
CONFLICTS= libungif-[0-9]*
PORTSCOUT= limit:^4\.
USES= tar:bzip2
USE_AUTOTOOLS= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCBOOK X11
DOCBOOK_DESC= Generate API documentation (requires DOCS)
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCBOOK} && ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= xmlto:${PORTSDIR}/textproc/xmlto \
${LOCALBASE}/share/xml/docbook/4.1.2:${PORTSDIR}/textproc/docbook-xml
PLIST_SUB+= WITH_DOCBOOK=''
.else
PLIST_SUB+= WITH_DOCBOOK='@comment '
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG= sm x11
PLIST_SUB+= X11=''
CPPFLAGS+= -I${LOCALBASE}/include
.else
PLIST_SUB+= X11='@comment '
CONFIGURE_ARGS+= --with-x=no
NOX11SUFFIX= -nox11
.endif
post-patch:
${CP} ${FILESDIR}/quantize.c ${WRKSRC}/lib/
.if ! ${PORT_OPTIONS:MDOCBOOK} || ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|SUBDIRS = lib util doc pic|SUBDIRS = lib util pic|' \
${WRKSRC}/Makefile.in
.endif
.if ${PORT_OPTIONS:MDOCBOOK} && ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.post.mk>