aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-03-20 10:13:21 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-03-20 10:13:21 +0000
commita13d44a2df172d40a941f495ab8263d22561c767 (patch)
tree08a5502b9dd54384cd9dcb296ebc153380173dd0 /misc
parent13101c94b4cdc3b68c09b3d62fc2f04738d6f4c0 (diff)
- Support staging
- USES -> gmake
Notes
Notes: svn path=/head/; revision=348675
Diffstat (limited to 'misc')
-rw-r--r--misc/pdmenu/Makefile26
1 files changed, 12 insertions, 14 deletions
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 <bsd.port.mk>