Makefile 690 B

123456789101112131415161718192021222324252627282930
  1. # $OpenBSD: Makefile,v 1.32 2016/10/01 11:54:16 naddy Exp $
  2. COMMENT= strip TeX/LaTeX codes from a file
  3. DISTNAME= opendetex-2.8.1
  4. PKGNAME= detex-2.8.1
  5. CATEGORIES= print
  6. HOMEPAGE= https://code.google.com/archive/p/opendetex/
  7. MASTER_SITES= ${MASTER_SITE_GOOGLECODE:=opendetex/}
  8. EXTRACT_SUFX= .tar.bz2
  9. # NCSA/University of Illinois Open Source License
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB= c
  12. MAKE_FLAGS= DESTDIR="${LOCALBASE}/bin" CFLAGS="${CFLAGS}"
  13. WRKDIST= ${WRKDIR}/opendetex
  14. do-install:
  15. ${INSTALL_PROGRAM} ${WRKSRC}/detex ${PREFIX}/bin
  16. ${INSTALL_MAN} ${WRKSRC}/detex.1l ${PREFIX}/man/man1/detex.1
  17. do-test:
  18. cd ${WRKBUILD} && perl ${WRKSRC}/test.pl
  19. .include <bsd.port.mk>