- stagify
- fix build without gcc - remove reference to freebsd 7.x Approved by: portmgr (blanket)
This commit is contained in:
parent
34c4a6789a
commit
0697fbeccb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342362
2 changed files with 7 additions and 14 deletions
|
@ -14,20 +14,12 @@ LICENSE= GPLv2
|
|||
|
||||
USE_BZIP2= yes
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MAN1= usb_modeswitch.1
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 800000
|
||||
BROKEN= does not compile on FreeBSD 7.X
|
||||
.endif
|
||||
pre-patch:
|
||||
${REINPLACE_CMD} 's/gcc/${CC}/' ${WRKSRC}/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/usb_modeswitch.conf ${PREFIX}/etc/usb_modeswitch.conf.sample
|
||||
${INSTALL_MAN} ${WRKSRC}/usb_modeswitch.1 ${PREFIX}/man/man1
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/usb_modeswitch ${STAGEDIR}${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/usb_modeswitch.conf ${STAGEDIR}${PREFIX}/etc/usb_modeswitch.conf.sample
|
||||
${INSTALL_MAN} ${WRKSRC}/usb_modeswitch.1 ${STAGEDIR}${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
sbin/usb_modeswitch
|
||||
etc/usb_modeswitch.conf.sample
|
||||
man/man1/usb_modeswitch.1.gz
|
||||
@exec if [ ! -f %D/etc/usb_modeswitch.conf ] ; then cp -p %D/%F %B/usb_modeswitch.conf; fi
|
||||
@unexec if cmp -s %D/etc/usb_modeswitch.conf.sample %D/etc/usb_modeswitch.conf; then rm -f %D/etc/usb_modeswitch.conf ; fi
|
||||
|
|
Loading…
Reference in a new issue