# New ports collection makefile for: transmission # Date created: 08 October 2005 # Whom: Mezz # # $FreeBSD$ # PORTNAME= transmission PORTVERSION= 0.3 CATEGORIES= net MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/ #MASTER_SITES= ${MASTER_SITE_LOCAL} #MASTER_SITE_SUBDIR= mezz DISTNAME= Transmission-${PORTVERSION} MAINTAINER= mezz@FreeBSD.org COMMENT= A free BitTorrent client written from scratch in C BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam USE_REINPLACE= yes HAS_CONFIGURE= yes USE_GETOPT_LONG=yes EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude macosx \ --exclude packageOSX.sh PLIST_FILES= bin/transmissioncli PORTDOCS= AUTHORS LICENSE NEWS README .if defined(WITHOUT_OPENSSL) CONFIGURE_ARGS+=--disable-openssl .else USE_OPENSSL= yes CONFIGURE_ARGS+=--openssl-include=${OPENSSLINC} \ --openssl-lib=${OPENSSLLIB} .endif pre-everything:: .if !defined(WITHOUT_OPENSSL) @${ECHO_MSG} "You may specify the following on the command line:" @${ECHO_MSG} " " .endif .if !defined(WITHOUT_OPENSSL) @${ECHO_MSG} "WITHOUT_OPENSSL=yes to disable OpenSSL support, using built-in SHA1 implementation. Warning, it is a bit slower if you use this option." | /usr/bin/fmt 75 75 .endif post-patch: @${REINPLACE_CMD} -e 's|cc|${CC}|g ; \ s|-g |${CFLAGS} ${CPPFLAGS} ${PTHREAD_CFLAGS} |g ; \ s|-pthread|${PTHREAD_LIBS}|g ; \ s|$$LINKLIBS ;|${LDFLAGS} $$LINKLIBS ;|g' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|-O3||g' \ ${WRKSRC}/Jamrules # jam -dx, it will giving a verbose of build. do-build: @(cd ${BUILD_WRKSRC} ; ${SETENV} ${MAKE_ENV} jam) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/transmissioncli ${PREFIX}/bin/ .ifndef (NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for i in ${PORTDOCS} @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} .endfor .endif .include