Merge from vendor branch TNF:
[pkgsrcv2.git] / converters / psiconv / Makefile
1 # $NetBSD: Makefile,v 1.3 2000/05/13 01:15:01 wiz Exp $
2 #
3
4 DISTNAME=       psiconv-0.6.1
5 CATEGORIES=     converters
6 MASTER_SITES=   http://huizen.dds.nl/~frodol/psiconv/
7
8 MAINTAINER=     sakamoto@netbsd.org
9 HOMEPAGE=       http://huizen.dds.nl/~frodol/psiconv/
10
11 .if !exists(/usr/include/getopt.h)
12 DEPENDS+=       libgetopt-[0-9]*:../../devel/libgetopt
13 LIBS=           -lgetopt
14 .endif
15 DEPENDS+=       ImageMagick-*:../../graphics/ImageMagick
16
17 MAGICK_CONFIG=  ${LOCALBASE}/bin/Magick-config
18
19 USE_X11=        YES
20 USE_PKGLIBTOOL= YES
21 GNU_CONFIGURE=  YES
22 CONFIGURE_ENV+= CPPFLAGS="`${MAGICK_CONFIG} --cppflags` -DIMAGEMAGICK" \
23                 LIBS="${LIBS} `${MAGICK_CONFIG} --libs`"
24
25 post-configure:
26         @${RM} -f ${WRKSRC}/libtool
27         @${LN} -s ${LIBTOOL} ${WRKSRC}/libtool
28
29 post-install:
30         ${MKDIR} ${PREFIX}/share/doc/psiconv
31 .for file in ascii html html4
32         ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${PREFIX}/share/doc/psiconv
33 .endfor
34
35 .include "../../mk/bsd.pkg.mk"