summaryrefslogtreecommitdiff
path: root/graphics/libungif/Makefile
blob: 9d62664331deb4bd73896fff443aa1fc362a1072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $NetBSD: Makefile,v 1.42 2012/10/03 21:56:11 wiz Exp $

DISTNAME=	libungif-4.1.4
PKGREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=giflib/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://libungif.sourceforge.net/
COMMENT=	Tools and library routines for working with GIF images

CONFLICTS=	giflib-[0-9]*

PKG_INSTALLATION_TYPES=	overwrite pkgviews
PKG_DESTDIR_SUPPORT=	user-destdir

GNU_CONFIGURE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		perl:run
CONFIGURE_ARGS+=	--without-x
CONFIGURE_ENV+=		ac_cv_lib_X11_main=no

DOCDIR=			${PREFIX}/share/doc/libungif
HTMLDIR=		${PREFIX}/share/doc/html/libungif

REPLACE_PERL+=		util/gifburst

post-patch:
	@${RM} ${WRKSRC}/doc/gif2x11.html

post-install:
	cd ${DESTDIR}${PREFIX}/lib && 					\
	for SOURCE in libungif.*; do					\
	  TARGET=`echo $$SOURCE | ${SED} -e s/libungif/libgif/`;	\
	  ${RM} -f $$TARGET; 						\
	  if [ $$SOURCE = libungif.la ]; then				\
	    ${SED} -e s/libungif/libgif/g $$SOURCE >$$TARGET;		\
	    ${CHMOD} 755 $$TARGET;					\
	  else								\
	    ${LN} -s $$SOURCE $$TARGET;					\
	  fi;								\
	done
	${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
	cd ${WRKSRC}; ${INSTALL_DATA} COPYING UNCOMPRESSED_GIF ${DESTDIR}${DOCDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
	cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.txt *.png ${DESTDIR}${HTMLDIR}

.include "../../mk/bsd.pkg.mk"