Merge from vendor branch TNF:
[pkgsrc.git] / graphics / libungif / Makefile
1 # $NetBSD: Makefile,v 1.4 2000/06/01 11:23:30 rh Exp $
2 #
3
4 DISTNAME=               libungif-4.1.0
5 CATEGORIES=             graphics
6 MASTER_SITES=           ftp://prtr-13.ucsc.edu/pub/libungif/
7
8 MAINTAINER=             packages@netbsd.org
9 HOMEPAGE=               http://prtr-13.ucsc.edu/~badger/software/libungif/index.shtml
10
11 CONFLICTS=              giflib-*
12
13 USE_LIBTOOL=            yes
14 LTCONFIG_OVERRIDE=      ${WRKSRC}/ltconfig
15
16 GNU_CONFIGURE=          yes
17 CONFIGURE_ARGS=         --without-x
18
19 DOCDIR=                 ${PREFIX}/share/doc/libungif
20
21 .include "../../mk/bsd.prefs.mk"
22
23 .if ${OPSYS} == "SunOS"
24 MAKE_ENV+=              CC="${CC} -I${LOCALBASE}/include"
25 .endif
26
27 post-patch:
28         ${RM} ${WRKSRC}/doc/gif2x11.html
29
30 post-install:
31         cd ${PREFIX}; for f in libungif.a libungif.so.5.0; do \
32                 g=`echo $$f | ${SED} "s,libungif,libgif,"`; \
33                 ${LN} -sf $$f ${PREFIX}/lib/$$g; \
34         done
35         ${INSTALL_DATA_DIR} ${DOCDIR}
36         cd ${WRKSRC}; ${INSTALL_DATA} COPYING UNCOMPRESSED_GIF ${DOCDIR}
37         cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt *.png ${DOCDIR}
38
39 .include "../../mk/bsd.pkg.mk"