From 0d3389bd1ea809bdf8dcacf3fb0e338560520e87 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sat, 18 Aug 2001 09:22:52 +0000 Subject: - Support PTHREAD_CFLAGS properly - Support install macros PR: 29820 Submitted by: KATO Tsuguru --- ftp/axel/Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'ftp') diff --git a/ftp/axel/Makefile b/ftp/axel/Makefile index 36eceed994ca..f042cda8bec5 100644 --- a/ftp/axel/Makefile +++ b/ftp/axel/Makefile @@ -17,15 +17,23 @@ LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt \ intl:${PORTSDIR}/devel/gettext USE_GMAKE= yes -CFLAGS+= -I${LOCALBASE}/include +CFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} MAKE_ENV= LFLAGS="-L${LOCALBASE}/lib -lgnugetopt -lintl" -MANCOMPRESSED= no -MAN1= axel.1 +MAN1= axel.1 post-patch: @${PERL} -pi -e "s,-pthread,${PTHREAD_LIBS},g ; \ s,^(CFLAGS = -O3),#\1,g ; \ s,gcc,${CC},g" ${WRKSRC}/Makefile +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/axel ${PREFIX}/bin/axel + ${INSTALL_DATA} ${WRKSRC}/axelrc.example ${PREFIX}/etc/axelrc + ${INSTALL_MAN} ${WRKSRC}/axel.1 ${PREFIX}/man/man1/axel.1 +.for lang in de nl + ${INSTALL_DATA} ${WRKSRC}/${lang}.mo \ + ${PREFIX}/share/locale/${lang}/LC_MESSAGES/axel.mo +.endfor + .include -- cgit v1.2.3