Tweak graphics/tifmerge version 1.0_1
[dports.git] / graphics / tifmerge / Makefile
1 # Created by: G. Adam Stanislav <adam@whizkidtech.net>
2 # $FreeBSD$
3
4 PORTNAME=       tifmerge
5 PORTVERSION=    1.0
6 PORTREVISION=   1
7 CATEGORIES=     graphics
8 MASTER_SITES=   http://www.whizkidtech.redprince.net/fports/
9 DISTNAME=       tiff
10 EXTRACT_SUFX=   .zip
11
12 MAINTAINER=     ports@FreeBSD.org
13 COMMENT=        Library to merge TIFF files into multi-page TIFF files
14
15 USES=           dos2unix
16 DOS2UNIX_GLOB=  *.[ch]
17 USE_LDCONFIG=   yes
18 NO_WRKSUBDIR=   yes
19 DIST_SUBDIR=    tifmerge
20
21 PLIST_FILES=    lib/libtifmerge.a \
22                 include/tifmerge.h \
23                 lib/libtifmerge.so \
24                 lib/libtifmerge.so.1 \
25                 man/man3/tifmerge.3.gz
26
27 post-extract:
28         @${MV} ${WRKSRC}/TIFMERGE.H ${WRKSRC}/tifmerge.h
29         @${MV} ${WRKSRC}/TIFMERGE.C ${WRKSRC}/tifmerge.c
30         @${CP} ${FILESDIR}/Makefile ${WRKSRC}
31         @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/tifmerge.3 > \
32                 ${WRKSRC}/tifmerge.3
33
34 do-install:
35         ${INSTALL_LIB} ${WRKSRC}/libtifmerge.so.1 ${STAGEDIR}${PREFIX}/lib
36         ${LN} -fs libtifmerge.so.1 ${STAGEDIR}${PREFIX}/lib/libtifmerge.so
37         ${INSTALL_DATA} ${WRKSRC}/libtifmerge.a ${STAGEDIR}${PREFIX}/lib
38         ${INSTALL_DATA} ${WRKSRC}/tifmerge.h ${STAGEDIR}${PREFIX}/include
39         ${INSTALL_MAN} ${WRKSRC}/tifmerge.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
40
41 .include <bsd.port.mk>