Makefile 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # $OpenBSD: Makefile,v 1.5 2017/05/18 15:29:35 sthen Exp $
  2. ONLY_FOR_ARCHS= i386 amd64
  3. COMMENT= flash-ROM programmer for BIOS etc
  4. DISTNAME= flashrom-0.9.9
  5. REVISION= 1
  6. EXTRACT_SUFX= .tar.bz2
  7. CATEGORIES= sysutils
  8. HOMEPAGE= http://www.flashrom.org/
  9. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  10. # GPLv2
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB= c ftdi usb-1.0 usb z
  13. MASTER_SITES= http://download.flashrom.org/releases/
  14. # pciutils' libpci.a is linked statically; a patched version is required.
  15. BUILD_DEPENDS= sysutils/pciutils:patch
  16. RUN_DEPENDS= sysutils/dmidecode
  17. LIB_DEPENDS= devel/libusb-compat \
  18. devel/libftdi
  19. MAKE_FLAGS= LDFLAGS="-L./pciutils/lib" WARNERROR=no
  20. FAKE_FLAGS= PREFIX="${TRUEPREFIX}" MANDIR="${TRUEPREFIX}/man"
  21. USE_GMAKE= Yes
  22. NO_TEST= Yes
  23. pre-patch:
  24. mv ${WRKDIR}/sysutils/pciutils/pciutils-* ${WRKSRC}/pciutils
  25. do-configure:
  26. cd ${WRKSRC}/pciutils; ${MAKE_PROGRAM} CC="${CC}" OPT="${CFLAGS}"
  27. .include <bsd.port.mk>