openbsd-ports/misc/pdmenu/Makefile

54 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.24 2013/10/11 23:50:12 naddy Exp $
COMMENT= simple slang-based menu program
VERSION= 1.3.2
DISTNAME= pdmenu_${VERSION}
PKGNAME= pdmenu-${VERSION}
CATEGORIES= misc
HOMEPAGE= http://kitenet.net/programs/pdmenu/
# GPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c curses m slang
MASTER_SITES= ${MASTER_SITE_DEBIAN:=main/p/pdmenu/}
LIB_DEPENDS= devel/libslang
MODULES= devel/gettext
DESTDIRNAME= INSTALL_PREFIX
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf no-autoheader
AUTOCONF_VERSION= 2.61
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
#CONFIGURE_ARGS= --datadir=${PREFIX}/share/examples
CONFIGURE_ENV= LIBS="-lm -lcurses -lintl -liconv" \
SLANG_LIB_LOC=${DEPBASE}/lib \
SLANG_H_LOC=${DEPBASE}/include/slang.h
WRKDIST= ${WRKDIR}/pdmenu
NO_TEST= Yes
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu/newbie
${INSTALL_PROGRAM} ${WRKSRC}/pdmenu ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/examples/pdmenurc ${PREFIX}/share/examples/pdmenu
${INSTALL_MAN} ${WRKSRC}/doc/pdmenu.man ${PREFIX}/man/man1/pdmenu.1
${INSTALL_MAN} ${WRKSRC}/doc/pdmenurc.man ${PREFIX}/man/man5/pdmenurc.5
.for i in README ba.lpd editdir.pl pdmenurc pdmenurc.complex pdmenurc.monitor showdir.pl newbie/modem-check newbie/pdmenurc.newbie newbie/rpm-info-on-command
${INSTALL_SCRIPT} ${WRKSRC}/examples/$i ${PREFIX}/share/examples/pdmenu/$i
.endfor
.for lang in fr es ru
${INSTALL_DATA_DIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/pdmenu.mo
.endfor
.include <bsd.port.mk>