Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $OpenBSD: Makefile,v 1.78 2016/06/03 14:53:32 naddy Exp $
  2. COMMENT= GNU version of the traditional tape archiver
  3. DISTNAME= tar-1.29
  4. PKGNAME= g${DISTNAME}
  5. CATEGORIES= archivers
  6. HOMEPAGE= https://www.gnu.org/software/tar/
  7. MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
  8. # GPLv3+
  9. PERMIT_PACKAGE_CDROM= Yes
  10. MASTER_SITES= ${MASTER_SITE_GNU:=tar/}
  11. EXTRACT_SUFX= .tar.xz
  12. # fake WANTLIB to ensure updates occur for major changes in base even for static
  13. WANTLIB= c
  14. # only force dependencies for compressors that have a single-letter option
  15. RUN_DEPENDS= archivers/bzip2 archivers/xz
  16. CONFIGURE_STYLE=gnu
  17. CONFIGURE_ARGS= --program-prefix=g
  18. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  19. LDFLAGS="-L${LOCALBASE}/lib ${LDSTATIC}" \
  20. DEFAULT_ARCHIVE=/dev/rst0 \
  21. DEFAULT_RMT_COMMAND=/etc/rmt
  22. MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/build-aux
  23. # supply result to skip a test that will abort configure if run as root
  24. CONFIGURE_ENV+= gl_cv_func_mknod_works=no
  25. FLAVORS= static
  26. FLAVOR?=
  27. .if ${FLAVOR:Mstatic}
  28. BUILD_DEPENDS+= devel/gettext
  29. CONFIGURE_ENV+= SHLIBEXT=""
  30. LDSTATIC= ${STATIC}
  31. .else
  32. WANTLIB+= iconv intl
  33. LIB_DEPENDS+= devel/gettext
  34. LDSTATIC=
  35. .endif
  36. # autom4te
  37. TEST_DEPENDS= devel/autoconf/2.69
  38. TEST_ENV= AUTOCONF_VERSION=2.69
  39. # without GNU m4, commands with leading parenthesis are mis-expanded
  40. TEST_DEPENDS+= devel/m4
  41. TEST_ENV+= M4=${LOCALBASE}/bin/gm4
  42. # do not rebuild tar.info
  43. post-patch:
  44. touch -r ${WRKSRC}/doc/stamp-vti ${WRKSRC}/configure
  45. .include <bsd.port.mk>