aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tumble/Makefile
blob: 5a9615d80e6f00080d083c919c3366b22d5a6521 (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
# Created by: Rob Farmer <rfarmer@predatorlabs.net>
# $FreeBSD$

PORTNAME=   tumble
PORTVERSION=    0.33
PORTREVISION=   3
CATEGORIES= graphics print
MASTER_SITES=   http://tumble.brouhaha.com/download/ \
        http://www.predatorlabs.net/dl/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Creates a PDF file from image files

LIB_DEPENDS=    tiff.4:${PORTSDIR}/graphics/tiff \
        netpbm.1:${PORTSDIR}/graphics/netpbm
BUILD_DEPENDS=  ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex

USE_GMAKE=  yes
USES=       bison


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

ONLY_FOR_ARCHS= amd64 arm i386 ia64 pc98
ONLY_FOR_ARCHS_REASON=  Only works on little endian systems

PLIST_FILES=    bin/tumble
PORTDOCS=   README

post-patch:
    ${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile
    ${REINPLACE_CMD} -e 's|LDFLAGS =|LDFLAGS= ${LDFLAGS}|' ${WRKSRC}/Makefile
    ${REINPLACE_CMD} -e 's|-lpbm|-lnetpbm|' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/tumble ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif

.include <bsd.port.mk>