Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.13 2016/09/25 15:46:51 sthen Exp $
  2. COMMENT= extract various archive file formats
  3. V= 1.6.4
  4. ARCHIVE_V= 1.7
  5. PKGNAME= deco-archive-${V}
  6. CATEGORIES= archivers
  7. # GPLv3 only
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB= c
  10. MASTER_SITES= https://github.com/peha/
  11. MASTER_SITES0= https://github.com/peha/
  12. DISTFILES= deco-{deco/archive/}${V}${EXTRACT_SUFX} \
  13. deco-archive-{deco-archive/archive/}${ARCHIVE_V}${EXTRACT_SUFX}
  14. DECO= ${WRKDIR}/deco-${V}
  15. ARCHIVE= ${WRKDIR}/deco-archive-${ARCHIVE_V}
  16. RUN_DEPENDS= archivers/arc \
  17. archivers/bzip2 \
  18. archivers/cabextract \
  19. archivers/p7zip \
  20. archivers/lzop \
  21. archivers/rzip \
  22. archivers/unzip \
  23. archivers/zoo \
  24. audio/flac \
  25. rpm2cpio-*|rpm-*:converters/rpm2cpio
  26. MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} -D_BSD_SOURCE"
  27. NO_TEST= Yes
  28. do-build:
  29. cd ${DECO} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
  30. ${MAKE_FLAGS} -f ${MAKE_FILE}
  31. cd ${ARCHIVE} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
  32. ${MAKE_FLAGS} -f ${MAKE_FILE}
  33. do-install:
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/deco
  35. ${INSTALL_PROGRAM} ${DECO}/deco ${PREFIX}/bin
  36. .for i in LICENSE Makefile NEWS README.md config.mk
  37. rm ${ARCHIVE}/${i}
  38. .endfor
  39. cd ${ARCHIVE} && cp -R * ${PREFIX}/share/deco
  40. .include <bsd.port.mk>