diff options
author | eadler <eadler@FreeBSD.org> | 2014-02-03 03:40:24 +0800 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2014-02-03 03:40:24 +0800 |
commit | 574235b00b5ae7c7186de9d571d1a1eacbf2b849 (patch) | |
tree | b7b80ee0e3954c065881d2b7e6d1d47bffff7c10 /sysutils | |
parent | ddf09013c4fdfe948a7b73827f96ab26aaf0bb7e (diff) | |
download | freebsd-ports-gnome-574235b00b5ae7c7186de9d571d1a1eacbf2b849.tar.gz freebsd-ports-gnome-574235b00b5ae7c7186de9d571d1a1eacbf2b849.tar.zst freebsd-ports-gnome-574235b00b5ae7c7186de9d571d1a1eacbf2b849.zip |
- stagify
- fix build without gcc
- remove reference to freebsd 7.x
Approved by: portmgr (blanket)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/usb_modeswitch/Makefile | 20 | ||||
-rw-r--r-- | sysutils/usb_modeswitch/pkg-plist | 1 |
2 files changed, 7 insertions, 14 deletions
diff --git a/sysutils/usb_modeswitch/Makefile b/sysutils/usb_modeswitch/Makefile index f00f178130f3..569567142ca8 100644 --- a/sysutils/usb_modeswitch/Makefile +++ b/sysutils/usb_modeswitch/Makefile @@ -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> diff --git a/sysutils/usb_modeswitch/pkg-plist b/sysutils/usb_modeswitch/pkg-plist index 74c744143eab..c441da9b2527 100644 --- a/sysutils/usb_modeswitch/pkg-plist +++ b/sysutils/usb_modeswitch/pkg-plist @@ -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 |