Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.26 2016/04/26 16:37:47 naddy Exp $
  2. COMMENT= simple slang-based menu program
  3. VERSION = 1.3.4
  4. DISTNAME= pdmenu_${VERSION}
  5. PKGNAME= pdmenu-${VERSION}
  6. CATEGORIES= misc
  7. HOMEPAGE= http://kitenet.net/programs/pdmenu/
  8. # GPL
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= c curses m slang
  11. MASTER_SITES= ${MASTER_SITE_DEBIAN:=main/p/pdmenu/}
  12. LIB_DEPENDS= devel/libslang
  13. MODULES= devel/gettext
  14. DESTDIRNAME= INSTALL_PREFIX
  15. USE_GMAKE= Yes
  16. CONFIGURE_STYLE= autoconf no-autoheader
  17. AUTOCONF_VERSION= 2.61
  18. CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
  19. #CONFIGURE_ARGS= --datadir=${PREFIX}/share/examples
  20. CONFIGURE_ENV= LIBS="-lm -lcurses -lintl -liconv" \
  21. SLANG_LIB_LOC=${LOCALBASE}/lib \
  22. SLANG_H_LOC=${LOCALBASE}/include/slang.h
  23. WRKDIST= ${WRKDIR}/pdmenu
  24. NO_TEST= Yes
  25. do-install:
  26. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu
  27. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pdmenu/newbie
  28. ${INSTALL_PROGRAM} ${WRKSRC}/pdmenu ${PREFIX}/bin
  29. ${INSTALL_DATA} ${WRKSRC}/examples/pdmenurc ${PREFIX}/share/examples/pdmenu
  30. ${INSTALL_MAN} ${WRKSRC}/doc/pdmenu.man ${PREFIX}/man/man1/pdmenu.1
  31. ${INSTALL_MAN} ${WRKSRC}/doc/pdmenurc.man ${PREFIX}/man/man5/pdmenurc.5
  32. .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
  33. ${INSTALL_SCRIPT} ${WRKSRC}/examples/$i ${PREFIX}/share/examples/pdmenu/$i
  34. .endfor
  35. .for lang in fr es ru
  36. ${INSTALL_DATA_DIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
  37. ${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
  38. ${PREFIX}/share/locale/${lang}/LC_MESSAGES/pdmenu.mo
  39. .endfor
  40. .include <bsd.port.mk>