- Support staging
- USES -> gmake
This commit is contained in:
parent
13101c94b4
commit
a13d44a2df
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348675
1 changed files with 12 additions and 14 deletions
|
@ -18,45 +18,43 @@ LIB_DEPENDS= slang.2:${PORTSDIR}/devel/libslang2
|
|||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
USES= gettext
|
||||
USE_GMAKE= yes
|
||||
USES= gettext gmake
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= SLANG_H_LOC="${LOCALBASE}/include/slang.h" \
|
||||
SLANG_LIB_LOC="${LOCALBASE}/lib" \
|
||||
LIBS="-lcurses -lintl"
|
||||
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
||||
|
||||
MAN1= pdmenu.1
|
||||
MAN5= pdmenurc.5
|
||||
PLIST_FILES= bin/pdmenu \
|
||||
etc/pdmenurc \
|
||||
share/locale/da/LC_MESSAGES/pdmenu.mo \
|
||||
share/locale/es/LC_MESSAGES/pdmenu.mo \
|
||||
share/locale/fr/LC_MESSAGES/pdmenu.mo \
|
||||
share/locale/ru/LC_MESSAGES/pdmenu.mo \
|
||||
man/man1/pdmenu.1.gz \
|
||||
man/man5/pdmenurc.5.gz \
|
||||
%%DATADIR%%/editdir.pl \
|
||||
%%DATADIR%%/showdir.pl
|
||||
PLIST_DIRS= %%DATADIR%%
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^LANGS/s|=.*$$|= da es fr ru|g' ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/pdmenu ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/pdmenurc ${PREFIX}/etc
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/pdmenu.man ${MANPREFIX}/man/man1/pdmenu.1
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/pdmenurc.man ${MAN5PREFIX}/man/man5/pdmenurc.5
|
||||
@${MKDIR} ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/*.pl ${DATADIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/pdmenu ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/pdmenurc ${STAGEDIR}${PREFIX}/etc
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/pdmenu.man ${STAGEDIR}${MANPREFIX}/man/man1/pdmenu.1
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/pdmenurc.man ${STAGEDIR}${MANPREFIX}/man/man5/pdmenurc.5
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/*.pl ${STAGEDIR}${DATADIR}
|
||||
.for lang in da es fr ru
|
||||
@${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/pdmenu.mo
|
||||
${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/pdmenu.mo
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${PREFIX}/bin/pdmenu
|
||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pdmenu
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue