diff options
Diffstat (limited to 'www/aria/Makefile')
-rw-r--r-- | www/aria/Makefile | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/www/aria/Makefile b/www/aria/Makefile index 51461123389..7d108022239 100644 --- a/www/aria/Makefile +++ b/www/aria/Makefile @@ -6,43 +6,51 @@ # PORTNAME= aria -PORTVERSION= 0.10.2.t5 -PORTREVISION= 1 +PORTVERSION= 1.0.0 CATEGORIES= www MASTER_SITES= http://rabien.virtualave.net/linux/storage/sources/ \ http://aria.rednoah.com/storage/sources/ -DISTNAME= ${PORTNAME}-${PORTVERSION:S/.t/test/} -MAINTAINER= nakai@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Yet another download tool USE_BZIP2= yes +USE_X_PREFIX= yes USE_GNOME= gtk12 USE_OPENSSL= yes +USE_GETOPT_LONG=yes +USE_REINPLACE= yes USE_GMAKE= yes -USE_X_PREFIX= yes USE_LIBTOOL= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" -.include <bsd.port.pre.mk> +CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" -.if ${OSVERSION} >= 500113 -BROKEN= "Does not build" -.endif +CPPFLAGS= -I${LOCALBASE}/include -DHAVE_DECL_GETOPT +LDFLAGS= -L${LOCALBASE}/lib + +post-extract: + @${RM} -f ${WRKSRC}/src/getopt* -pre-patch: - @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g; \ - s|-lssl|-lcrypto -lssl|g; \ +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|-lssl|-lcrypto -lssl|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure - @${PERL} -pi -e 's|^CXXFLAGS.*|CXXFLAGS = \@CXXFLAGS\@|' \ + @${REINPLACE_CMD} -e 's| -O2 -Wall | @CXXFLAGS@ |g ; \ + s|getopt.c getopt1.c getopt.h||g ; \ + s|getopt.o getopt1.o||g ; \ + s|\.deps/getopt.P ||g ; \ + s|\.deps/getopt1.P ||g' ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e 's| -O2 -Wall | @CXXFLAGS@ |g' \ ${WRKSRC}/src/Makefile.in + @${REINPLACE_CMD} -e 's|"getopt.h"|<getopt.h>|g' \ + ${WRKSRC}/src/main.cc post-install: .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME}/ - ${INSTALL_DATA} ${WRKSRC}/README.euc ${PREFIX}/share/doc/${PORTNAME}/ + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.euc ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |