d4f0d0048a
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}. - Bump PORTREVISION for ports intalling files in ${X11BASE}.
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# New ports collection makefile for: gperiodic
|
|
# Date created: 16 July 1999
|
|
# Whom: Andrey Zakhvatov
|
|
#
|
|
# $FreeBSD$
|
|
# $MCom: ports/biology/gperiodic/Makefile,v 1.1 2006/09/29 23:42:13 ahze Exp $
|
|
|
|
PORTNAME= gperiodic
|
|
PORTVERSION= 2.0.8
|
|
PORTREVISION= 4
|
|
CATEGORIES= biology
|
|
MASTER_SITES= http://koti.welho.com/jfrantz/software/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Displays a periodic table of the elements
|
|
|
|
USE_XLIB= yes
|
|
USE_GNOME= gnomeprefix gtk20
|
|
ALL_TARGET= ${PORTNAME}
|
|
USE_GETTEXT= yes
|
|
LANGS= da fr pl sv tr
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^CC=|CC?=|g ; \
|
|
s|^CFLAGS=|CFLAGS+=|g' ${WRKSRC}/Makefile
|
|
|
|
post-build:
|
|
.for lang in ${LANGS}
|
|
cd ${WRKSRC}/po && msgfmt -f -v -o ${lang}.mo ${lang}.po
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gperiodic ${PREFIX}/bin
|
|
@${MKDIR} ${PREFIX}/share/gnome/applications
|
|
${INSTALL_DATA} ${WRKSRC}/gperiodic.desktop \
|
|
${PREFIX}/share/gnome/applications
|
|
@${MKDIR} ${PREFIX}/share/gnome/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/gperiodic.png \
|
|
${PREFIX}/share/gnome/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/gperiodic-crystal.png \
|
|
${PREFIX}/share/gnome/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 !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in AUTHORS ChangeLog README
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|