aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/transmission/Makefile
blob: f69ba16916e067076bfdd69488c891ce2197f6a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# New ports collection makefile for:    transmission
# Date created:             08 October 2005
# Whom:                 Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   transmission
PORTVERSION=    0.4
CATEGORIES= net-p2p
MASTER_SITES=   ${MASTER_SITE_LOCAL} \
        http://download.m0k.org/${PORTNAME}/files/
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

CFLAGS+=    -Wall -W ${CPPFLAGS}
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-prefix=${OPENSSLBASE}
.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." | ${FMT} 75 75
.endif

post-patch:
    @${REINPLACE_CMD} -e '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 -dx)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/transmissioncli ${PREFIX}/bin/
.ifndef (NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
ref='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/plain/games/block?id=e20fd321eedb0174696cac5aedbbab9200a35a31'>plain d---------blockade217logstatsplain d---------blue217logstatsplain d---------bnetd217logstatsplain d---------bogged217logstatsplain d---------bombermaze185logstatsplain d---------bs217logstatsplain d---------bugsx217logstatsplain d---------cgoban217logstatsplain d---------columns217logstatsplain d---------connect4217logstatsplain d---------corewars217logstatsplain d---------cosmo217logstatsplain d---------crafty-open-large217logstatsplain d---------crafty-open-medium217logstatsplain d---------crafty-open-rock217logstatsplain d---------crafty-open-small217logstatsplain d---------crafty217logstatsplain d---------crossfire-client251logstatsplain d---------crossfire-server251logstatsplain d---------crossfire251logstatsplain d---------cursive217logstatsplain d---------digger-vgl217logstatsplain d---------dontspace185logstatsplain d---------doom217logstatsplain d---------dopewars217logstatsplain d---------drm217logstatsplain d---------dungeon217logstatsplain d---------empire217logstatsplain d---------fgfs-base302logstatsplain d---------fkiss185logstatsplain d---------flightgear-data302logstatsplain d---------flightgear302logstatsplain d---------flying217logstatsplain d---------freeciv-gtk149logstatsplain d---------freeciv-gtk2185logstatsplain d---------freeciv185logstatsplain d---------freesweep217logstatsplain d---------frotz217logstatsplain d---------galaxis217logstatsplain d---------garith217logstatsplain d---------gcompris217logstatsplain d---------gcompris2217logstatsplain d---------gemdropx217logstatsplain d---------glasteroids217logstatsplain d---------gleyes217logstatsplain d---------glife217logstatsplain d---------gltron217logstatsplain d---------gma217logstatsplain d---------gno3dtet217logstatsplain d---------gnocatan217logstatsplain d---------gnome-games217logstatsplain d---------gnomechess217logstatsplain d---------gnomegames217logstatsplain d---------gnomegames2217logstatsplain d---------gnomememoryblocks185logstatsplain d---------gnuchess217logstatsplain d---------gnugo217logstatsplain d---------gnushogi217logstatsplain d---------golddig217logstatsplain d---------gracer217logstatsplain d---------gru185logstatsplain d---------gtetrinet185logstatsplain d---------gtkabale217logstatsplain d---------gtkballs217logstatsplain d---------halflifeserver185logstatsplain d---------heretic217logstatsplain d---------hex217logstatsplain d---------icbm3d217logstatsplain d---------ifm217logstatsplain d---------imaze217logstatsplain d---------inform217logstatsplain d---------ishido185logstatsplain d---------jetpack217logstatsplain d---------jzip217logstatsplain d---------kbubbles217logstatsplain d---------kdegames11185logstatsplain d---------kdegames2185logstatsplain d---------kdegames3185logstatsplain d---------kdegames4185logstatsplain d---------klondike185logstatsplain d---------krogue217logstatsplain d---------krubik217logstatsplain d---------ktamaga217logstatsplain d---------ladder217logstatsplain d---------libshhcards217logstatsplain d---------lincity217logstatsplain d---------linuxdoom259logstatsplain d---------maelstrom217logstatsplain d---------mangband217logstatsplain d---------merlin217logstatsplain d---------mindfocus217logstatsplain d---------mirrormagic217logstatsplain d---------miscom217logstatsplain d---------nethack-gtk217logstatsplain d---------nethack-qt217logstatsplain d---------nethack217logstatsplain d---------nethack3-tty217logstatsplain d---------nethack3217logstatsplain d---------nethack32-gtk217logstatsplain d---------nethack32217logstatsplain d---------nethack33-nox11217logstatsplain d---------nethack33-qt217logstatsplain d---------nethack33217logstatsplain d---------nethack34-nox11217logstatsplain d---------nethack34-qt217logstatsplain d---------nethack34217logstatsplain d---------netrek-BRMH-bin224logstatsplain d---------netrek-COW3-bin224logstatsplain d---------netris217logstatsplain d---------omega217logstatsplain d---------oneko-sakura185logstatsplain d---------oneko185logstatsplain d---------oonsoo217logstatsplain d---------phalanx217logstatsplain d---------pioneers217logstatsplain d---------pkg35logstatsplain d---------pmars217logstatsplain d---------powerpak217logstatsplain d---------pp217logstatsplain d---------ptkei217logstatsplain d---------pysol185logstatsplain d---------pythoong217logstatsplain d---------qcc185logstatsplain d---------qix300logstatsplain d---------qstat217logstatsplain d---------quakeforge299logstatsplain d---------quakeserver251logstatsplain d---------rocksndiamonds217logstatsplain d---------rollemup217logstatsplain d---------rt2-demo217logstatsplain d---------rtb217logstatsplain d---------rubix217logstatsplain d---------seabattle217logstatsplain d---------seahaven217logstatsplain d---------sl185logstatsplain d---------sokoban217logstatsplain d---------sol217logstatsplain d---------speak185logstatsplain d---------spellcast217logstatsplain d---------speyes217logstatsplain d---------spider217logstatsplain d---------starlanes217logstatsplain d---------sxsame217logstatsplain d---------tank217logstatsplain d---------tetrinet-x217logstatsplain d---------tinymux217logstatsplain d---------tkmoo217logstatsplain d---------tksol217logstatsplain d---------trojka256logstatsplain d---------tvp217logstatsplain d---------uox3256logstatsplain d---------wmeyes217logstatsplain d---------wmminichess217logstatsplain d---------wmtictactoe217logstatsplain d---------wmtimebomb217logstatsplain d---------wolfpack251logstatsplain d---------wordplay217logstatsplain d---------x3eyes185logstatsplain d---------xabacus217logstatsplain d---------xasteroids217logstatsplain d---------xataxx217logstatsplain d---------xbaby185logstatsplain d---------xbat217logstatsplain d---------xbattle217logstatsplain d---------xbill217logstatsplain d---------xbl217logstatsplain d---------xblackjack217logstatsplain d---------xblast217logstatsplain d---------xblood217logstatsplain d---------xbloody185logstatsplain d---------xboard185logstatsplain d---------xboing