aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tifmerge/Makefile
blob: a668514e21e8f03fb3264731c9d469c69415dbd6 (plain) (blame)
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
# Created by: G. Adam Stanislav <adam@whizkidtech.net>
# $FreeBSD$

PORTNAME=   tifmerge
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   http://www.whizkidtech.redprince.net/fports/
DISTNAME=   tiff

MAINTAINER= ports@FreeBSD.org
COMMENT=    Library to merge TIFF files into multi-page TIFF files

USE_DOS2UNIX=   *.[ch]
USE_LDCONFIG=   yes
USE_ZIP=    yes
NO_WRKSUBDIR=   yes
DIST_SUBDIR=    tifmerge

PLIST_FILES=    lib/libtifmerge.a \
                include/tifmerge.h \
                lib/libtifmerge.so \
                lib/libtifmerge.so.1

MAN3=       tifmerge.3

NO_STAGE=   yes
post-extract:
    @${MV} ${WRKSRC}/TIFMERGE.H ${WRKSRC}/tifmerge.h
    @${MV} ${WRKSRC}/TIFMERGE.C ${WRKSRC}/tifmerge.c
    @${CP} ${FILESDIR}/Makefile ${WRKSRC}
    @${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/tifmerge.3 > \
        ${WRKSRC}/tifmerge.3

do-install:
    ${INSTALL_LIB} ${WRKSRC}/libtifmerge.so.1 ${PREFIX}/lib
    ${LN} -fs ${PREFIX}/lib/libtifmerge.so.1 ${PREFIX}/lib/libtifmerge.so
    ${INSTALL_DATA} ${WRKSRC}/libtifmerge.a ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/tifmerge.h ${PREFIX}/include
    ${INSTALL_MAN} ${WRKSRC}/tifmerge.3 ${MAN3PREFIX}/man/man3

.include <bsd.port.mk>