Lines 6-38
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= xcowsay |
8 |
PORTNAME= xcowsay |
9 |
PORTVERSION= 1.1 |
9 |
PORTVERSION= 1.1.1 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= games gnome |
10 |
CATEGORIES= games gnome |
12 |
MASTER_SITES= http://www.nickg.me.uk/files/ LOCAL/chinsan/games |
11 |
MASTER_SITES= http://www.nickg.me.uk/files/ |
13 |
|
12 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= A graphical configurable talking cow |
14 |
COMMENT= A graphical configurable talking cow |
16 |
|
15 |
|
17 |
GNU_CONFIGURE= yes |
16 |
OPTIONS= DBUS "Enable DBus support" off |
18 |
USE_GNOME= gtk20 gdkpixbuf intlhack |
17 |
|
|
|
18 |
USE_GNOME= gtk20 |
19 |
USE_GETTEXT= yes |
19 |
USE_GMAKE= yes |
20 |
USE_GMAKE= yes |
20 |
USE_ICONV= yes |
21 |
GNU_CONFIGURE= yes |
21 |
CPPFLAGS+= -I${LOCALBASE}/include |
|
|
22 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} |
23 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
22 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
24 |
|
23 |
|
25 |
MAN6= xcowsay.6 |
24 |
MAN6= xcowsay.6 |
26 |
|
25 |
PLIST_FILES= bin/xcowdream \ |
27 |
.if !defined(WITHOUT_NLS) |
26 |
bin/xcowfortune \ |
28 |
USE_GETTEXT= yes |
27 |
bin/xcowsay \ |
29 |
PLIST_SUB+= NLS="" |
28 |
bin/xcowthink \ |
30 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
share/locale/pt_BR/LC_MESSAGES/xcowsay.mo \ |
31 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
%%DATADIR%%/cow_large.png \ |
32 |
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
31 |
%%DATADIR%%/cow_med.png \ |
33 |
.else |
32 |
%%DATADIR%%/cow_small.png |
34 |
CONFIGURE_ARGS+=--disable-nls |
33 |
PLIST_DIRS= %%DATADIR%% |
35 |
PLIST_SUB+= NLS="@comment " |
34 |
|
|
|
35 |
CPPFLAGS= -I${LOCALBASE}/include |
36 |
LDFLAGS= -L${LOCALBASE}/lib |
37 |
|
38 |
.include <bsd.port.pre.mk> |
39 |
|
40 |
.if defined(WITH_DBUS) |
41 |
LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib |
42 |
CFLAGS+= -DWITH_DBUS |
43 |
CONFIGURE_ARGS+= --enable-dbus |
36 |
.endif |
44 |
.endif |
37 |
|
45 |
|
38 |
.include <bsd.port.mk> |
46 |
post-patch: |
|
|
47 |
@${REINPLACE_CMD} -e 's|-DWITH_DBUS||g' ${WRKSRC}/configure |
48 |
|
49 |
.include <bsd.port.post.mk> |