Lines 6-44
Link Here
|
6 |
# $MCom: ports/biology/gperiodic/Makefile,v 1.1 2006/09/29 23:42:13 ahze Exp $ |
6 |
# $MCom: ports/biology/gperiodic/Makefile,v 1.1 2006/09/29 23:42:13 ahze Exp $ |
7 |
|
7 |
|
8 |
PORTNAME= gperiodic |
8 |
PORTNAME= gperiodic |
9 |
PORTVERSION= 2.0.8 |
9 |
PORTVERSION= 2.0.10 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= biology |
10 |
CATEGORIES= biology |
12 |
MASTER_SITES= http://koti.welho.com/jfrantz/software/ |
11 |
MASTER_SITES= http://www.frantz.fi/software/ |
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Displays a periodic table of the elements |
14 |
COMMENT= Displays a periodic table of the elements |
16 |
|
15 |
|
17 |
USE_XLIB= yes |
16 |
USE_XLIB= yes |
18 |
USE_GNOME= gnomeprefix gtk20 |
17 |
USE_GNOME= gtk20 |
19 |
ALL_TARGET= ${PORTNAME} |
|
|
20 |
USE_GETTEXT= yes |
18 |
USE_GETTEXT= yes |
21 |
LANGS= da fr pl sv tr |
|
|
22 |
|
19 |
|
23 |
post-patch: |
20 |
LANGS= da fr gl it pl ru sv tr |
24 |
@${REINPLACE_CMD} -e 's|^CC=|CC?=|g ; \ |
|
|
25 |
s|^CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile |
26 |
|
21 |
|
27 |
post-build: |
22 |
do-build: |
|
|
23 |
cd ${WRKSRC} && ${CC} ${CFLAGS} `pkg-config --cflags --libs gtk+-2.0` \ |
24 |
gperiodic.c -o gperiodic |
28 |
.for lang in ${LANGS} |
25 |
.for lang in ${LANGS} |
29 |
cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po |
26 |
cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po |
30 |
.endfor |
27 |
.endfor |
31 |
|
28 |
|
32 |
do-install: |
29 |
do-install: |
33 |
${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin |
30 |
${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin |
34 |
@${MKDIR} ${PREFIX}/share/gnome/applications |
31 |
@${MKDIR} ${PREFIX}/share/applications |
35 |
${INSTALL_DATA} ${WRKSRC}/gperiodic.desktop \ |
32 |
${INSTALL_DATA} ${WRKSRC}/gperiodic.desktop \ |
36 |
${PREFIX}/share/gnome/applications |
33 |
${PREFIX}/share/applications |
37 |
@${MKDIR} ${PREFIX}/share/gnome/pixmaps |
34 |
@${MKDIR} ${PREFIX}/share/pixmaps |
38 |
${INSTALL_DATA} ${WRKSRC}/gperiodic.png \ |
35 |
${INSTALL_DATA} ${WRKSRC}/gperiodic.png \ |
39 |
${PREFIX}/share/gnome/pixmaps |
36 |
${PREFIX}/share/pixmaps |
40 |
${INSTALL_DATA} ${WRKSRC}/gperiodic-crystal.png \ |
37 |
${INSTALL_DATA} ${WRKSRC}/gperiodic-crystal.png \ |
41 |
${PREFIX}/share/gnome/pixmaps |
38 |
${PREFIX}/share/pixmaps |
42 |
.for lang in ${LANGS} |
39 |
.for lang in ${LANGS} |
43 |
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES |
40 |
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES |
44 |
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \ |
41 |
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \ |