# $NetBSD: Makefile,v 1.18 2001/09/27 23:18:12 jlam Exp $ # DISTNAME= libungif-4.1.0 CATEGORIES= graphics MASTER_SITES= ftp://prtr-13.ucsc.edu/pub/libungif/ MAINTAINER= packages@netbsd.org HOMEPAGE= http://prtr-13.ucsc.edu/~badger/software/libungif/index.shtml COMMENT= Tools and library routines for working with GIF images CONFLICTS= giflib-[0-9]* USE_LIBTOOL= # defined LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig GNU_CONFIGURE= # defined CONFIGURE_ARGS= --without-x USE_BUILDLINK_ONLY= # defined DOCDIR= ${PREFIX}/share/doc/libungif HTMLDIR= ${PREFIX}/share/doc/html/libungif .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "SunOS" MAKE_ENV+= CC="${CC} -I${LOCALBASE}/include" .endif post-patch: ${RM} ${WRKSRC}/doc/gif2x11.html # We patch configure.in, so touch the Makefile.in files to prevent automake # from regenerating them. # pre-build: ${TOUCH} ${WRKSRC}/aclocal.m4 ${FIND} ${WRKSRC} -name "Makefile.in" -print | ${XARGS} ${TOUCH} post-install: cd ${PREFIX}; \ for f in libungif.a libungif.so libungif.so.5 libungif.so.5.0; do \ g=`echo $$f | ${SED} "s,libungif,libgif,"`; \ ${LN} -sf $$f ${PREFIX}/lib/$$g; \ done ${INSTALL_DATA_DIR} ${DOCDIR} cd ${WRKSRC}; ${INSTALL_DATA} COPYING UNCOMPRESSED_GIF ${DOCDIR} ${INSTALL_DATA_DIR} ${HTMLDIR} cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt *.png ${HTMLDIR} .include "../../mk/bsd.pkg.mk"