1999-04-08 17:50:35 +00:00
|
|
|
# New ports collection makefile for: gtimer
|
|
|
|
# Date created: 25 February 1999
|
1999-06-19 08:26:18 +00:00
|
|
|
# Whom: Chris Piazza <cpiazza@FreeBSD.org>
|
1999-04-08 17:50:35 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1999-04-08 17:50:35 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= gtimer
|
2010-06-05 21:46:47 +00:00
|
|
|
PORTVERSION= 2.0.0
|
1999-04-08 17:50:35 +00:00
|
|
|
CATEGORIES= deskutils
|
2010-06-05 21:46:47 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
|
1999-04-08 17:50:35 +00:00
|
|
|
|
2000-06-20 21:45:58 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= A timer for your personal activities
|
1999-04-08 17:50:35 +00:00
|
|
|
|
2010-06-05 21:46:47 +00:00
|
|
|
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
|
|
|
|
|
|
|
|
USE_XORG= xscrnsaver
|
|
|
|
USE_GNOME= gtk20
|
|
|
|
USE_PERL5_BUILD=yes
|
|
|
|
USE_GETTEXT= yes
|
2000-10-05 06:36:23 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2010-06-05 21:46:47 +00:00
|
|
|
|
|
|
|
MAN1= ${PORTNAME}.1
|
1999-05-29 03:56:15 +00:00
|
|
|
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
1999-04-08 17:50:35 +00:00
|
|
|
|
2003-08-29 17:59:16 +00:00
|
|
|
post-patch:
|
2010-06-05 21:46:47 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|1.1.7|${PORTVERSION}|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|"sensible-browser"|"xdg-open"|g' ${WRKSRC}/config.h
|
|
|
|
.for file in project.c task.c
|
|
|
|
@${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${WRKSRC}/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@(cd ${WRKSRC} && ${PERL} ./txt2h.pl < ChangeLog > changelog.h)
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.for lang in cs cz es fr sv
|
|
|
|
cd ${WRKSRC}/po && ${LOCALBASE}/bin/msgfmt -o ${lang}.mo ${lang}.po
|
|
|
|
.endfor
|
2003-08-29 17:59:16 +00:00
|
|
|
|
2010-06-05 21:46:47 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
|
|
|
|
.for lang in cs cz es fr sv
|
|
|
|
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
|
|
|
|
${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
|
|
|
|
.endfor
|
1999-05-05 14:22:28 +00:00
|
|
|
|
1999-04-08 17:50:35 +00:00
|
|
|
.include <bsd.port.mk>
|