aboutsummaryrefslogtreecommitdiffstats
path: root/misc/xsw/Makefile
blob: 782d782351b862afb168f7a7c950143972408dc9 (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
51
52
53
54
55
56
57
58
59
# Created by: corky1951@comcast.net
# $FreeBSD$

PORTNAME=   xsw
PORTVERSION=    0.3.5
PORTREVISION=   3
CATEGORIES= misc
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= bapt@FreeBSD.org
COMMENT=    A tool for creating presentations

RUN_DEPENDS=    convert:${PORTSDIR}/graphics/ImageMagick

USE_SDL=    sdl ttf image gfx

GNU_CONFIGURE=  yes

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

.if !defined(NO_INSTALL_MANPAGES)
MAN1=       xsw.1 \
        xsw2pdf.1 \
        xswconv.1

MANCOMPRESSED=  no
.endif

DOCS=       AUTHORS \
        COPYING \
        NEWS \
        README \
        REFERENCE \
        THANKS \
        TODO \
        doc/xsw.vim

.include <bsd.port.options.mk>

do-install:
    (cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \
        ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install)
    (cd ${WRKSRC}/data && ${SETENV} ${MAKE_ENV} \
        ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install)
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR}
.endfor
.endif

.if !defined(NO_INSTALL_MANPAGES)
.for manpage in ${MAN1}
    ${INSTALL_MAN} ${WRKSRC}/man/man1/${manpage} ${MAN1PREFIX}/man/man1
.endfor
.endif

.include <bsd.port.mk>