Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.22 2014/11/03 09:12:41 ratchov Exp $
  2. COMMENT= ISO 9660 filesystem and CD/DVD/BD creation tools
  3. DISTNAME= cdrtools-3.00
  4. REVISION= 1
  5. CATEGORIES= sysutils
  6. HOMEPAGE= http://cdrtools.sourceforge.net/private/cdrtools.html
  7. # mostly CDDL, some components GPL (see COPYING)
  8. PERMIT_PACKAGE_CDROM= Yes
  9. WANTLIB= c sndio
  10. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cdrtools/}
  11. BUILD_DEPENDS= devel/m4
  12. USE_GMAKE= Yes
  13. MAKE_ENV += MAKEPROG=${MAKE_PROGRAM}
  14. MAKE_FLAGS = GMAKE_NOWARN=true CC="${CC}" CC++="${CXX}" \
  15. LDCC="${CC}" LDCC++="${CXX}" \
  16. MKC++DEP="${CXX} -M" MKDEP="${CC} -M" \
  17. DYNLD="${CC}" DYNLDC++="${CXX}" \
  18. GCCOPTOPT="" RANLIB=ranlib AR=ar
  19. NO_TEST= Yes
  20. .if ${MACHINE} != "i386" || ${CC} != "cc"
  21. do-configure:
  22. cd ${WRKSRC}/RULES && \
  23. ln -sf i386-openbsd-cc.rul ${MACHINE}-openbsd-${CC}.rul
  24. .endif
  25. OBJ= OBJ/${MACHINE_ARCH}-openbsd-${CC}
  26. do-install:
  27. @cp ${WRKSRC}/mkisofs/mkisofs.8 ${WRKSRC}/mkisofs/mkisofs.1
  28. .for i in cdda2wav cdrecord mkisofs readcd
  29. ${INSTALL_PROGRAM} ${WRKBUILD}/$i/${OBJ}/$i ${PREFIX}/bin
  30. ${INSTALL_MAN} ${WRKSRC}/$i/$i.1 ${PREFIX}/man/man1
  31. .endfor
  32. .for i in devdump isodebug isodump isoinfo isovfy
  33. ${INSTALL_PROGRAM} ${WRKBUILD}/mkisofs/diag/${OBJ}/$i ${PREFIX}/bin
  34. .endfor
  35. ${INSTALL_MAN} ${WRKSRC}/mkisofs/diag/isoinfo.8 \
  36. ${PREFIX}/man/man1/isoinfo.1
  37. .for i in devdump.1 isovfy.1
  38. cd ${PREFIX}/man/man1 && ln -s isoinfo.1 $i
  39. .endfor
  40. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cdrtools
  41. ${INSTALL_DATA} ${WRKSRC}/README.OpenBSD ${PREFIX}/share/doc/cdrtools
  42. .include <bsd.port.mk>