From a13d44a2df172d40a941f495ab8263d22561c767 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Thu, 20 Mar 2014 10:13:21 +0000 Subject: - Support staging - USES -> gmake --- misc/pdmenu/Makefile | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'misc') diff --git a/misc/pdmenu/Makefile b/misc/pdmenu/Makefile index fa2fbd110e55..1402663615e7 100644 --- a/misc/pdmenu/Makefile +++ b/misc/pdmenu/Makefile @@ -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 -- cgit v1.2.3