Lines 6-20
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= xfce4-netload-plugin |
8 |
PORTNAME= xfce4-netload-plugin |
9 |
PORTVERSION= 1.1.0 |
9 |
PORTVERSION= 1.2.0 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= sysutils xfce |
10 |
CATEGORIES= sysutils xfce |
12 |
MASTER_SITES= ${MASTER_SITE_XFCE} |
11 |
MASTER_SITES= ${MASTER_SITE_XFCE} |
13 |
MASTER_SITE_SUBDIR= src/panel-plugins/${PORTNAME}/${PORTVERSION:R} |
12 |
MASTER_SITE_SUBDIR= src/panel-plugins/${PORTNAME}/${PORTVERSION:R} |
14 |
DIST_SUBDIR= xfce4 |
13 |
DIST_SUBDIR= xfce4 |
15 |
|
14 |
|
16 |
MAINTAINER= demon@FreeBSD.org |
15 |
MAINTAINER= demon@FreeBSD.org |
17 |
COMMENT= Network Load plugin for XFce4 |
16 |
COMMENT= Network load plugin for Xfce |
18 |
|
17 |
|
19 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
20 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
Lines 23-33
Link Here
|
23 |
USE_XFCE= configenv libmenu panel |
22 |
USE_XFCE= configenv libmenu panel |
24 |
INSTALLS_ICONS= yes |
23 |
INSTALLS_ICONS= yes |
25 |
|
24 |
|
26 |
OPTIONS= NLS "Enable Native Language Support" on |
25 |
OPTIONS_DEFINE= NLS |
|
|
26 |
OPTIONS_DEFAULT= NLS |
27 |
|
27 |
|
28 |
.include <bsd.port.pre.mk> |
28 |
.include <bsd.port.options.mk> |
29 |
|
29 |
|
30 |
.if !defined(WITHOUT_NLS) |
30 |
.if ${PORT_OPTIONS:MNLS} |
31 |
USE_GETTEXT= yes |
31 |
USE_GETTEXT= yes |
32 |
CONFIGURE_ARGS+=--enable-nls |
32 |
CONFIGURE_ARGS+=--enable-nls |
33 |
PLIST_SUB+= NLS="" |
33 |
PLIST_SUB+= NLS="" |
Lines 37-47
Link Here
|
37 |
.endif |
37 |
.endif |
38 |
|
38 |
|
39 |
do-patch: |
39 |
do-patch: |
40 |
@${REINPLACE_CMD} -e 's|# include <net/if_ppp.h>||' \ |
|
|
41 |
${WRKSRC}/panel-plugin/os.h |
42 |
@${REINPLACE_CMD} -e 's, || __FreeBSD_kernel__,,' \ |
40 |
@${REINPLACE_CMD} -e 's, || __FreeBSD_kernel__,,' \ |
43 |
${WRKSRC}/panel-plugin/net.c \ |
41 |
${WRKSRC}/panel-plugin/net.c \ |
44 |
${WRKSRC}/panel-plugin/net.h \ |
42 |
${WRKSRC}/panel-plugin/net.h \ |
45 |
${WRKSRC}/panel-plugin/os.h |
43 |
${WRKSRC}/panel-plugin/os.h |
46 |
|
44 |
|
47 |
.include <bsd.port.post.mk> |
45 |
.if empty(PORT_OPTIONS:MNLS) |
|
|
46 |
@${REINPLACE_CMD} -e 's|po ||' ${WRKSRC}/Makefile.in |
47 |
.endif |
48 |
|
49 |
.include <bsd.port.mk> |