Date: Sat, 23 Sep 2006 09:05:03 +0300 From: "Alex Samorukov" <samm@os2.kiev.ua> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/103504: [PATCH] palm/pilot-link: fix distfiles, options, added libusb support Message-ID: <1158991503.29447@samm.local> Resent-Message-ID: <200609230610.k8N6AIDt085113@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 103504 >Category: ports >Synopsis: [PATCH] palm/pilot-link: fix distfiles, options, added libusb support >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Sep 23 06:10:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Alex Samorukov >Release: FreeBSD 6.1-RELEASE i386 >Organization: Shevchenko Didkovskiy and Partners >Environment: System: FreeBSD 6.1-RELEASE #2: Wed May 17 22:22:18 EEST 2006 root@samm.local:/usr/obj/usr/src/sys/SAMMKRNL >Description: * removed downloads.pilot-link.org from distfiles. This is web redirector, which work only with browser and redirect to hosts with non-standart ports. I was unable to fetch port with this host (btw that is commiter error). Added www.mirrorservice.org and katerina.frederic.k12.wi.us * Fixed OPTIONS processing. It was broken (bsd.port.mk was included). * Added (optional) usb support with libusb. >How-To-Repeat: >Fix: diff -ruN --exclude=CVS /usr/ports/palm/pilot-link/Makefile /usr/home/samm/tmp/pilot-link/Makefile --- /usr/ports/palm/pilot-link/Makefile Sat Sep 23 08:52:21 2006 +++ /usr/home/samm/tmp/pilot-link/Makefile Sat Sep 23 08:45:04 2006 @@ -9,13 +9,13 @@ DISTVERSION= 0.12.1 PORTEPOCH= 1 CATEGORIES= palm comms -MASTER_SITES= http://downloads.pilot-link.org/ +MASTER_SITES= http://www.mirrorservice.org/sites/master.us.finkmirrors.net/distfiles/ \ + http://katerina.frederic.k12.wi.us/mirror/pilot-link/ MAINTAINER= samm@os2.kiev.ua COMMENT= Suite of tools used to connect and sync your Palm handled USE_BZIP2= yes -FETCH_CMD= /usr/bin/fetch -pRr USE_ICONV= yes USE_GETOPT_LONG=yes USE_GNOME= gnometarget gnomehack @@ -23,17 +23,26 @@ CFLAGS+= -I${WRKSRC}/popt -I${LOCALBASE}/include CONFIGURE_ARGS+=--with-libiconv=${LOCALBASE} --with-included-popt --enable-conduits \ --mandir=${MANPREFIX}/man -CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS:S/-Werror//}" # clear -Werror from CFLAGS +CONFIGURE_ENV+= CFLAGS="${CFLAGS:S/-Werror//}" # clear -Werror from CFLAGS USE_LDCONFIG= yes OPTIONS= PNG "build with png support" off \ - THREADS "built-in thread safety" on + THREADS "built-in thread safety" on \ + USB "Compile with USB via libusb support (READ MANUAL!)" off + +.include <bsd.port.pre.mk> .if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --enable-threads LDFLAGS+= ${PTHREAD_LIBS} .endif +.if defined(WITH_USB) +LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb +CONFIGURE_ARGS+=--enable-libusb +CONFIGURE_ENV+="LDFLAGS=${LDFLAGS} -L${PREFIX}/lib -lusb" +.endif + .if defined(WITH_PNG) LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png CONFIGURE_ARGS+= --with-libpng=${PREFIX} @@ -43,4 +52,4 @@ .include "${.CURDIR}/manpages.mk" -.include <bsd.port.mk> +.include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1158991503.29447>