diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-02-04 00:07:36 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-02-04 00:07:36 +0800 |
commit | 3cbade2daf4f30b7054896eeb44f554c44604786 (patch) | |
tree | 49c5b2d7aba82acfc8be45bc50c4a2d84fdc176a /sysutils | |
parent | f9775f3191de313033606df33ebb61f627ce28b1 (diff) | |
download | freebsd-ports-graphics-3cbade2daf4f30b7054896eeb44f554c44604786.tar.gz freebsd-ports-graphics-3cbade2daf4f30b7054896eeb44f554c44604786.tar.zst freebsd-ports-graphics-3cbade2daf4f30b7054896eeb44f554c44604786.zip |
- Bump PORTREVISION
- Use the new format for LIB_DEPENDS
- Reordering Options
- USES gmake instead of USE_GMAKE
- Move support for Buspirate into an OPTION
- Add FTDI to default Options
- Support STAGEDIR
- Change DOCS
PR: ports/186334
Submitted by: Hakisho Nukama <nukama@gmail.com>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/flashrom/Makefile | 70 |
1 files changed, 32 insertions, 38 deletions
diff --git a/sysutils/flashrom/Makefile b/sysutils/flashrom/Makefile index adad2bd528d..7f51521bd0e 100644 --- a/sysutils/flashrom/Makefile +++ b/sysutils/flashrom/Makefile @@ -3,6 +3,7 @@ PORTNAME= flashrom PORTVERSION= 0.9.7 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://download.flashrom.org/releases/ @@ -11,59 +12,52 @@ COMMENT= Utility for reading, writing, verifying, and erasing flash ROM chips LICENSE= GPLv2 -LIB_DEPENDS= pci:${PORTSDIR}/devel/libpci +LIB_DEPENDS= libpci.so:${PORTSDIR}/devel/libpci -OPTIONS_DEFINE= DMIDECODE DOCS FTDI -OPTIONS_DEFAULT= DMIDECODE DOCS +OPTIONS_DEFINE= BUSPIRATE DMIDECODE DOCS FTDI +OPTIONS_DEFAULT= DMIDECODE FTDI -DMIDECODE_DESC= Use dmidecode to gather DMI information -FTDI_DESC= Enable external FT2232SPI flasher support +BUSPIRATE_DESC= Enable buspirate support (broken) +DMIDECODE_DESC= Use dmidecode to gather DMI information +FTDI_DESC= Enable external FT2232SPI flasher support USE_BZIP2= yes -USE_GMAKE= yes -MAKE_JOBS_UNSAFE= yes +USES= gmake CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lc +MAKE_ENV= CONFIG_BUSPIRATE_SPI=no ONLY_FOR_ARCHS= amd64 i386 -PORTDOCS= ChangeLog COPYING README -PLIST_FILES= bin/${PORTNAME} +PORTDOCS= * -.if !defined(NO_INSTALL_MANPAGES) -MAN8= ${PORTNAME}.8 -.endif +DOCSRCDIR1= ${WRKSRC} +DOC_FILES1= ChangeLog README -NO_STAGE= yes -.include <bsd.port.options.mk> +DOCSRCDIR2= ${WRKSRC}/Documentation +DOCSDIR2= ${DOCSDIR}/Documentation +DOC_FILES2= *.txt -.if ${PORT_OPTIONS:MDMIDECODE} -RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode -.endif +PLIST_FILES= bin/${PORTNAME} \ + man/man8/${PORTNAME}.8.gz -.if ${PORT_OPTIONS:MFTDI} -USES+= pkgconfig -LIB_DEPENDS+= ftdi:${PORTSDIR}/devel/libftdi -.endif +BUSPIRATE_MAKE_ENV= CONFIG_BUSPIRATE_SPI=yes -post-patch: -.if ${PORT_OPTIONS:MFTDI} - @${REINPLACE_CMD} -e 's|-lusb")|-lusb") -lz|' ${WRKSRC}/Makefile -.else - @${REINPLACE_CMD} -e 's|2_SPI ?= yes|2_SPI ?= no|' ${WRKSRC}/Makefile -.endif +DMIDECODE_RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode + +FTDI_LIB_DEPENDS= libftdi.so:${PORTSDIR}/devel/libftdi +FTDI_USES= pkgconfig +FTDI_LDFLAGS= -lz +FTDI_MAKE_ENV_OFF= 2_SPI=no do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin -.if !defined(NO_INSTALL_MANPAGES) - ${MKDIR} ${MANPREFIX}/man/man8 - ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8 -.endif -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} -.endfor -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR2} + ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} .include <bsd.port.mk> |