aboutsummaryrefslogtreecommitdiffstats
path: root/misc/pdmenu
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-03-20 18:13:21 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-03-20 18:13:21 +0800
commit598e93546ddd40d412eb45b8fe54d0e1df5c6bf7 (patch)
tree08a5502b9dd54384cd9dcb296ebc153380173dd0 /misc/pdmenu
parenta356585789f16200f4af502f07afe38a7a7cfab0 (diff)
downloadfreebsd-ports-gnome-598e93546ddd40d412eb45b8fe54d0e1df5c6bf7.tar.gz
freebsd-ports-gnome-598e93546ddd40d412eb45b8fe54d0e1df5c6bf7.tar.zst
freebsd-ports-gnome-598e93546ddd40d412eb45b8fe54d0e1df5c6bf7.zip
- Support staging
- USES -> gmake
Diffstat (limited to 'misc/pdmenu')
-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>