aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/bmeps/Makefile
blob: b1210caff8fade91eb7dce72a0adef5f3b0a3259 (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
43
44
45
46
47
48
49
50
# New ports collection makefile for:    bmeps
# Date created:             6 Jan 2004
# Whom:                 Hideyuki KURASHINA <rushani@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   bmeps
PORTVERSION=    2.2.20a
CATEGORIES= graphics perl5
MASTER_SITES=   SF/dktools/dktools/dktools-${PORTVERSION:S,a,,}
DISTNAME=   dktools-${PORTVERSION}

MAINTAINER= rfarmer@predatorlabs.net
COMMENT=    Convert bitmap images (PNG/JPEG/NetPBM) to EPS

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/bsdlic.txt

LIB_DEPENDS=    jpeg:${PORTSDIR}/graphics/jpeg \
        netpbm:${PORTSDIR}/graphics/netpbm \
        png:${PORTSDIR}/graphics/png

USE_ZIP=    yes
USE_PERL5=  yes
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  aclocal autoconf

MAKE_ARGS=  bmeps
WRKSRC=     ${WRKDIR}/${DISTNAME:S,a,,}

CFLAGS+=    -I${PREFIX}/include
LDFLAGS+=   -L${PREFIX}/lib

CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/dktools\
        --with-lzw\
        --libdir=${PREFIX}/lib\
        --includedir=${PREFIX}/include

MAN1=       bmeps.1

do-install:
    @${MKDIR}       ${DATADIR}
    @${INSTALL_PROGRAM} ${WRKSRC}/bmeps                 ${PREFIX}/bin
    @${INSTALL_MAN}     ${WRKSRC}/man/man1/bmeps.1          ${PREFIX}/man/man1
    @${INSTALL_DATA}    ${WRKSRC}/bmeps.str             ${DATADIR}
    @${INSTALL_DATA}    ${WRKSRC}/share/dktools/en/bmeps.stt.bz2    ${DATADIR}
    @${INSTALL_DATA}    ${WRKSRC}/share/dktools/en/bmeps.txt        ${DATADIR}

.include <bsd.port.mk>