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

PORTNAME=   tumble
PORTVERSION=    0.33
PORTREVISION=   5
CATEGORIES= graphics print
MASTER_SITES=   http://tumble.brouhaha.com/download/ \
        http://www.sourcefiles.org/Graphics/Tools/Conversion/

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

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libtiff.so:graphics/tiff \
        libnetpbm.so:graphics/netpbm

USES=       bison gmake jpeg localbase:ldflags

NOT_FOR_ARCHS=  powerpc sparc64
NOT_FOR_ARCHS_REASON=   Only works on little endian systems

PORTDOCS=   README
PLIST_FILES=    bin/tumble

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e \
        's|^\(CFLAGS\) =.*|\1 := $$(CFLAGS)| ; \
         s|^\(LDFLAGS\) =.*|\1 := $$(LDFLAGS)| ; \
         s|-O3|| ; \
         s|-lpbm|-lnetpbm| ; \
         s|strip|true|' ${WRKSRC}/Makefile

do-install:
    (cd ${WRKSRC} && ${INSTALL_PROGRAM} tumble \
        ${STAGEDIR}${PREFIX}/bin)

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC} && ${INSTALL_DATA} README \
        ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>