aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/pcmanx/Makefile
blob: 6a4ee537d99822e7d6cdf2f8f9cb6eefc463f6cd (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Created by: chinsan <chinsan.tw@gmail.com>
# $FreeBSD$

PORTNAME=   pcmanx
PORTVERSION=    1.2
CATEGORIES= chinese net gnome
MASTER_SITES=   http://pcmanx-gtk2.googlecode.com/files/
DISTNAME=   ${PORTNAME}-gtk2-${PORTVERSION}

MAINTAINER= pclin@FreeBSD.org
COMMENT=    BBS client using GTK+ 2.x

LICENSE=    GPLv2

USE_XZ=     yes
USE_GNOME=  gtk20 intlhack
USES=       iconv gmake pkgconfig
GNU_CONFIGURE=  yes

OPTIONS_DEFINE= NLS DEBUG DOCKLET NOTIFIER LIBNOTIFY NANCY MOUSE EXTERNAL IPLOOKUP PROXY
OPTIONS_DEFAULT=    DOCKLET NOTIFIER NANCY MOUSE EXTERNAL

DOCKLET_DESC=   Docklet / system tray support
NOTIFIER_DESC=  Popup notifier support
LIBNOTIFY_DESC= Popup notifier support by libnotify
NANCY_DESC= Nancy bot support
MOUSE_DESC= Mouse click and wheel support
EXTERNAL_DESC=  External SSH/Telnet support
IPLOOKUP_DESC=  IP location lookup support
PROXY_DESC= Proxy support

MAN1=       pcmanx.1

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif

.if empty(PORT_OPTIONS:MDOCKLET)
CONFIGURE_ARGS+=--disable-docklet
.endif

.if empty(PORT_OPTIONS:MNOTIFIER)
CONFIGURE_ARGS+=--disable-notifier
.endif

.if ${PORT_OPTIONS:MLIBNOTIFY}
CONFIGURE_ARGS+=--enable-libnotify
LIB_DEPENDS+=   notify:${PORTSDIR}/devel/libnotify
.endif

.if empty(PORT_OPTIONS:MNANCY)
CONFIGURE_ARGS+=--disable-nancy
.endif

.if empty(PORT_OPTIONS:MMOUSE)
CONFIGURE_ARGS+=--disable-mouse
.endif

.if empty(PORT_OPTIONS:MEXTERNAL)
CONFIGURE_ARGS+=--disable-external
.endif

.if ${PORT_OPTIONS:MIPLOOKUP}
CONFIGURE_ARGS+=--enable-iplookup
.endif

.if ${PORT_OPTIONS:MPROXY}
CONFIGURE_ARGS+=--enable-proxy
.endif

post-install:
    @# create directory for user friendly
    ${MKDIR} ${DATADIR}/script/

.include <bsd.port.mk>