Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.32 2017/05/19 23:23:11 espie Exp $
  2. COMMENT= hfsplus filesystem access tool
  3. VERSION= 1.0.4
  4. DISTNAME= hfsplus_${VERSION}
  5. PKGNAME= hfsplus-${VERSION}
  6. REVISION= 6
  7. SHARED_LIBS= hfsp 0.0
  8. CATEGORIES= misc
  9. # GPL
  10. PERMIT_PACKAGE_CDROM= Yes
  11. WANTLIB= c
  12. MASTER_SITES= https://distfiles.nl/
  13. EXTRACT_SUFX= .src.tar.bz2
  14. USE_GMAKE= Yes
  15. AUTOCONF_VERSION= 2.59
  16. AUTOMAKE_VERSION= 1.9
  17. BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
  18. ${MODGNU_AUTOMAKE_DEPENDS}
  19. # needs the AM_PROG_LIBTOOL macro
  20. BUILD_DEPENDS+= devel/libtool
  21. CONFIGURE_STYLE= gnu
  22. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  23. LDFLAGS="-L${LOCALBASE}/lib" \
  24. CFLAGS="${CFLAGS} -fgnu89-inline"
  25. WRKDIST= ${WRKDIR}/hfsplus-${VERSION}
  26. DOC= bugs.html hfsp.html libhfsp.html
  27. post-patch:
  28. @cd ${WRKDIST} && ln -s ${LOCALBASE}/share/libtool/config/ltmain.sh \
  29. @cd ${WRKDIST} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  30. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  31. ${MAKE_PROGRAM} -f Makefile.cvs all
  32. post-install:
  33. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hfsplus/
  34. .for h in ${DOC}
  35. ${INSTALL_DATA} ${WRKSRC}/doc/${h} ${PREFIX}/share/doc/hfsplus/
  36. .endfor
  37. .include <bsd.port.mk>