Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= flashrom |
8 |
PORTNAME= flashrom |
9 |
PORTVERSION= 0.9.5.2 |
9 |
PORTVERSION= 0.9.6.1 |
10 |
CATEGORIES= sysutils |
10 |
CATEGORIES= sysutils |
11 |
MASTER_SITES= http://download.flashrom.org/releases/ |
11 |
MASTER_SITES= http://download.flashrom.org/releases/ |
12 |
|
12 |
|
Lines 16-26
Link Here
|
16 |
LICENSE= GPLv2 |
16 |
LICENSE= GPLv2 |
17 |
LICENSE_FILE= ${WRKSRC}/COPYING |
17 |
LICENSE_FILE= ${WRKSRC}/COPYING |
18 |
|
18 |
|
19 |
LIB_DEPENDS= pci.3:${PORTSDIR}/devel/libpci |
19 |
LIB_DEPENDS= pci:${PORTSDIR}/devel/libpci |
20 |
|
20 |
|
21 |
OPTIONS= DMIDECODE "Use dmidecode to gather DMI information" on \ |
21 |
OPTIONS_DEFINE= DMIDECODE DOCS FTDI |
22 |
FTDI "Enable external FT2232SPI flasher support" off |
22 |
OPTIONS_DEFAULT= DMIDECODE DOCS |
23 |
|
23 |
|
|
|
24 |
DMIDECODE_DESC= Use dmidecode to gather DMI information |
25 |
FTDI_DESC= Enable external FT2232SPI flasher support |
26 |
|
24 |
USE_BZIP2= yes |
27 |
USE_BZIP2= yes |
25 |
USE_GMAKE= yes |
28 |
USE_GMAKE= yes |
26 |
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
29 |
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
Lines 37-53
Link Here
|
37 |
|
40 |
|
38 |
.include <bsd.port.options.mk> |
41 |
.include <bsd.port.options.mk> |
39 |
|
42 |
|
40 |
.if !defined(WITHOUT_DMIDECODE) |
43 |
.if ${PORT_OPTIONS:MDMIDECODE} |
41 |
RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode |
44 |
RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode |
42 |
.endif |
45 |
.endif |
43 |
|
46 |
|
44 |
.if defined(WITH_FTDI) |
47 |
.if ${PORT_OPTIONS:MFTDI} |
45 |
USE_GNOME= pkgconfig |
48 |
USE_PKGCONFIG= build |
46 |
LIB_DEPENDS+= ftdi.19:${PORTSDIR}/devel/libftdi |
49 |
LIB_DEPENDS+= ftdi:${PORTSDIR}/devel/libftdi |
47 |
.endif |
50 |
.endif |
48 |
|
51 |
|
49 |
post-patch: |
52 |
post-patch: |
50 |
.if defined(WITH_FTDI) |
53 |
.if ${PORT_OPTIONS:MFTDI} |
51 |
@${REINPLACE_CMD} -e 's|-lusb")|-lusb") -lz|' ${WRKSRC}/Makefile |
54 |
@${REINPLACE_CMD} -e 's|-lusb")|-lusb") -lz|' ${WRKSRC}/Makefile |
52 |
.else |
55 |
.else |
53 |
@${REINPLACE_CMD} -e 's|2_SPI ?= yes|2_SPI ?= no|' ${WRKSRC}/Makefile |
56 |
@${REINPLACE_CMD} -e 's|2_SPI ?= yes|2_SPI ?= no|' ${WRKSRC}/Makefile |
Lines 59-65
Link Here
|
59 |
${MKDIR} ${MANPREFIX}/man/man8 |
62 |
${MKDIR} ${MANPREFIX}/man/man8 |
60 |
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8 |
63 |
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8 |
61 |
.endif |
64 |
.endif |
62 |
.if !defined(NOPORTDOCS) |
65 |
.if ${PORT_OPTIONS:MDOCS} |
63 |
${MKDIR} ${DOCSDIR} |
66 |
${MKDIR} ${DOCSDIR} |
64 |
.for i in ${PORTDOCS} |
67 |
.for i in ${PORTDOCS} |
65 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
68 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |