aboutsummaryrefslogtreecommitdiffstats
path: root/biology/gperiodic/Makefile
blob: 9d70d954fa0d53c1edddeeb0bd4786ac9e1cf177 (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
# Created by: Andrey Zakhvatov
# $FreeBSD$
#    $MCom: ports/biology/gperiodic/Makefile,v 1.1 2006/09/29 23:42:13 ahze Exp $

PORTNAME=   gperiodic
PORTVERSION=    2.0.10
PORTREVISION=   7
CATEGORIES= biology
MASTER_SITES=   http://www.frantz.fi/software/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Displays a periodic table of the elements

USE_GNOME=  gtk20
USES=       gettext pkgconfig

LANGS=      da fr gl it pl ru sv tr

PORTDOCS=   AUTHORS ChangeLog README

OPTIONS_DEFINE= DOCS

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} `pkg-config --cflags --libs gtk+-2.0` \
        gperiodic.c -o gperiodic
.for lang in ${LANGS}
    cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po
.endfor

.include <bsd.port.options.mk>

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKSRC}/gperiodic.desktop \
        ${PREFIX}/share/applications
    @${MKDIR} ${PREFIX}/share/pixmaps
    ${INSTALL_DATA} ${WRKSRC}/gperiodic.png \
        ${PREFIX}/share/pixmaps
    ${INSTALL_DATA} ${WRKSRC}/gperiodic-crystal.png \
        ${PREFIX}/share/pixmaps
.for lang in ${LANGS}
    @${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
    ${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
        ${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.include <bsd.port.mk>