Merge from vendor branch TNF:
[pkgsrc.git] / converters / psiconv / Makefile
1 # $NetBSD: Makefile,v 1.1.1.1 1999/12/06 01:58:06 sakamoto 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 .endif
14 DEPENDS+=       ImageMagick-*:../../graphics/ImageMagick
15
16 MAGICK_CONFIG=  ${LOCALBASE}/bin/Magick-config
17
18 USE_X11=        YES
19 USE_LIBTOOL=    YES
20 GNU_CONFIGURE=  YES
21 CONFIGURE_ENV+= CPPFLAGS="`${MAGICK_CONFIG} --cppflags` -DIMAGEMAGICK" \
22                 LIBS="-lgetopt `${MAGICK_CONFIG} --libs`"
23
24 post-configure:
25         @${RM} -f ${WRKSRC}/libtool
26         @${LN} -s ${LIBTOOL} ${WRKSRC}/libtool
27
28 post-install:
29         ${MKDIR} ${PREFIX}/share/doc/psiconv
30 .for file in ascii html html4
31         ${INSTALL_DATA} ${WRKSRC}/docs/${file} ${PREFIX}/share/doc/psiconv
32 .endfor
33
34 .include "../../mk/bsd.pkg.mk"