Stage support

This commit is contained in:
Antoine Brodin 2014-01-30 18:10:28 +00:00
parent 01181ffbfa
commit 5906fe9f8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341867
2 changed files with 5 additions and 7 deletions

View File

@ -19,12 +19,9 @@ USE_GNOME= gtk20
USES= gettext perl5 gmake pkgconfig
GNU_CONFIGURE= yes
MAN1= ${PORTNAME}.1
CPPFLAGS+= -I${LOCALBASE}/include -Wno-return-type
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|1.1.7|${PORTVERSION}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|"sensible-browser"|"xdg-open"|g' ${WRKSRC}/config.h
@ -41,12 +38,12 @@ post-build:
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.for lang in cs cz es fr sv
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/${PORTNAME}.mo
.endfor
.include <bsd.port.mk>

View File

@ -1,4 +1,5 @@
bin/gtimer
man/man1/gtimer.1.gz
share/locale/cs/LC_MESSAGES/gtimer.mo
share/locale/cz/LC_MESSAGES/gtimer.mo
share/locale/es/LC_MESSAGES/gtimer.mo