aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/lfview/Makefile
blob: 4fbe99573d48447397654ffab37e7414a867f898 (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
# Created by: Yuu Yashiki
# $FreeBSD$

PORTNAME=   lfview
PORTVERSION=    1.1a
PORTREVISION=   2
CATEGORIES= graphics
MASTER_SITES=   http://hoshina.denpa.org/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphic viewer for Leaf products

USES=       imake tar:tgz
USE_XORG=   x11 xext
USE_LDCONFIG=   yes

OPTIONS_DEFINE= DOCS
DOCSDIR=    ${PREFIX}/share/doc/ja/lfview

.include <bsd.port.options.mk>

.if ${ARCH} != i386
CFLAGS+=    -fPIC
MAKE_ENV+=  SHLIBGLOBALSFLAGS=-fPIC
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/lfview ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_LIB} ${WRKSRC}/plugins/liblfv_leaf.so.1 ${STAGEDIR}${PREFIX}/lib
    ${LN} -sf liblfv_leaf.so.1 ${STAGEDIR}${PREFIX}/lib/liblfv_leaf.so

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>