summaryrefslogtreecommitdiff
path: root/net/amule/options.mk
blob: 8d31f5e48cacde0b99d83470d3984bbf0f3b3db3 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# $NetBSD: options.mk,v 1.1 2009/06/06 13:08:27 obache Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.amule
PKG_SUPPORTED_OPTIONS=	amule-monolithic
PKG_SUPPORTED_OPTIONS+=	amule-gui amule-daemon amule-cmd amule-webserver
PKG_SUPPORTED_OPTIONS+=	amule-cas amule-wxcas amule-ed2k amule-alc amule-alcc
PKG_SUPPORTED_OPTIONS+=	debug geoip upnp
PKG_SUGGESTED_OPTIONS=	amule-monolithic amule-ed2k upnp

.include "../../mk/bsd.options.mk"

PLIST_VARS+=	share skins alc alcc amule ed2k daemon gui cmd web cas wxcas

###
### monolithic aMule app
###
.if !empty(PKG_OPTIONS:Mamule-monolithic)
CONFIGURE_ARGS+=	--enable-monolithic
PLIST.amule=		yes
PLIST.share=		yes
PLIST.skins=		yes
.else
CONFIGURE_ARGS+=	--disable-monolithic
.endif

###
### aMule daemon version
###
.if !empty(PKG_OPTIONS:Mamule-daemon)
CONFIGURE_ARGS+=	--enable-amule-daemon
PLIST.daemon=		yes
.else
CONFIGURE_ARGS+=	--disable-amule-daemon
.endif

###
### aMule remote GUI
###
.if !empty(PKG_OPTIONS:Mamule-gui)
CONFIGURE_ARGS+=	--enable-amule-gui
PLIST.gui=		yes
PLIST.skins=		yes
.else
CONFIGURE_ARGS+=	--disable-amule-gui
.endif

###
### aMule command line client
###
.if !empty(PKG_OPTIONS:Mamule-cmd)
CONFIGURE_ARGS+=	--enable-amulecmd
PLIST.cmd=		yes
.else
CONFIGURE_ARGS+=	--disable-amulecmd
.endif

###
### aMule WebServer
###
.if !empty(PKG_OPTIONS:Mamule-webserver)
CONFIGURE_ARGS+=	--enable-webserver
PLIST.web=		yes
PLIST.share=		yes
.else
CONFIGURE_ARGS+=	--disable-webserver
.endif

###
### C aMule Statistics
###
.if !empty(PKG_OPTIONS:Mamule-cas)
.include "../../graphics/gd/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-cas
CONFIGURE_ARGS+=	--with-gdlib-config=${BUILDLINK_PREFIX.gd}/bin/gdlib-config
PLIST.cas=		yes
.else
CONFIGURE_ARGS+=	--disable-cas
.endif

###
### aMule GUI Statistics
###
.if !empty(PKG_OPTIONS:Mamule-wxcas)
CONFIGURE_ARGS+=	--enable-wxcas
PLIST.wxcas=		yes
.else
CONFIGURE_ARGS+=	--disable-wxcas
.endif

###
### aMule ed2k links handler
###
.if !empty(PKG_OPTIONS:Mamule-ed2k)
CONFIGURE_ARGS+=	--enable-ed2k
PLIST.ed2k=		yes
.else
CONFIGURE_ARGS+=	--disable-ed2k
.endif

###
### aMule LinkCreator GUI version
###
.if !empty(PKG_OPTIONS:Mamule-alc)
CONFIGURE_ARGS+=	--enable-alc
PLIST.alc=		yes
.else
CONFIGURE_ARGS+=	--disable-alc
.endif

###
### aMule LinkCreator for console
###
.if !empty(PKG_OPTIONS:Mamule-alcc)
CONFIGURE_ARGS+=	--enable-alcc
PLIST.alcc=		yes
.else
CONFIGURE_ARGS+=	--disable-alcc
.endif

###
### Additional debugging output
###
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=	--enable-debug
.else
CONFIGURE_ARGS+=	--disable-debug
.endif

###
### GeoIP IP2Country support
###
.if !empty(PKG_OPTIONS:Mgeoip)
.include "../../net/GeoIP/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-geoip
.else
CONFIGURE_ARGS+=	--disable-geoip
.endif

###
### UPnP support
###
.if !empty(PKG_OPTIONS:Mupnp)
BUILDLINK_API_DEPENDS.libupnp+=	libupnp>=1.6.6
.include "../../net/libupnp/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-upnp
CONFIGURE_ARGS+=	--with-libupnp-prefix=${BUILDLINK_PREFIX.libupnp}
.else
CONFIGURE_ARGS+=	--disable-upnp
.endif

.if !empty(PKG_OPTIONS:Mamule-alc) || \
	!empty(PKG_OPTIONS:Mamule-monolithic) || \
	!empty(amule-wxcas) || \
	!empty(amule-gui)
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.endif