1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/www/aria/Makefile
Ade Lovett 3f651573ad Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".

For ports-in-waiting:

	USE_LIBTOOL=YES		->	USE_LIBTOOL_VER=13
	USE_AUTOCONF=YES	->	USE_AUTOCONF_VER=213
	USE_AUTOMAKE=YES	->	USE_AUTOMAKE_VER=14

Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
2004-03-14 06:17:56 +00:00

65 lines
1.7 KiB
Makefile

# New ports collection makefile for: aria
# Date created: 30 March 2001
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= aria
PORTVERSION= 1.0.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://rabien.virtualave.net/linux/storage/sources/ \
http://aria.rednoah.com/storage/sources/
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_LIBTOOL_VER=13
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= -I${LOCALBASE}/include -DHAVE_DECL_GETOPT
LDFLAGS= -L${LOCALBASE}/lib
post-extract:
@${RM} -f ${WRKSRC}/src/getopt*
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|-lssl|-lcrypto -lssl|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@${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
pre-build:
.for file in src/AppOption.cc src/HistoryWindow.cc src/RetrieveHTTP.cc \
src/RetrieveHTTP2.cc src/gui_file_open_and_save.cc
@cd ${WRKSRC} && ${MV} ${file} ${file}.pre_iconv \
&& iconv -c -t ascii ${file}.pre_iconv > ${file} || ${TRUE}
.endfor
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.euc ${DOCSDIR}
.endif
.include <bsd.port.mk>