Makefile 848 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $OpenBSD: Makefile,v 1.30 2017/05/04 19:14:00 espie Exp $
  2. COMMENT= binary editor and viewer
  3. VERSION= 1.40
  4. # Debian
  5. REV= 18
  6. DISTNAME= beav-140
  7. PKGNAME= beav-${VERSION}.${REV}
  8. REVISION = 1
  9. CATEGORIES= editors
  10. # GPLv2+
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB= c ncurses
  13. MASTER_SITES= ${MASTER_SITE_DEBIAN:=main/b/beav/}
  14. DISTFILES= beav_${VERSION}.orig.tar.gz
  15. PATCHFILES= beav_${VERSION}-${REV}.diff.gz
  16. PATCH_DIST_STRIP= -p1
  17. ALL_TARGET= beav
  18. MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} -DUNIX -DBSD"
  19. NO_TEST= Yes
  20. do-install:
  21. ${INSTALL_PROGRAM} ${WRKBUILD}/beav ${PREFIX}/bin
  22. ${INSTALL_MAN} ${WRKSRC}/beav.1 ${PREFIX}/man/man1
  23. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/beav
  24. ${INSTALL_DATA} ${WRKSRC}/beav140.txt ${PREFIX}/share/doc/beav/beav.txt
  25. @sed -i.beforesubst 's,%%PREFIX%%,${TRUEPREFIX},' ${PREFIX}/man/man1/beav.1
  26. .include <bsd.port.mk>